r814 - branches/1.7

r814 - branches/1.7


Author: paul.bakaus
Date: Thu Oct 23 05:41:12 2008
New Revision: 814
Modified:
branches/1.7/ui.core.js
Log:
core (1.7): changed lazy loading function to use a direct call to ajax
Modified: branches/1.7/ui.core.js
==============================================================================
--- branches/1.7/ui.core.js    (original)
+++ branches/1.7/ui.core.js    Thu Oct 23 05:41:12 2008
@@ -26,8 +26,17 @@
    $.fn[name] = function(){
        var selector = this, args = arguments;
-        $.getScript(uiPath+'ui.'+name+'.js', function() {
-            selector[name].apply(selector, args);
+        
+        $.ajax({
+            type: 'GET',
+            async: false,
+            cache: true,
+            url: uiPath+'ui.'+name+'.js',
+            data: null,
+            success: function() {
+                selector[name].apply(selector, args);
+            },
+            dataType: 'script'
        });
        
        return this;