Skip to content

Instantly share code, notes, and snippets.

@kedde
kedde / ModulePattern.js
Created March 29, 2012 14:25
JavaScript: Module pattern - exapmle (public and private methods and private properties)
///
/// Module patttern - exapmle
/// * public and private methods
/// * private properties
///
var moduleInJavascript = function () {
// private property
var privateProperty = {
property: ["some", "thing", "stuff"]
};
@kedde
kedde / iisexpres sstart folder.bat
Created May 16, 2012 12:20
windows bat: Start iisexpress from command line
"C:\Program Files (x86)\IIS Express\iisexpress.exe" /path:C:\path /port:47778
@kedde
kedde / JavaScript.jquery.ready.js
Created February 27, 2013 08:38
JavaScript: jquery ready
$(document).ready(function() {
// Handler for .ready() called.
});
@kedde
kedde / Jquery UI extend widget.js
Last active December 17, 2015 00:58
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);