summaryrefslogtreecommitdiff
path: root/includes/js/dojox/cometd/timestamp.js
blob: a5b803369a6c94071c32d19303d5a4595139c9b7 (plain)
1
2
3
4
5
6
7
8
9
if(!dojo._hasResource["dojox.cometd.timestamp"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.cometd.timestamp"] = true;
dojo.provide("dojox.cometd.timestamp");
dojo.require("dojox.cometd");

// A cometd extension that adds a timestamp to every message
dojox.cometd._extendOutList.push(function(msg){msg.timestamp=new Date().toUTCString();return msg});

}