/*! Immoral - v0.2.1 - 2013-10-31
* https://github.com/aniketpant/immoral
* Copyright (c) 2013 Aniket Pant; Licensed MIT */
(function(){var a;return(a=jQuery)?(a(function(){var b,c,d,e,f,g,h,i;return a.fn.immoral=function(b){var c;return c={content:"",modalClass:"modal",modalShadowClass:"modal-shadow",modalContainerClass:"modal-container",modalCloseButton:'<a href="#" rel="modal:close">Close</a>',modalContentClass:"modal-content",modalShadow:!1,modalContainer:!1,modalStyle:{width:"50%",height:"50%",margin:"0 auto",background:"white","text-align":"left"},modalShadowStyle:{position:"fixed","z-index":"10000000",background:"rgba(0,0,0,0.5)",width:"100%",height:"100%",left:"0px",top:"0px"},modalContainerStyle:{width:"100%",margin:"0px",position:"fixed",top:"0px",left:"0px",height:"100%",display:"none","z-index":"10000001",background:"transparent","text-align":"center"},modalContentStyle:{width:"100%",height:"100%"}},this.each(function(){return this.settings=a.extend(!0,{},c,b),h(this),f(this),e(this)})},e=function(b){return a(b).on("click",function(a){return a.preventDefault(),i(b)}),a(b.settings.modalContainer).on("click",'a[rel="modal:close"]',function(a){return a.preventDefault(),c(b)}),a(document).keydown(b,function(a){return 27===a.keyCode?c(b):void 0}),!0},h=function(b){var c;return c=b.settings,a("."+c.modalShadowClass).length||a("body").append('<div class="'+c.modalShadowClass+'" style="display: none"></div>'),a.immoral(b,{modalShadow:a("."+c.modalShadowClass)})},f=function(b){var c;return c=b.settings,a("."+c.modalContainerClass).length||a("body").append('<div id="immoral-modal" class="'+c.modalContainerClass+'" style="display: none"><div class="modal"><div class="'+c.modalContentClass+'"></div></div></div>'),a.immoral(b,{modalContainer:a("#immoral-modal")})},g=function(c){var d,e,f,g,h;return h=c.settings,f=a(h.modalContainer),g=a(f).find("."+h.modalContentClass),e=a(c).attr("href"),h.content?d=h.content:/https*:\/\//.test(e)?d='<iframe src="'+e+'" seamless></iframe>':/#+/.test(e)&&(d=a(e).html()),a(g).html(d),a(g).prepend(h.modalCloseButton),b(c)},i=function(b){var c,d,e;return e=b.settings,d=a(e.modalShadow),c=a(e.modalContainer),g(b),a(d).fadeIn(),a(c).fadeIn()},c=function(b){var c,e,f;return f=b.settings,e=a(f.modalShadow),c=a(f.modalContainer),a(e).fadeOut(),a(c).fadeOut(),d(b)},d=function(b){var c;return c=b.settings,a(c.modalContainer).find("."+c.modalContentClass).empty()},b=function(b){var c;return c=b.settings,a(c.modalShadow).css(c.modalShadowStyle),a(c.modalContainer).css(c.modalContainerStyle),a(c.modalContainer).find(".modal-content").css(c.modalContentStyle),a(c.modalContainer).find(".modal").css(c.modalStyle)},a.fn.open=function(){return i(this)},a.fn.close=function(){return c(this)},a.immoral=function(b,c){return b.settings=a.extend(!0,{},b.settings,c),"immoralized"}}),void 0):!1}).call(this);
@@ -1033,18 +1033,20 @@
 rn a(b).
-on
+bind
 (%22click%22
@@ -1120,18 +1120,20 @@
 tainer).
-on
+bind
 (%22click%22

Change .on event to .bind