Author: ygrego Date: 2015-04-15 08:07:12 +0000 (Wed, 15 Apr 2015) New Revision: 1178 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1178 Log: Addition of property "_fireEventModified" and method "_abortIfNecessary". Modified: oipf/js/impl/model/MetadataSearch.js Modified: oipf/js/impl/model/MetadataSearch.js =================================================================== --- oipf/js/impl/model/MetadataSearch.js 2015-04-14 15:41:19 UTC (rev 1177) +++ oipf/js/impl/model/MetadataSearch.js 2015-04-15 08:07:12 UTC (rev 1178) @@ -138,6 +138,10 @@ ratings: [] }; this._ordering = []; + + this._fireEventModified = this._searchManager + ._fireEventModified.bind(this._searchManager); + }, /* @@ -393,6 +397,13 @@ _removeOrdering: function() { this._ordering = null; + }, + + _abortIfNecessary: function() { + if (this.result._timerManager.timer) { + this.result.abort(); + this._fireEventModified(this); + } } }); \ No newline at end of file
participants (1)
-
ygregoï¼ users.nuiton.org