flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Replace use of goog.bind() with Language.closure().
Date Wed, 26 Aug 2015 11:55:23 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 24dc2a602 -> 7c7dd0508


Replace use of goog.bind() with Language.closure().


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

Branch: refs/heads/develop
Commit: 7c7dd050897aa0a2d5f096119608198e8ce9ce7d
Parents: 24dc2a6
Author: Peter Ent <pent@apache.org>
Authored: Wed Aug 26 13:55:20 2015 +0200
Committer: Peter Ent <pent@apache.org>
Committed: Wed Aug 26 13:55:20 2015 +0200

----------------------------------------------------------------------
 .../org/apache/flex/html/beads/ContainerView.js | 24 ++++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7c7dd050/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
index 3b16e68..23a951a 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/ContainerView.js
@@ -97,7 +97,7 @@ org.apache.flex.html.beads.ContainerView.
    }
    else {
      this._strand.addEventListener('sizeChanged',
-       goog.bind(this.deferredSizeHandler, this));
+       org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'defer_sizeChanged'));
    }
 };
 
@@ -108,7 +108,7 @@ org.apache.flex.html.beads.ContainerView.
 org.apache.flex.html.beads.ContainerView.
     prototype.deferredSizeHandler = function(event) {
     this._strand.removeEventListener('sizeChanged',
-      goog.bind(this.deferredSizeHandler, this));
+      org.apache.flex.utils.Language.closure(this.deferredSizeHandler, this, 'defer_sizeChanged'));
     this.completeSetup();
 
     var num = this.contentView.numElements;
@@ -136,9 +136,9 @@ org.apache.flex.html.beads.ContainerView.
     for (var i = 0; i < num; i++) {
       var child = this.contentView.getElementAt(i);
       child.addEventListener('widthChanged',
-          goog.bind(this.childResizeHandler, this));
+          org.apache.flex.utils.Language.closure(this.childResizeHandler, this, 'child_widthChanged'));
       child.addEventListener('heightChanged',
-          goog.bind(this.childResizeHandler, this));
+          org.apache.flex.utils.Language.closure(this.childResizeHandler, this, 'child_heightChanged'));
     }
 };
 
@@ -179,20 +179,20 @@ org.apache.flex.html.beads.ContainerView.
   this.createViewport();
 
    this._strand.addEventListener('childrenAdded',
-      goog.bind(this.childrenChangedHandler, this));
+      org.apache.flex.utils.Language.closure(this.childrenChangedHandler, this, 'childrenAdded'));
    this.childrenChangedHandler(null);
    this._strand.addEventListener('childrenAdded',
-      goog.bind(this.changeHandler, this));
+      org.apache.flex.utils.Language.closure(this.changeHandler, this, 'childrenAdded'));
   this._strand.addEventListener('childrenRemoved',
-      goog.bind(this.changeHandler, this));
+      org.apache.flex.utils.Language.closure(this.changeHandler, this, 'childrenRemoved'));
   this._strand.addEventListener('layoutNeeded',
-     goog.bind(this.performLayout, this));
+     org.apache.flex.utils.Language.closure(this.performLayout, this, 'layoutNeeded'));
   this._strand.addEventListener('widthChanged',
-     goog.bind(this.resizeHandler, this));
+     org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'widthChanged'));
   this._strand.addEventListener('heightChanged',
-     goog.bind(this.resizeHandler, this));
+     org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'heightChanged'));
   this._strand.addEventListener('sizeChanged',
-     goog.bind(this.resizeHandler, this));
+     org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'sizeChanged'));
 };
 
 
@@ -353,7 +353,7 @@ Object.defineProperties(org.apache.flex.html.beads.ContainerView.prototype,
{
             this.host.addElement(this.contentView);
             this.host.setActualParent(this.contentView);
             this._strand.addEventListener('initComplete',
-                  goog.bind(this.initCompleteHandler, this));
+                  org.apache.flex.utils.Language.closure(this.initCompleteHandler, this,
'initComplete'));
          }
     },
     /** @export */


Mime
View raw message