Author: ygrego Date: 2015-04-07 14:35:22 +0000 (Tue, 07 Apr 2015) New Revision: 1092 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1092 Log: The property "_type" is added and instanciated in constructor. Modified: oipf/js/impl/model/Query.js Modified: oipf/js/impl/model/Query.js =================================================================== --- oipf/js/impl/model/Query.js 2015-04-07 14:04:45 UTC (rev 1091) +++ oipf/js/impl/model/Query.js 2015-04-07 14:35:22 UTC (rev 1092) @@ -7,6 +7,8 @@ */ var Query = Class.extend({ + _type: null, + _field: null, _comparison: null, @@ -14,6 +16,12 @@ _value: null, init: function(field, comparison, value, count) { + if (field == "startTime" && value == null) { + this._type = "current"; + } else { + this._type = "undifferent"; + } + this._field = field; this._comparison = comparison; this._value = value;