//* @protected

/**
        Event modal capture feature: capture events to a specific
        control via enyo.dispatcher.capture(inControl, inShouldForward)
        release events via enyo.dispatcher.release()
*/
enyo.dispatcher.features.push(function(e) {
	if (this.captureTarget) {
		var c = e.dispatchTarget;
		var eventName = (e.customEvent ? "" : "on") + e.type;
		var handlerName = this.captureEvents[eventName];
		var handler = handlerName && this.captureTarget[handlerName];
		var shouldCapture = handler && !(c && c.isDescendantOf && c.isDescendantOf(this.captureTarget));
		if (shouldCapture) {
			var c1 = e.captureTarget = this.captureTarget;
			// NOTE: We do not want releasing capture while an event is being processed to alter
			// the way the event propagates. Therefore decide if the event should forward
			// before the capture target receives the event (since it may release capture).
			e.preventDispatch = handler && handler.apply(this.captureTarget, [c1, e]) && !this.autoForwardEvents[e.type];
		}
	}
});

//
//        NOTE: This object is a plug-in; these methods should
//        be called on _enyo.dispatcher_, and not on the plug-in itself.
//
enyo.mixin(enyo.dispatcher, {
	autoForwardEvents: {leave: 1, resize: 1},
	captures: [],
	/** 
		Capture events for `inTarget`, where inEvents is specified as a hash of event names mapped
		to callback handler names to be called on the inTarget.  The callback is called when any of 
		the captured events are dispatched outside of the capturing control.  Returning true from 
		the callback stops dispatch of the event to the original dispatchTarget.
	*/
	capture: function(inTarget, inEvents) {
		var info = {target: inTarget, events: inEvents};
		this.captures.push(info);
		this.setCaptureInfo(info);
	},
	//* Remove the specified target from the capture list
	release: function(inTarget) {
		for (var i = this.captures.length - 1; i >= 0; i--) {
			if (this.captures[i].target === inTarget) {
				this.captures.splice(i,1);
				this.setCaptureInfo(this.captures[this.captures.length-1]);
				break;
			}
		}
	},
	//* Set the information for a captured event
	setCaptureInfo: function(inInfo) {
		this.captureTarget = inInfo && inInfo.target;
		this.captureEvents = inInfo && inInfo.events;
	}
});

@@ -430,44 +430,107 @@
 dler
- = handlerName && this.captureTarget
+Scope = this.captureHandlerScope %7C%7C this.captureTarget;%0A%09%09var handler = handlerName && handlerScope
 %5Bhan
@@ -1012,34 +1012,28 @@
 r.apply(
-this.captureTarget
+handlerScope
 , %5Bc1, e
@@ -1358,24 +1358,25 @@
 , where 
+%60
 inEvents
  is spec
@@ -1367,16 +1367,17 @@
 inEvents
+%60
  is spec
@@ -1470,16 +1470,42 @@
 inTarget
+ (or optionally, %60inScope)
 .  The c
@@ -1512,16 +1512,19 @@
 allback 
+%0A%09%09
 is calle
@@ -1537,19 +1537,16 @@
  any of 
-%0A%09%09
 the capt
@@ -1605,18 +1605,19 @@
 control.
-  
+%0A%09%09
 Returnin
@@ -1628,19 +1628,16 @@
 ue from 
-%0A%09%09
 the call
@@ -1742,16 +1742,25 @@
 inEvents
+, inScope
 ) %7B%0A%09%09va
@@ -1803,16 +1803,32 @@
 inEvents
+, scope: inScope
 %7D;%0A%09%09thi
@@ -2369,15 +2369,68 @@
 events;%0A
+%09%09this.captureHandlerScope = inInfo && inInfo.scope;%0A
 %09%7D%0A%7D);%0A

Add ability to pass scope for handlers to capture API. DCO-1.1-Signed-Off-By: Kevin Schaaf <kevin.schaaf@lge.com>