From b1db9da7f361c855428ed941d74474841b92df55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Sep 2014 17:42:42 +0200 Subject: [PATCH] Recompute domain4inversion if domain changed issue4174 review5621002 --- src/model.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/model.js b/src/model.js index cd0e5c6e18..32ead70d65 100644 --- a/src/model.js +++ b/src/model.js @@ -352,10 +352,12 @@ return [head].concat(this.clean4inversion(tail)); }; array.domain4inversion = function() { - if (!this.__domain4inversion) { - this.__domain4inversion = this.clean4inversion(this.domain()); + var domain = this.domain(); + if (!this.__domain4inversion || + !Sao.common.compare(this.__domain4inversion[0], domain)) { + this.__domain4inversion = [domain, this.clean4inversion(domain)]; } - return this.__domain4inversion; + return this.__domain4inversion[1]; }; return array; };