You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2015/05/07 20:33:16 UTC

git commit: [flex-asjs] [refs/heads/develop] - Removed hasOwnProperty test since it seems to not work with object properties at the moment.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop fe4cd2257 -> 85021153c


Removed hasOwnProperty test since it seems to not work with object properties at the moment.


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

Branch: refs/heads/develop
Commit: 85021153ccb9bcc4acff4217417ed621ae39a795
Parents: fe4cd22
Author: Peter Ent <pe...@apache.org>
Authored: Thu May 7 14:33:13 2015 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Thu May 7 14:33:13 2015 -0400

----------------------------------------------------------------------
 .../src/org/apache/flex/core/ItemRendererClassFactory.js  | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/85021153/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js b/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
index 2693ab0..d7e35d8 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/core/ItemRendererClassFactory.js
@@ -53,12 +53,10 @@ Object.defineProperties(org_apache_flex_core_ItemRendererClassFactory.prototype,
 
             // see if the _strand has an itemRenderer property that isn't empty. if that's
             // true, use that value instead of pulling it from the the style
-            if (this.strand_.hasOwnProperty('itemRenderer')) {
-              this.itemRendererClassFactory = this.strand_.itemRenderer;
-              if (this.itemRendererClassFactory) {
-                this.createFunction = this.createFromClass;
-                return;
-              }
+            this.itemRendererClassFactory = this.strand_.itemRenderer;
+            if (this.itemRendererClassFactory) {
+              this.createFunction = this.createFromClass;
+              return;
             }
 
             if (org_apache_flex_core_ValuesManager.valuesImpl.getValue) {