aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-10 16:08:54 -0800
committerMisko Hevery2010-11-10 21:01:17 -0800
commit0499c4727036446f5c8a5722bbd9c4018dae146f (patch)
tree334261fe7a47d325eb5d0fce653049a4d8940555 /src/directives.js
parent43a4ff4cdf4100ded15b90d49a514648a88b87b4 (diff)
downloadangular.js-0499c4727036446f5c8a5722bbd9c4018dae146f.tar.bz2
added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible)
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js
index 7dcc7f39..24b85908 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -622,9 +622,9 @@ angularDirective("ng:submit", function(expression, element) {
</div>
* @scenario
it('should check ng:watch', function(){
- expect(using('.doc-example-live').binding('counter')).toBe('1');
- using('.doc-example-live').input('name').enter('abc');
expect(using('.doc-example-live').binding('counter')).toBe('2');
+ using('.doc-example-live').input('name').enter('abc');
+ expect(using('.doc-example-live').binding('counter')).toBe('3');
});
*/
angularDirective("ng:watch", function(expression, element){