Last active
December 17, 2015 00:58
-
-
Save kedde/5524435 to your computer and use it in GitHub Desktop.
Javascript: Extend jquery ui element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
var dialogExtensions ={ | |
oldClose: $.ui.dialog.prototype.close, | |
close: function(event){ | |
this.oldClose(event); | |
// custom code | |
} | |
}; | |
$.extend($.ui.dialog.prototype, dialogExtensions); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference:
http://stackoverflow.com/questions/7255921/jquery-ui-override-plugin-method