From 3f93c386ce2f7abbc8e1abedfd9fbb93c640b20b Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Mon, 7 Oct 2013 10:28:23 -0700 Subject: [PATCH] `_.each` doesn't work on `false` all of a sudden (but still works on `null`) --- packages/ui/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/base.js b/packages/ui/base.js index bcacd6baad..8b52fdb741 100644 --- a/packages/ui/base.js +++ b/packages/ui/base.js @@ -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