Skip to content

Instantly share code, notes, and snippets.

@kedde
kedde / Jquery UI extend widget.js
Last active Dec 17, 2015
Javascript: Extend jquery ui element
View Jquery UI extend widget.js
(function($){
var dialogExtensions ={
oldClose: $.ui.dialog.prototype.close,
close: function(event){
this.oldClose(event);
// custom code
}
};
$.extend($.ui.dialog.prototype, dialogExtensions);
})(jQuery);
@kedde
kedde / JavaScript.jquery.ready.js
Created Feb 27, 2013
JavaScript: jquery ready
View JavaScript.jquery.ready.js
$(document).ready(function() {
// Handler for .ready() called.
});
@kedde
kedde / iisexpres sstart folder.bat
Created May 16, 2012
windows bat: Start iisexpress from command line
View iisexpres sstart folder.bat
"C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:C:\path /port:47778
@kedde
kedde / ModulePattern.js
Created Mar 29, 2012
JavaScript: Module pattern - exapmle (public and private methods and private properties)
View ModulePattern.js
///
/// Module patttern - exapmle
/// * public and private methods
/// * private properties
///
var moduleInJavascript = function () {
// private property
var privateProperty = {
property: ["some", "thing", "stuff"]
};