diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-10-15 12:54:40 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-10-15 12:54:40 +0000 |
commit | 07e39a8d2e08e72811c9cd1fdb30f1553bba9de1 (patch) | |
tree | 7db5de7751a3ad8d88c9f62ecbe242c179f12edf /ui/ui.core.js | |
parent | dee5e521ba626cb8412edb5cd3b02f4cd3de841f (diff) | |
download | jquery-ui-07e39a8d2e08e72811c9cd1fdb30f1553bba9de1.tar.gz jquery-ui-07e39a8d2e08e72811c9cd1fdb30f1553bba9de1.zip |
core: reverted lazy loading implementation, commited to a future branch
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 27 |
1 files changed, 0 insertions, 27 deletions
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; |