r754 - trunk/ui

r754 - trunk/ui


Author: scott.gonzalez
Date: Sun Sep 28 10:58:08 2008
New Revision: 754
Modified:
trunk/ui/ui.core.js
Log:
$.widget: Create namespace if it doesn't already exist.
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js    (original)
+++ trunk/ui/ui.core.js    Sun Sep 28 10:58:08 2008
@@ -175,6 +175,7 @@
    };
    
    // create widget constructor
+    $[namespace] = $[namespace] || {};
    $[namespace][name] = function(element, options) {
        var self = this;