aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/q.js
diff options
context:
space:
mode:
authorJeff Cross2013-07-24 10:17:24 -0700
committerJeff Cross2013-08-09 13:14:12 -0700
commit3ee744cc63a24b127d6a5f632934bb6ed2de275a (patch)
treed66bab80608d1ef959fd7fd871e9493dad24d928 /src/ng/q.js
parent94ec84e7b9c89358dc00e4039009af9e287bbd05 (diff)
downloadangular.js-3ee744cc63a24b127d6a5f632934bb6ed2de275a.tar.bz2
fix(re-bootstrap): Throw an error when bootstrapping a bootstrapped element.
Nothing would prevent a user from accidentally calling angular.bootstrap on an element that had already been bootstrapped. If this was done, odd behavior could manifest in an application, causing different scopes to update the same DOM, and causing debugger confusion. This fix adds a check inside of angular.bootstrap to check if the passed-in element already has an injector, and if so, will throw an error.
Diffstat (limited to 'src/ng/q.js')
0 files changed, 0 insertions, 0 deletions