aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2011-07-26 12:06:14 -0700
committerIgor Minar2011-10-11 10:53:05 -0700
commitbda2bba2be7a52bf39fb1b257b6363edc7b71173 (patch)
tree70de396d785f7632377391d3463032826aa2d4c9 /src/Angular.js
parentca08c004c893310ed9b3b4a5d2a4d16314eaa677 (diff)
downloadangular.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.js6
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;
}