From 28c9c4c92171bbf73d68e2bfe4d69ed5df205dd2 Mon Sep 17 00:00:00 2001 From: Joshua Ohlman Date: Tue, 18 Feb 2014 12:12:44 -0500 Subject: [PATCH] Fix a bug where observable properties of a row's entity were being cached, which prevents the row from observing their changes. http://stackoverflow.com/questions/21858868/make-kogrid-respect-observable-properties --- build/KoGrid.debug.js | 4 ++-- koGrid-2.1.1.debug.js | 4 ++-- src/classes/row.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/KoGrid.debug.js b/build/KoGrid.debug.js index 32a16b38..073be06e 100644 --- a/build/KoGrid.debug.js +++ b/build/KoGrid.debug.js @@ -2,7 +2,7 @@ * koGrid JavaScript Library * Authors: https://github.com/ericmbarnard/koGrid/blob/master/README.md * License: MIT (http://www.opensource.org/licenses/mit-license.php) -* Compiled At: 01/11/2013 15:58:36 +* Compiled At: 02/18/2014 12:09:35 ***********************************************/ (function (window) { @@ -1661,7 +1661,7 @@ window.kg.Row = function (entity, config, selectionService) { self.afterSelectionChange = config.afterSelectionChangeCallback; self.propertyCache = {}; self.getProperty = function (path) { - return self.propertyCache[path] || (self.propertyCache[path] = window.kg.utils.evalProperty(self.entity, path)); + return window.kg.utils.evalProperty(self.entity, path); }; }; diff --git a/koGrid-2.1.1.debug.js b/koGrid-2.1.1.debug.js index 32a16b38..073be06e 100644 --- a/koGrid-2.1.1.debug.js +++ b/koGrid-2.1.1.debug.js @@ -2,7 +2,7 @@ * koGrid JavaScript Library * Authors: https://github.com/ericmbarnard/koGrid/blob/master/README.md * License: MIT (http://www.opensource.org/licenses/mit-license.php) -* Compiled At: 01/11/2013 15:58:36 +* Compiled At: 02/18/2014 12:09:35 ***********************************************/ (function (window) { @@ -1661,7 +1661,7 @@ window.kg.Row = function (entity, config, selectionService) { self.afterSelectionChange = config.afterSelectionChangeCallback; self.propertyCache = {}; self.getProperty = function (path) { - return self.propertyCache[path] || (self.propertyCache[path] = window.kg.utils.evalProperty(self.entity, path)); + return window.kg.utils.evalProperty(self.entity, path); }; }; diff --git a/src/classes/row.js b/src/classes/row.js index 1a367939..051677fb 100644 --- a/src/classes/row.js +++ b/src/classes/row.js @@ -63,6 +63,6 @@ window.kg.Row = function (entity, config, selectionService) { self.afterSelectionChange = config.afterSelectionChangeCallback; self.propertyCache = {}; self.getProperty = function (path) { - return self.propertyCache[path] || (self.propertyCache[path] = window.kg.utils.evalProperty(self.entity, path)); + return window.kg.utils.evalProperty(self.entity, path); }; }; \ No newline at end of file