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 addScript(path) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = path; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
} |
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
$.fn.miniwidget = function () { | |
var self = this; | |
return $.extend(true, self.each(function () { | |
var $this = $(self); | |
// initialization... | |
}), { | |
method: function () { | |
return self.each(function () { | |
var $this = $(this); |
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
var Module = (function (Module, window, $) { | |
var SubModule = Module.SubModule = Module.SubModule || {}; | |
$.extend(SubModule, { | |
initialize: function () { | |
} | |
}); | |
return Module; | |
}(Module || {}, window, jQuery)); |
NewerOlder