示例#1
0
 /** 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);
 }
示例#2
0
 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();
 };
示例#3
0
 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();
 };
示例#4
0
 /** 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();
 }
示例#5
0
 /** Initialize the agent */
 function load() {
     _load = new $.Deferred();
     Inspector.on("Page.loadEventFired", _onLoadEventFired);
     return _load.promise();
 }
示例#6
0
 /** Initialize the agent */
 function load() {
     Inspector.Console.enable();
     Inspector.on("Console.messageAdded", _onMessageAdded);
     Inspector.on("Console.messageRepeatCountUpdated", _onMessageRepeatCountUpdated);
     Inspector.on("Console.messagesCleared", _onMessagesCleared);
 }
示例#7
0
 /** Initialize the agent */
 function load() {
     _highlight = {};
     Inspector.on("RemoteAgent.highlight", _onRemoteHighlight);
 }
示例#8
0
 /** Initialize the agent */
 function load() {
     Inspector.on("RemoteAgent.showgoto", _onRemoteShowGoto);
     Inspector.on("RemoteAgent.goto", _onRemoteGoto);
 }
示例#9
0
 /** Initialize the agent */
 function load() {
     _urlRequested = {};
     Inspector.Network.enable();
     Inspector.on("Network.requestWillBeSent", _onRequestWillBeSent);
 }