From 94ec6382f2ffe1af350de0d13dc5f886e3b8eb60 Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Tue, 3 Sep 2013 13:49:02 -0700 Subject: [PATCH] Retain references to Path objects R=arv BUG= Review URL: https://codereview.appspot.com/13413044 --- src/polymer-expressions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/polymer-expressions.js b/src/polymer-expressions.js index 66d74a1..e3e14f4 100644 --- a/src/polymer-expressions.js +++ b/src/polymer-expressions.js @@ -149,7 +149,10 @@ if (!this.last) return this.name; - return this.last.getPath() + '.' + this.name; + if (!this.path_) + this.path_ = Path.get(this.last.getPath() + '.' + this.name); + + return this.path_; }, valueFn: function() {