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 2014/08/12 15:50:57 UTC

git commit: [flex-asjs] [refs/heads/develop] - Replaced use of eval with property index.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 1725a40dd -> 061bf8353


Replaced use of eval with property index.


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

Branch: refs/heads/develop
Commit: 061bf8353883d16f4e55c65e346a5aa7022f1948
Parents: 1725a40
Author: Peter Ent <pe...@apache.org>
Authored: Tue Aug 12 09:19:28 2014 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Tue Aug 12 09:50:43 2014 -0400

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/061bf835/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
index e80f0af..6ace493 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/FormatBase.js
@@ -86,8 +86,7 @@ org.apache.flex.core.FormatBase.prototype._formattedResult = '';
  * @return {Object}
  */
 org.apache.flex.core.FormatBase.prototype.get_propertyValue = function() {
-  var statement = 'this.strand_.get_' + this.get_propertyName() + '()';
-  var value = eval(statement);
+  var value = this.strand_['get_' + this.get_propertyName()]();
   return value;
 };