flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [12/31] git commit: [flex-asjs] [refs/heads/develop] - copied too much code from another class
Date Tue, 09 Dec 2014 05:16:59 GMT
copied too much code from another class


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

Branch: refs/heads/develop
Commit: e02fff0e92badb1623da3230f71aa4764e606944
Parents: 4865ad1
Author: Alex Harui <aharui@apache.org>
Authored: Wed Nov 26 15:56:58 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 8 20:47:42 2014 -0800

----------------------------------------------------------------------
 .../NonVirtualVerticalScrollingLayout.js        | 42 --------------------
 1 file changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e02fff0e/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
index 4ae20b8..c1068ec 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/beads/layouts/NonVirtualVerticalScrollingLayout.js
@@ -49,47 +49,5 @@ org.apache.flex.html.beads.layouts.
     NonVirtualVerticalScrollingLayout.prototype.set_strand = function(value) {
   if (this.strand_ !== value) {
     this.strand_ = value;
-    this.strand_.addEventListener('childrenAdded',
-        goog.bind(this.changeHandler, this));
-    this.strand_.addEventListener('itemsCreated',
-        goog.bind(this.changeHandler, this));
-    this.strand_.addEventListener('widthChanged',
-        goog.bind(this.changeHandler, this));
-    this.strand_.addEventListener('heightChanged',
-        goog.bind(this.changeHandler, this));
-  }
-};
-
-
-/**
- * @param {org.apache.flex.events.Event} event The text getter.
- */
-org.apache.flex.html.beads.layouts.
-    NonVirtualVerticalScrollingLayout.prototype.changeHandler =
-        function(event) {
-  var layoutParent = this.strand_.getBeadByType(org.apache.flex.core.ILayoutParent);
-  var contentView = layoutParent.get_contentView();
-  var selectionModel = this.strand_.get_model();
-  var dp = selectionModel.get_dataProvider();
-
-  var itemRendererFactory = this.strand_.getBeadByType(org.apache.flex.core.IItemRendererClassFactory);
-
-  var n = dp.length;
-  var yy = 0;
-  var defaultWidth = contentView.get_width();
-
-  for (var i = 0; i < n; i++)
-  {
-    var ir = contentView.getItemRendererForIndex(i);
-    if (ir == null) {
-      ir = itemRendererFactory.createItemRenderer(contentView);
-    }
-    ir.set_index(i);
-    ir.set_labelField(this.strand_.get_labelField());
-    ir.set_y(yy);
-    ir.set_x(0);
-    ir.set_width(defaultWidth);
-    ir.set_data(dp[i]);
-    yy += ir.get_height();
   }
 };


Mime
View raw message