aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-02 11:49:48 -0700
committerMisko Hevery2010-04-02 11:49:48 -0700
commit35ca4fcb9c49e505e28669e951e01ddedb01d7db (patch)
treee993e6fa5cb5ee24f8bb729d922425844c799e3a /src/Scope.js
parent5bd23fde7ab94646190d18d2891532feafad6e2e (diff)
downloadangular.js-35ca4fcb9c49e505e28669e951e01ddedb01d7db.tar.bz2
radio now works with repeaters
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Scope.js b/src/Scope.js
index 2b2db189..26a3f85b 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -84,6 +84,7 @@ function errorHandlerFor(element, error) {
elementError(element, NG_EXCEPTION, isDefined(error) ? toJson(error) : error);
}
+var scopeId = 0;
function createScope(parent, Class) {
function Parent(){}
function API(){}
@@ -103,6 +104,7 @@ function createScope(parent, Class) {
extend(api, {
'this': instance,
+ $id: (scopeId++),
$parent: parent,
$bind: bind(instance, bind, instance),
$get: bind(instance, getter, instance),