2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Some sanity checks with event binding

This commit is contained in:
Robin Ward 2013-12-04 13:28:56 -05:00
parent 2a809d7855
commit 30a9d3676d

View file

@ -87,7 +87,7 @@
**/ **/
scrolled: function() { scrolled: function() {
var childViews = this.get('childViews'); var childViews = this.get('childViews');
if (childViews.length === 0) { return; } if ((!childViews) || (childViews.length === 0)) { return; }
var toUncloak = [], var toUncloak = [],
$w = $(window), $w = $(window),