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 in order to promote it to the default branch.
Merge branch 'master' into gh-pages

Conflicts:
	README.md
	jquery.popupoverlay.js
#2, #13: Major refactoring and bug fixing. Details below:

- Added WAI ARIA roles.
- Added support for CSS transitions
- Added several new options and events.
- Fixed an issue with multiple initializations.
- Added methods.
- Made defaults modifiable.
- Fixed an issue with jQuery chaining. Now .popup() is returning “this”.
- Updated documentation.
- Removing Jekyll, using static HTML from now.
- Updated Bootstrap and Font Awesome to new version.
- Using client-side syntax highlighting (Prettify.js) instead of server-side (Pygments).
- Promoted Github Pages branch (gh-pages branh) to be default branch so the plugin file for the demo is in the same repo. Master branch deleted.