Arthur Bogaart pushed to branch master at cms-community / hippo-cms

Commits:
bf334469 by Mathijs den Burger at 2016-05-10T09:54:20+02:00
CMS-10096 don't overwrite passed event listeners in constructor

- - - - -
77d0486b by Arthur Bogaart at 2016-05-10T12:59:18+02:00
CMS-10096 Reintegrate bugfix/CMS-10096

- - - - -


1 changed file:

- api/src/main/java/org/hippoecm/frontend/extjs/IFramePanel.js


Changes:

=====================================
api/src/main/java/org/hippoecm/frontend/extjs/IFramePanel.js
=====================================
--- a/api/src/main/java/org/hippoecm/frontend/extjs/IFramePanel.js
+++ b/api/src/main/java/org/hippoecm/frontend/extjs/IFramePanel.js
@@ -58,13 +58,10 @@
               single: true
             }
           }
-        },
-        listeners: {
-          afterrender: this._onAfterRender,
-          'resize': this._onResize,
-          scope: this
         }
       }));
+      this.on('afterrender', this._onAfterRender, this);
+      this.on('resize', this._onResize, this);
     },
 
     _onFrameLoad: function () {



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-cms/compare/e35b151d64356807746e0b99b0dc313109f07cbb...77d0486b10b09fa66d82cb9a7403b3798372a183
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to