mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:12:32 +08:00
Some sanity checks with event binding
This commit is contained in:
parent
2a809d7855
commit
30a9d3676d
2
vendor/assets/javascripts/ember-cloaking.js
vendored
2
vendor/assets/javascripts/ember-cloaking.js
vendored
|
@ -87,7 +87,7 @@
|
|||
**/
|
||||
scrolled: function() {
|
||||
var childViews = this.get('childViews');
|
||||
if (childViews.length === 0) { return; }
|
||||
if ((!childViews) || (childViews.length === 0)) { return; }
|
||||
|
||||
var toUncloak = [],
|
||||
$w = $(window),
|
||||
|
|
Loading…
Reference in New Issue
Block a user