diff options
| author | Igor Minar | 2011-10-25 08:47:02 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-26 12:57:15 -0700 | 
| commit | d7ba5bc83ba9a8937384ea677331c5156ed6772d (patch) | |
| tree | aef0e0eb9873265d6f1cbe90a6f3da360e8367ca /src/angular-bootstrap.js | |
| parent | 950d02b4d4b1d574dfbb9bbdd56b8dc430db0a93 (diff) | |
| download | angular.js-d7ba5bc83ba9a8937384ea677331c5156ed6772d.tar.bz2 | |
feat(bootstrap): drop angular.js file name restrictions for autobind
The last script element in the dom is always us if the script that
contains angular is loaded synchronously.
For async loading manual bootstrap needs to be performed.
Close #621
Diffstat (limited to 'src/angular-bootstrap.js')
| -rw-r--r-- | src/angular-bootstrap.js | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/src/angular-bootstrap.js b/src/angular-bootstrap.js index 7a1752d2..fb2acbeb 100644 --- a/src/angular-bootstrap.js +++ b/src/angular-bootstrap.js @@ -99,9 +99,7 @@      // empty the cache to prevent mem leaks      globalVars = {}; -    var config = angularJsConfig(document); - -    angularInit(config, document); +    angularInit({autobind:true}, document);    }    if (window.addEventListener) { | 
