aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular-bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/angular-bootstrap.js')
-rw-r--r--src/angular-bootstrap.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/angular-bootstrap.js b/src/angular-bootstrap.js
index 169a1d5a..778eee6b 100644
--- a/src/angular-bootstrap.js
+++ b/src/angular-bootstrap.js
@@ -9,18 +9,11 @@
var filename = /^(.*\/)angular-bootstrap.js(#.*)?$/,
scripts = document.getElementsByTagName("SCRIPT"),
- autobind = scripts[scripts.length-1].getAttribute('ng:autobind'),
config,
serverPath,
match,
globalVars = {};
- if (autobind) {
- config = {autobind: autobind};
- } else {
- config = (autobind == '') ? {autobind: true} : {}
- }
-
for(var j = 0; j < scripts.length; j++) {
match = (scripts[j].src || "").match(filename);
if (match) {
@@ -109,7 +102,7 @@
bindJQuery();
- angularInit(config, document);
+ angularInit(document, angular.bootstrap);
}
if (window.addEventListener) {