/** Initialize the LiveDevelopment Session */ function init(theConfig) { exports.config = theConfig; Inspector.on("connect", _onConnect); Inspector.on("disconnect", _onDisconnect); Inspector.on("error", _onError); Inspector.on("load", _onLoad); $(DocumentManager).on("currentDocumentChange", _onDocumentChange); }
var HTMLDocument = function HTMLDocument(doc, editor) { this.doc = doc; this.editor = editor; this.onHighlight = this.onHighlight.bind(this); this.onChange = this.onChange.bind(this); this.onCursorActivity = this.onCursorActivity.bind(this); Inspector.on("HighlightAgent.highlight", this.onHighlight); $(this.editor).on("change", this.onChange); $(this.editor).on("cursorActivity", this.onCursorActivity); this.onCursorActivity(); };
var JSDocument = function JSDocument(doc, editor) { this.doc = doc; this.editor = editor; this.script = ScriptAgent.scriptForURL(this.doc.url); this.onHighlight = this.onHighlight.bind(this); this.onChange = this.onChange.bind(this); this.onCursorActivity = this.onCursorActivity.bind(this); Inspector.on("HighlightAgent.highlight", this.onHighlight); $(this.editor).on("change", this.onChange); $(this.editor).on("cursorActivity", this.onCursorActivity); this.onCursorActivity(); };
/** Initialize the agent */ function load() { _load = new $.Deferred(); Inspector.on("Page.frameNavigated", _onFrameNavigated); Inspector.on("Page.loadEventFired", _onLoadEventFired); Inspector.on("DOM.documentUpdated", _onDocumentUpdated); Inspector.on("DOM.setChildNodes", _onSetChildNodes); Inspector.on("DOM.childNodeCountUpdated", _onChildNodeCountUpdated); Inspector.on("DOM.childNodeInserted", _onChildNodeInserted); Inspector.on("DOM.childNodeRemoved", _onChildNodeRemoved); Inspector.Page.enable(); Inspector.Page.reload(); return _load.promise(); }
/** Initialize the agent */ function load() { _load = new $.Deferred(); Inspector.on("Page.loadEventFired", _onLoadEventFired); return _load.promise(); }
/** Initialize the agent */ function load() { Inspector.Console.enable(); Inspector.on("Console.messageAdded", _onMessageAdded); Inspector.on("Console.messageRepeatCountUpdated", _onMessageRepeatCountUpdated); Inspector.on("Console.messagesCleared", _onMessagesCleared); }
/** Initialize the agent */ function load() { _highlight = {}; Inspector.on("RemoteAgent.highlight", _onRemoteHighlight); }
/** Initialize the agent */ function load() { Inspector.on("RemoteAgent.showgoto", _onRemoteShowGoto); Inspector.on("RemoteAgent.goto", _onRemoteGoto); }
/** Initialize the agent */ function load() { _urlRequested = {}; Inspector.Network.enable(); Inspector.on("Network.requestWillBeSent", _onRequestWillBeSent); }