mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Revert "Make event handlers get called with target's view"
This reverts commit 72887bb0ee.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user