Skip to content

Instantly share code, notes, and snippets.

@kedde
Last active December 17, 2015 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kedde/5524435 to your computer and use it in GitHub Desktop.
Save kedde/5524435 to your computer and use it in GitHub Desktop.
Javascript: Extend jquery ui element
(function($){
var dialogExtensions ={
oldClose: $.ui.dialog.prototype.close,
close: function(event){
this.oldClose(event);
// custom code
}
};
$.extend($.ui.dialog.prototype, dialogExtensions);
})(jQuery);
@kedde
Copy link
Author

kedde commented May 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment