Revert "Make event handlers get called with target's view"

This reverts commit 72887bb0ee.
This commit is contained in:
Sashko Stubailo
2015-03-09 13:36:23 -07:00
parent eb33978b60
commit a4d5e95bb1

View File

@@ -817,10 +817,9 @@ Blaze._addEventMap = function (view, eventMap, thisInHandler) {
return null;
var handlerThis = thisInHandler || this;
var handlerArgs = arguments;
return Blaze._withCurrentView(Blaze.getView(evt.currentTarget),
function () {
return handler.apply(handlerThis, handlerArgs);
});
return Blaze._withCurrentView(view, function () {
return handler.apply(handlerThis, handlerArgs);
});
},
range, function (r) {
return r.parentRange;