Author: ygrego Date: 2015-03-31 08:17:33 +0000 (Tue, 31 Mar 2015) New Revision: 990 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/990 Log: The method "timeout" is added into a namespace. Modified: oipf/js/utils/Utils.js Modified: oipf/js/utils/Utils.js =================================================================== --- oipf/js/utils/Utils.js 2015-03-31 08:15:29 UTC (rev 989) +++ oipf/js/utils/Utils.js 2015-03-31 08:17:33 UTC (rev 990) @@ -2,6 +2,14 @@ * Some code based on RFC 4122, section 4.4 * (Algorithms for Creating a UUID from Truly Random or Pseudo-Random Number). */ +var oipf = { + utils: {} +}; + +oipf.utils.timeout = function(time) { + return new Timeout(time); +}; + function createUUID() { // http://www.ietf.org/rfc/rfc4122.txt var s = []; @@ -39,8 +47,8 @@ return string.charAt(0).toUpperCase() + string.slice(1); } -function logTest(message) { - console.log("[TEST-INFO] "+message); +function logTest() { + console.log.apply(console, arguments); } function createCustomEvent(type, param) {
participants (1)
-
ygregoï¼ users.nuiton.org