Skip to content
Permalink
Browse files

core: reverted lazy loading implementation, commited to a future branch

  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Oct 15, 2008
1 parent dee5e52 commit 07e39a8d2e08e72811c9cd1fdb30f1553bba9de1
Showing with 0 additions and 27 deletions.
  1. +0 −27 ui/ui.core.js
@@ -9,33 +9,6 @@
*/
;(function($) {


/** Lazy loading stub functions **/
var uiPath;
$("script").each(function() {
if((/ui/i).test(this.src)) {
var splitted = this.src.split('/'); splitted.pop();
uiPath = splitted.join('/') + ( splitted.join('/') == '' ? '' : '/' );
}
});

$.each( ("accordion,colorpicker,datepicker,dialog,draggable,droppable,magnifier,progressbar," +
"resizable,selectable,slider,sortable,spinner,tabs").split(","), function(i, name){

// Handle event binding
$.fn[name] = function(){

var selector = this, args = arguments;
$.getScript(uiPath+'ui.'+name+'.js', function() {
selector[name].apply(selector, args);
});

return this;

};
});


/** jQuery core modifications and additions **/

var _remove = $.fn.remove;

0 comments on commit 07e39a8

Please sign in to comment.
You can’t perform that action at this time.