Author: ygrego Date: 2015-04-14 13:43:09 +0000 (Tue, 14 Apr 2015) New Revision: 1173 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1173 Log: Addition of new methods permitting to dispatch event with a specific state. Modified: oipf/js/impl/SearchManagerObject.js Modified: oipf/js/impl/SearchManagerObject.js =================================================================== --- oipf/js/impl/SearchManagerObject.js 2015-04-14 13:34:29 UTC (rev 1172) +++ oipf/js/impl/SearchManagerObject.js 2015-04-14 13:43:09 UTC (rev 1173) @@ -164,6 +164,18 @@ this._eventManager.fireEvent(event, this); }, + _fireEventFinished: function(search) { + this._fireEvent(metadataSearchConstants.state.FINISHED, search); + }, + + _fireEventModified: function(search) { + this._fireEvent(metadataSearchConstants.state.MODIFIED, search); + }, + + _fireEventUncompleted: function(search) { + this._fireEvent(metadataSearchConstants.state.UNCOMPLETED, search); + }, + removeEventListener: function(type, listener) { this._eventManager.removeEventListener(type, listener, this); }
participants (1)
-
ygregoï¼ users.nuiton.org