aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
authorMisko Hevery2012-01-27 16:18:16 -0800
committerMisko Hevery2012-02-21 22:46:00 -0800
commit78656fe0dfc99c341ce02d71e7006e9c05b1fe3f (patch)
treea68731c4c1675047da65b23ccf3d562324324081 /src/widgets.js
parentcb10ccc44fa78b82c80afa1cb5dac2c34fdf24b7 (diff)
downloadangular.js-78656fe0dfc99c341ce02d71e7006e9c05b1fe3f.tar.bz2
feat($compile) add locals, isolate scope, transclusion
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets.js b/src/widgets.js
index 18ac27c3..a465bc88 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -760,7 +760,7 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp
var BRACE = /{}/g;
return function(scope, element, attr) {
var numberExp = attr.count,
- whenExp = attr.when,
+ whenExp = element.attr(attr.$attr.when), // this is becaues we have {{}} in attrs
offset = attr.offset || 0,
whens = scope.$eval(whenExp),
whensExpFns = {};