mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-30 10:06:21 +08:00
allow jquery to be declared after angular in the script loading order
This commit is contained in:
@@ -97,7 +97,8 @@ JQLite.prototype = {
|
||||
}
|
||||
|
||||
this.bind('DOMContentLoaded', trigger); // works for modern browsers and IE9
|
||||
jqLite(window).bind('load', trigger); // fallback to window.onload for others
|
||||
// we can not use jqLite since we are not done loading and jQuery could be loaded later.
|
||||
new JQLite(window).bind('load', trigger); // fallback to window.onload for others
|
||||
},
|
||||
|
||||
bind: function(type, fn){
|
||||
|
||||
Reference in New Issue
Block a user