Add missing return.
This commit is contained in:
parent
3e89456b45
commit
43f8887cb1
@ -319,6 +319,7 @@
|
||||
var cb;
|
||||
if (/interactive|complete/.test(d.readyState)) {
|
||||
$.queueTask(fc);
|
||||
return;
|
||||
}
|
||||
cb = function() {
|
||||
$.off(d, 'DOMContentLoaded', cb);
|
||||
|
||||
@ -268,6 +268,7 @@ $.extend $,
|
||||
ready: (fc) ->
|
||||
if /interactive|complete/.test d.readyState
|
||||
$.queueTask fc
|
||||
return
|
||||
cb = ->
|
||||
$.off d, 'DOMContentLoaded', cb
|
||||
fc()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user