Author: ygrego Date: 2015-04-14 10:32:24 +0000 (Tue, 14 Apr 2015) New Revision: 1162 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1162 Log: Condition changement. Modified: oipf/js/impl/model/MetadataSearch.js Modified: oipf/js/impl/model/MetadataSearch.js =================================================================== --- oipf/js/impl/model/MetadataSearch.js 2015-04-14 09:03:21 UTC (rev 1161) +++ oipf/js/impl/model/MetadataSearch.js 2015-04-14 10:32:24 UTC (rev 1162) @@ -177,7 +177,7 @@ throw new TypeError("Insufficient number of arguments."); } - if (!(typeof channel === "object") || + if (!(channel instanceof Channel) || (startTime && !Number.isInteger(startTime)) || (count && !Number.isInteger(count))) { throw new TypeError