mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
_.each doesn't work on false all of a sudden
(but still works on `null`)
This commit is contained in:
@@ -1206,7 +1206,7 @@ _extend(UI.Component, {
|
||||
UI.Component.parented = function () {
|
||||
var self = this;
|
||||
for (var comp = self; comp; comp = comp._super) {
|
||||
var events = comp.hasOwnProperty('_events') && comp._events;
|
||||
var events = (comp.hasOwnProperty('_events') && comp._events) || null;
|
||||
_.each(events, function (esh) { // {events, selector, handler}
|
||||
// wrap the handler here, per instance of the template that
|
||||
// declares the event map, so we can pass the instance to
|
||||
|
||||
Reference in New Issue
Block a user