Author: ygrego Date: 2015-06-11 14:41:38 +0000 (Thu, 11 Jun 2015) New Revision: 1702 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1702 Log: The element moved on top of contructor will be used for the creation of another object. Modified: oipf/lib/js/impl/model/MetadataSearch.js Modified: oipf/lib/js/impl/model/MetadataSearch.js =================================================================== --- oipf/lib/js/impl/model/MetadataSearch.js 2015-06-11 14:39:32 UTC (rev 1701) +++ oipf/lib/js/impl/model/MetadataSearch.js 2015-06-11 14:41:38 UTC (rev 1702) @@ -97,18 +97,7 @@ class MetadataSearch { constructor(searchTarget, searchManager) { - - this._currentQuery = null; - /* - * Description: - * The subset of search results that has been requested by the application. - * - * Visibility Type: readonly SearchResults - */ - this.result = new SearchResults(this); - - /* * Description : * The target(s) of the search. Valid values are: * @@ -125,6 +114,17 @@ */ this.searchTarget = searchTarget; + this._currentQuery = null; + + /* + * Description: + * The subset of search results that has been requested by the application. + * + * Visibility Type: readonly SearchResults + */ + this.result = new SearchResults(this); + + this._searchManager = searchManager; this._constraints = { channels: [],