aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/core
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-07 23:14:08 -0800
committerJose Antonio Marquez2012-02-07 23:14:08 -0800
commit95808eb6ac82b8bf33de658bd135340b66a8fa29 (patch)
treebae2a7912552241a0476061ce8e7128f46cfd53e /node_modules/montage/core
parent687cfbbae1df2392267e9602f955f6eadd5b339d (diff)
parente5579374ff39b80b8c0c69faba37f6f581758fe0 (diff)
downloadninja-95808eb6ac82b8bf33de658bd135340b66a8fa29.tar.gz
Merge branch 'refs/heads/NinjaInternal' into FileIO
Diffstat (limited to 'node_modules/montage/core')
-rwxr-xr-xnode_modules/montage/core/event/binding.js4
-rwxr-xr-xnode_modules/montage/core/event/event-manager.js4
-rwxr-xr-xnode_modules/montage/core/promise.js11
3 files changed, 12 insertions, 7 deletions
diff --git a/node_modules/montage/core/event/binding.js b/node_modules/montage/core/event/binding.js
index 7a15e5b9..f061e89a 100755
--- a/node_modules/montage/core/event/binding.js
+++ b/node_modules/montage/core/event/binding.js
@@ -505,8 +505,6 @@ var PropertyChangeBindingListener = exports.PropertyChangeBindingListener = Obje
505 localPrevValue = event.minus, 505 localPrevValue = event.minus,
506 localTarget = event.target, 506 localTarget = event.target,
507 type = event.type, 507 type = event.type,
508 changeType = event.propertyChange,
509 localPropertyName = event.propertyName,
510 boundObjectValue, 508 boundObjectValue,
511 sourceObjectValue, 509 sourceObjectValue,
512 dotIndex, 510 dotIndex,
@@ -676,8 +674,6 @@ var PropertyChangeBindingListener = exports.PropertyChangeBindingListener = Obje
676 localPrevValue = null; 674 localPrevValue = null;
677 localTarget = null; 675 localTarget = null;
678 type = null; 676 type = null;
679 changeType = null;
680 localPropertyName = null;
681 dotIndex = null; 677 dotIndex = null;
682 nextPathComponent = null; 678 nextPathComponent = null;
683 atSignIndex = null; 679 atSignIndex = null;
diff --git a/node_modules/montage/core/event/event-manager.js b/node_modules/montage/core/event/event-manager.js
index 4adc3926..b3e97dbe 100755
--- a/node_modules/montage/core/event/event-manager.js
+++ b/node_modules/montage/core/event/event-manager.js
@@ -1874,9 +1874,9 @@ var EventManager = exports.EventManager = Montage.create(Montage,/** @lends modu
1874 if (target) { 1874 if (target) {
1875 associatedComponent = this.eventHandlerForElement(target); 1875 associatedComponent = this.eventHandlerForElement(target);
1876 if (associatedComponent) { 1876 if (associatedComponent) {
1877 if (!associatedComponent._preparedForActivationEvents && typeof associatedComponent.prepareForActivationEvents === "function") { 1877 if (!associatedComponent._preparedForActivationEvents) {
1878 1878
1879 associatedComponent.prepareForActivationEvents(); 1879 associatedComponent._prepareForActivationEvents();
1880 associatedComponent._preparedForActivationEvents = true; 1880 associatedComponent._preparedForActivationEvents = true;
1881 1881
1882 } else if (associatedComponent._preparedForActivationEvents) { 1882 } else if (associatedComponent._preparedForActivationEvents) {
diff --git a/node_modules/montage/core/promise.js b/node_modules/montage/core/promise.js
index aabe113d..df063846 100755
--- a/node_modules/montage/core/promise.js
+++ b/node_modules/montage/core/promise.js
@@ -65,8 +65,17 @@ function toPromise(value) {
65var Creatable = Object.create(Object.prototype, { 65var Creatable = Object.create(Object.prototype, {
66 create: { 66 create: {
67 value: function (descriptor) { 67 value: function (descriptor) {
68 for (var name in descriptor) {
69 var property = descriptor[name];
70 if (!property.set && !property.get) {
71 property.writable = true
72 }
73 property.configurable = true;
74 }
68 return Object.create(this, descriptor); 75 return Object.create(this, descriptor);
69 } 76 },
77 writable: true,
78 configurable: true
70 }, 79 },
71}); 80});
72 81