diff options
| author | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
|---|---|---|
| committer | Tristan Zur <tzur@web.web.ccwn.org> | 2014-03-27 22:27:47 +0100 |
| commit | b62676ca5d3d6f6ba3f019ea3f99722e165a98d8 (patch) | |
| tree | 86722cb80f07d4569f90088eeaea2fc2f6e2ef94 /js/dojo-1.7.2/dojox/cometd/timestamp.js | |
Diffstat (limited to 'js/dojo-1.7.2/dojox/cometd/timestamp.js')
| -rw-r--r-- | js/dojo-1.7.2/dojox/cometd/timestamp.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/cometd/timestamp.js b/js/dojo-1.7.2/dojox/cometd/timestamp.js new file mode 100644 index 0000000..961b0c5 --- /dev/null +++ b/js/dojo-1.7.2/dojox/cometd/timestamp.js @@ -0,0 +1,13 @@ +//>>built +// wrapped by build app +define("dojox/cometd/timestamp", ["dijit","dojo","dojox","dojo/require!dojox/cometd/_base"], function(dijit,dojo,dojox){ +dojo.provide("dojox.cometd.timestamp"); +dojo.require("dojox.cometd._base"); + +// A cometd extension that adds a timestamp to every message +dojox.cometd._extendOutList.push(function(msg){ + msg.timestamp = new Date().toUTCString(); + return msg +}); + +}); |
