Updated links for the demo page. Replaced tabs with 4 spaces.
added commonjs loader support
return reference to hide popup
added popup open delegation
fix for z-index calculation
fix tab indent
removing deprecated live function

Doesnt work on jquery 1.9+
Merge pull request #7 from lucianosousa/patch-1

removing live function call
#4 Fix issue with iPad keyboard that breaks the position of the popup in Safari.
#3 Lowercased "onOpen" and "onClose" callbacks.
Updated readme.
Update jquery.popupoverlay.js


$el was referring to the wrapper element in the callback function.    

The cp in the return referred to 
'.my_modal_wrapper_open[data-popup-order="2"]' where it should return 
'.my_modal_open[data-popup-order="2"]'

I updated the code to pass the original JavaScript element and use that id.

var callback = function(func, clickplace) {
	var cp = $('.' + $el.attr('id') + options.opensufix + '[data-popup-order="' + clickplace + '"]');
	if (typeof func == 'function') {
		func(cp);
	}
};
                     


var callback = function(el, func, clickplace) {
	var cp = $('.' + el.id + options.opensufix + '[data-popup-order="' + clickplace + '"]');
	if (typeof func == 'function') {
		func(cp);
	}
};
Merge pull request #12 from digitalagua/master

Update jquery.popupoverlay.js
cleaning gh-pages branch
Merge branch 'master' into gh-pages

Conflicts:
	README.md
	jquery.popupoverlay.js