You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/02/28 08:53:11 UTC

git commit: [flex-asjs] [refs/heads/develop] - Added comment to explain the use of 'array' notation instead of dot notation.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop d4198d70f -> 9a848c4bb


Added comment to explain the use of 'array' notation instead of dot notation.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 9a848c4bbe6e0bf9dc3402623f71feda1c385c42
Parents: d4198d7
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Fri Feb 28 08:52:57 2014 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Feb 28 08:52:57 2014 +0100

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js       | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9a848c4b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
index d82eab7..47c165f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -158,6 +158,8 @@ org.apache.flex.core.HTMLElementWrapper.prototype.set_strand =
  * @return {Object} The wrapping object.
  */
 Event.prototype.get_target = function() {
+  /* Use array notation for property assignment so the compiler doesn't
+     complain (warn) about the property not being defined */
   var obj = this.target['flexjs_wrapper'];
   return obj;
 };