diff options
| author | Misko Hevery | 2011-02-07 15:29:56 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-16 00:49:15 -0500 |
| commit | 23b255a8b7481ff5c06004b3558c07f981c42276 (patch) | |
| tree | 57e612f658c9f8903d93a28e9095590178e2ce3a /src/Angular.js | |
| parent | e2154cbc0b9265bea04ce328879d4e9bf1c67c51 (diff) | |
| download | angular.js-23b255a8b7481ff5c06004b3558c07f981c42276.tar.bz2 | |
remove $init on scope from applying compilation template
Closes #40
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Angular.js b/src/Angular.js index f9047d32..5bd5e547 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -800,10 +800,8 @@ function merge(src, dst) { * Compiles a piece of HTML or DOM into a {@link angular.scope scope} object. <pre> var scope1 = angular.compile(window.document); - scope1.$init(); var scope2 = angular.compile('<div ng:click="clicked = true">click me</div>'); - scope2.$init(); </pre> * * @param {string|DOMElement} element Element to compile. @@ -948,7 +946,7 @@ function toKeyValue(obj) { (function(window, previousOnLoad){ window.onload = function(){ try { (previousOnLoad||angular.noop)(); } catch(e) {} - angular.compile(window.document).$init(); + angular.compile(window.document); }; })(window, window.onload); </script> @@ -1002,8 +1000,6 @@ function angularInit(config){ $browser.addCss(config.base_url + config.css); else if(msie<8) $browser.addJs(config.base_url + config.ie_compat, config.ie_compat_id); - - scope.$init(); } } |
