aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-07 13:28:42 -0800
committerMisko Hevery2011-02-16 00:48:22 -0500
commit0a5c00abf8664fdbdc5d16b13adb1989b4531cdf (patch)
tree42d9426de8aa7917ba2dc127ee35dbc5890d7877 /src/Compiler.js
parenta004d487c4bb48b2bec19b60bc5ddc5244029be5 (diff)
downloadangular.js-0a5c00abf8664fdbdc5d16b13adb1989b4531cdf.tar.bz2
Add public API to retrieve scope from element.
Diffstat (limited to 'src/Compiler.js')
-rw-r--r--src/Compiler.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index 472ec625..d1505404 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -69,18 +69,6 @@ Template.prototype = {
}
};
-/*
- * Function walks up the element chain looking for the scope associated with the give element.
- */
-function retrieveScope(element) {
- var scope;
- element = jqLite(element);
- while (element && element.length && !(scope = element.data($$scope))) {
- element = element.parent();
- }
- return scope;
-}
-
///////////////////////////////////
//Compiler
//////////////////////////////////