Roo/View.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 05:54:41 +0000 (13:54 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 05:54:41 +0000 (13:54 +0800)
Roo/View.js

index c17c379..58ad227 100644 (file)
@@ -50,8 +50,9 @@
 Roo.View = function(config, depreciated_tpl, depreciated_config){
     
     if (typeof(depreciated_tpl) == 'undefined') {
-        config = depreciated_container;
-        depreciated_tpl = config.template;
+        // new way..
+        Roo.apply(this, config);
+        this.el  = Roo.get(this.el);
     } else {
         // old format..
         this.el  = Roo.get(config);