diff options
author | Armen Kesablyan | 2012-02-15 14:28:21 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-15 14:28:21 -0800 |
commit | 2a5484af59544a9dfdda854d707455f08a24fe69 (patch) | |
tree | 31055dd7a5548ab307a094d02be7012c77eeb4b9 /node_modules/montage/core/event/binding.js | |
parent | bb4da39a73cbd6fbe83f3b7c9ed5ae60fe58dd6b (diff) | |
download | ninja-2a5484af59544a9dfdda854d707455f08a24fe69.tar.gz |
Latest Montage Updates 0.6 Fixes
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'node_modules/montage/core/event/binding.js')
-rwxr-xr-x | node_modules/montage/core/event/binding.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/node_modules/montage/core/event/binding.js b/node_modules/montage/core/event/binding.js index f061e89a..21b40609 100755 --- a/node_modules/montage/core/event/binding.js +++ b/node_modules/montage/core/event/binding.js | |||
@@ -19,7 +19,9 @@ var Montage = require("montage").Montage, | |||
19 | Serializer = require("core/serializer").Serializer, | 19 | Serializer = require("core/serializer").Serializer, |
20 | Deserializer = require("core/deserializer").Deserializer, | 20 | Deserializer = require("core/deserializer").Deserializer, |
21 | defaultEventManager = require("core/event/event-manager").defaultEventManager, | 21 | defaultEventManager = require("core/event/event-manager").defaultEventManager, |
22 | AT_TARGET = 2; | 22 | AT_TARGET = 2, |
23 | UNDERSCORE = "_"; | ||
24 | |||
23 | 25 | ||
24 | /** | 26 | /** |
25 | @member external:Array#dispatchChangeEvent | 27 | @member external:Array#dispatchChangeEvent |
@@ -918,7 +920,7 @@ Object.defineProperty(Object.prototype, "addEventListener", { | |||
918 | if ("value" in currentPropertyDescriptor) { | 920 | if ("value" in currentPropertyDescriptor) { |
919 | 921 | ||
920 | //Create internal storage: | 922 | //Create internal storage: |
921 | Object.defineProperty(currentObject, (internalStorageProperty = "_" + key), { | 923 | Object.defineProperty(currentObject, (internalStorageProperty = UNDERSCORE + key), { |
922 | value: currentObject.getProperty(key), | 924 | value: currentObject.getProperty(key), |
923 | configurable: true, | 925 | configurable: true, |
924 | writable: true | 926 | writable: true |
@@ -1009,7 +1011,7 @@ Object.defineProperty(Object.prototype, "addEventListener", { | |||
1009 | //TODO this is all duplicated from above, clean it up | 1011 | //TODO this is all duplicated from above, clean it up |
1010 | 1012 | ||
1011 | //Create internal storage: | 1013 | //Create internal storage: |
1012 | Object.defineProperty(currentObject, (internalStorageProperty = "_" + key), { | 1014 | Object.defineProperty(currentObject, (internalStorageProperty = UNDERSCORE + key), { |
1013 | value: currentObject.getProperty(key), | 1015 | value: currentObject.getProperty(key), |
1014 | configurable: true, | 1016 | configurable: true, |
1015 | writable: true | 1017 | writable: true |