From fa722447f89e0215463cb39dfd1532189057fea8 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 7 Dec 2010 11:39:59 -0800 Subject: Fixed failed assignments of form abj[0].name=value Closes #169 --- CHANGELOG.md | 2 ++ src/parser.js | 55 ++++++++++++++++++++++++++++-------------------- test/ParserSpec.js | 8 +++++++ test/testabilityPatch.js | 2 ++ test/widgetsSpec.js | 7 ++++++ 5 files changed, 51 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd0d295b..56a43cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # 0.9.7 sonic-cream (in-progress) # +### Bug Fixes +- Fixed failed assignments of form obj[0].name=value (issue #169) # 0.9.6 night-vision (2010-12-06) # diff --git a/src/parser.js b/src/parser.js index 992696ee..621b0045 100644 --- a/src/parser.js +++ b/src/parser.js @@ -9,7 +9,7 @@ var OPERATORS = { '/':function(self, a,b){return a/b;}, '%':function(self, a,b){return a%b;}, '^':function(self, a,b){return a^b;}, - '=':function(self, a,b){return setter(self, a, b);}, + '=':noop, '==':function(self, a,b){return a==b;}, '!=':function(self, a,b){return a!=b;}, '<':function(self, a,b){return a'+ + ''+ + ''); + expect(scope.obj['abc'].name).toEqual('Misko'); + }); describe("ng:format", function(){ -- cgit v1.2.3