For example, it is possible to refer to the standard
cometd object using the following notation:
// Dojo style var cometd = dojox.cometd; // jQuery style var cometd = $.cometd;
If you followed the Primer, you may have noticed that the skeleton project requires to reference both the portable implementation, under
org/cometd.js, and one binding - for example Dojo's - under
dojox/cometd.js. For jQuery, the binding is under
Small differences only surface when passing callback functions to the Bayeux API, where Dojo users may like to use
dojo.hitch(), while jQuery users may like an anonymous function approach.