flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/6] git commit: [flex-asjs] [refs/heads/develop] - move titleChange detection to after things are better setup in the base class. Was getting an exception otherwise
Date Wed, 26 Aug 2015 06:16:40 GMT
move titleChange detection to after things are better setup in the base class.  Was getting
an exception otherwise


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bb9e859e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bb9e859e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bb9e859e

Branch: refs/heads/develop
Commit: bb9e859ef0b64580bb623f84526b5859f7801853
Parents: 339462a
Author: Alex Harui <aharui@apache.org>
Authored: Tue Aug 25 23:13:53 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Aug 25 23:13:53 2015 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/html/beads/PanelView.js   | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bb9e859e/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
index 281558d..cd903cc 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/PanelView.js
@@ -67,6 +67,19 @@ org.apache.flex.html.beads.PanelView.
 };
 
 
+/**
+ * @override
+ */
+org.apache.flex.html.beads.PanelView.
+    prototype.completeSetup = function() {
+  org.apache.flex.html.beads.PanelView.base(this, 'completeSetup');
+  // listen for changes to the strand's model so items can be changed
+  // in the view
+  this._strand.model.addEventListener('titleChange',
+      goog.bind(this.changeHandler, this));
+};
+
+
 Object.defineProperties(org.apache.flex.html.beads.PanelView.prototype, {
     /** @export */
     strand: {
@@ -84,11 +97,6 @@ Object.defineProperties(org.apache.flex.html.beads.PanelView.prototype,
{
 //            this._strand.controlBar =
 //                new org.apache.flex.html.ControlBar();
 
-            // listen for changes to the strand's model so items can be changed
-            // in the view
-            value.model.addEventListener('titleChange',
-                goog.bind(this.changeHandler, this));
-
             org.apache.flex.utils.Language.superSetter(org.apache.flex.html.beads.PanelView,
this, 'strand', value);
         }
     },


Mime
View raw message