Skip to content

Commit 7b46f7f

Browse files
committed
bug fix
1 parent 6506442 commit 7b46f7f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

load.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ Object.assign( $loadObj.prototype, {
240240
$load.deliver(m);
241241
}
242242
})(m));
243+
return this;
243244
},
244245

245246

@@ -487,6 +488,6 @@ Object.assign( $load, {
487488
});
488489
$load.ev_u.log = false;
489490
document.addEventListener("DOMContentLoaded", function(){ $load.deliver('dom_ready');});
490-
function onJQueryLoad(func){$ldjs.subscribe('jquery_loaded', func);}
491-
function onScriptsLoad(func){$ldjs.subscribe('scripts_loaded', func);}
492-
function onDocumentLoad(func){$ldjs.subscribe('document_loaded', func);}
491+
function onJQueryLoad(func){$load.subscribe('jquery_loaded', func);}
492+
function onScriptsLoad(func){$load.subscribe('scripts_loaded', func);}
493+
function onDocumentLoad(func){$load.subscribe('document_loaded', func);}

load.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)