Author: ygrego Date: 2015-04-03 11:35:27 +0000 (Fri, 03 Apr 2015) New Revision: 1067 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1067 Log: Complete refactoring of class definition. Modified: oipf/js/impl/model/Query.js Modified: oipf/js/impl/model/Query.js =================================================================== --- oipf/js/impl/model/Query.js 2015-04-03 09:48:31 UTC (rev 1066) +++ oipf/js/impl/model/Query.js 2015-04-03 11:35:27 UTC (rev 1067) @@ -1,15 +1,18 @@ var Query = Class.extend({ - channel: null, + _field: null, - startTime: null, + _comparison: null, - count: null, + _value: null, - init: function(channel, startTime, count) { - this.channel= channel; - this.startTime= startTime; - this.count= count; + init: function(field, comparison, value, count) { + this._field = field; + this._comparison = comparison; + this._value = value; + if (count) { + this._count = count; + } } }); \ No newline at end of file