diff options
| author | Misko Hevery | 2011-07-26 12:06:14 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 10:53:05 -0700 |
| commit | bda2bba2be7a52bf39fb1b257b6363edc7b71173 (patch) | |
| tree | 70de396d785f7632377391d3463032826aa2d4c9 /src/Angular.js | |
| parent | ca08c004c893310ed9b3b4a5d2a4d16314eaa677 (diff) | |
| download | angular.js-bda2bba2be7a52bf39fb1b257b6363edc7b71173.tar.bz2 | |
feat(jqlite): added .inheritedData method and $destroy event.
- refactored .scope() to use .inheritedData() instead.
- .bind('$destroy', callback) will call when the DOM element is removed
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js index 367a7752..407fc263 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -985,8 +985,12 @@ function bindJQuery(){ if (jQuery) { jqLite = jQuery; extend(jQuery.fn, { - scope: JQLitePrototype.scope + scope: JQLitePrototype.scope, + inheritedData: JQLitePrototype.inheritedData }); + JQLitePatchJQueryRemove('remove', true); + JQLitePatchJQueryRemove('empty'); + JQLitePatchJQueryRemove('html'); } else { jqLite = jqLiteWrap; } |
