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