Skip to content

Commit 30a9d36

Browse files
committed
Some sanity checks with event binding
1 parent 2a809d7 commit 30a9d36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vendor/assets/javascripts/ember-cloaking.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
**/
8888
scrolled: function() {
8989
var childViews = this.get('childViews');
90-
if (childViews.length === 0) { return; }
90+
if ((!childViews) || (childViews.length === 0)) { return; }
9191

9292
var toUncloak = [],
9393
$w = $(window),

0 commit comments

Comments
 (0)