aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/core/event
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-03 22:53:07 -0700
committerValerio Virgillito2012-05-03 22:53:07 -0700
commit24b483db367291b72170f969de78efcb1a9b95bd (patch)
treea691a7803cefbfa76a6331a50cbeebcd16287d91 /node_modules/montage/core/event
parentdc93269cfa7c315d22d85c8217e2412749643f28 (diff)
downloadninja-24b483db367291b72170f969de78efcb1a9b95bd.tar.gz
integrating the latest montage version
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/core/event')
-rwxr-xr-xnode_modules/montage/core/event/event-manager.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/node_modules/montage/core/event/event-manager.js b/node_modules/montage/core/event/event-manager.js
index 75272f85..d38b9755 100755
--- a/node_modules/montage/core/event/event-manager.js
+++ b/node_modules/montage/core/event/event-manager.js
@@ -332,29 +332,6 @@ var EventManager = exports.EventManager = Montage.create(Montage,/** @lends modu
332 this._application = application; 332 this._application = application;
333 } 333 }
334 }, 334 },
335/**
336 @function
337 @param {String} composer Event composer.
338 @param {Array} eventType Event type array.
339 */
340 registerComposer_forEventType_: {
341 enumerable: false,
342 value: function(composer, eventType) {
343
344 if (!!this._registeredEventComposers[eventType]) {
345 throw "Cannot register composer for eventType:" + eventType + ". Already have one registered.";
346 }
347
348 this._registeredEventComposers[eventType] = composer;
349 }
350 },
351/**
352 @private
353*/
354 _registeredEventComposers: {
355 value: {},
356 enumerable: false
357 },
358 335
359 // Dictionary keyed by event types with the collection of handlers per event type 336 // Dictionary keyed by event types with the collection of handlers per event type
360 // This dictates why the event manager observes events of a particular type 337 // This dictates why the event manager observes events of a particular type
@@ -718,12 +695,7 @@ var EventManager = exports.EventManager = Montage.create(Montage,/** @lends modu
718 695
719 } 696 }
720 697
721 // Inform any composers about this request if we need to synthesize this eventType
722 if (isNewTarget && typeof target.nativeAddEventListener === "function") { 698 if (isNewTarget && typeof target.nativeAddEventListener === "function") {
723 if (this._registeredEventComposers[eventType]) {
724 this._registeredEventComposers[eventType].startObservingTarget_forEventType_(target, eventType);
725 }
726
727 this._observeTarget_forEventType_(target, eventType); 699 this._observeTarget_forEventType_(target, eventType);
728 } 700 }
729 701