From 07e39a8d2e08e72811c9cd1fdb30f1553bba9de1 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Wed, 15 Oct 2008 12:54:40 +0000 Subject: core: reverted lazy loading implementation, commited to a future branch --- ui/ui.core.js | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'ui/ui.core.js') diff --git a/ui/ui.core.js b/ui/ui.core.js index 40776fa91..877b0d023 100644 --- a/ui/ui.core.js +++ b/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; -- cgit v1.2.3