MCPcopy
hub / github.com/cortesi/devd / generateEvent

Function generateEvent

livereload/static/client.js:111–115  ·  view source on GitHub ↗

* This function generates an event that is compatible with standard * compliant browsers and IE9 - IE11 * * This will prevent the error: * Object doesn't support this action * * http://stackoverflow.com/questions/19345392/why-arent-my-parameters-

(s, args)

Source from the content-addressed store, hash-verified

109 * @param args Object an optional object that the event will use
110 */
111 function generateEvent(s, args) {
112 var evt = document.createEvent("CustomEvent");
113 evt.initCustomEvent(s, false, false, args);
114 return evt;
115 };
116
117 this.open = function(reconnectAttempt) {
118 ws = new WebSocket(self.url, protocols || []);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected