Roo/bootstrap/Modal.js
authorEdward <edward@roojs.com>
Fri, 21 Mar 2014 12:40:39 +0000 (20:40 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Mar 2014 12:40:39 +0000 (20:40 +0800)
Roo/bootstrap/Modal.js

index 3b33a73..784c625 100644 (file)
@@ -39,7 +39,6 @@
 
 Roo.bootstrap.Modal = function(config){
     Roo.bootstrap.Modal.superclass.constructor.call(this, config);
-    this.el = Roo.get(document.body);
     this.addEvents({
         // raw events
         /**
@@ -93,7 +92,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
         
         if (this.buttons) {
             Roo.each(this.buttons, function(bb) {
-                var b = Roo.apply({}, bb);
+                b = Roo.apply({}, bb);
                 b.xns = b.xns || Roo.bootstrap;
                 b.xtype = b.xtype || 'Button';
                 if (typeof(b.listeners) == 'undefined') {