source: Dev/branches/rest-dojo-ui/client/dojox/cometd/timestamp.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 245 bytes
Line 
1dojo.provide("dojox.cometd.timestamp");
2dojo.require("dojox.cometd._base");
3
4// A cometd extension that adds a timestamp to every message
5dojox.cometd._extendOutList.push(function(msg){
6        msg.timestamp = new Date().toUTCString();
7        return msg
8});
Note: See TracBrowser for help on using the repository browser.