-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show binding changes #263
Show binding changes #263
Changes from 12 commits
2cacb7a
4a62164
f8aa3e4
35693e0
fe1f05b
6edaaf2
a195261
aa4870c
61b15e0
e25b8ad
7961783
1856291
c8280d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -595,13 +595,19 @@ REPLConsole.prototype.writeOutput = function(output) { | |
this.inner.appendChild(consoleMessage); | ||
this.newPromptBox(); | ||
return consoleMessage; | ||
}; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one too, leave the |
||
|
||
REPLConsole.prototype.writeError = function(output) { | ||
var consoleMessage = this.writeOutput(output); | ||
addClass(consoleMessage, "error-message"); | ||
return consoleMessage; | ||
}; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
||
REPLConsole.prototype.writeNotification = function(output) { | ||
var consoleMessage = this.writeOutput(output); | ||
addClass(consoleMessage, "notification-message"); | ||
return consoleMessage; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
||
REPLConsole.prototype.onEnterKey = function() { | ||
var input = this._input; | ||
|
@@ -864,11 +870,16 @@ REPLConsole.prototype.scrollToBottom = function() { | |
this.outer.scrollTop = this.outer.scrollHeight; | ||
}; | ||
|
||
// Change the binding of the console | ||
// Change the binding of the console. | ||
REPLConsole.prototype.switchBindingTo = function(frameId, callback) { | ||
var url = this.getSessionUrl('trace'); | ||
var params = "frame_id=" + encodeURIComponent(frameId); | ||
postRequest(url, params, callback); | ||
|
||
var _this = this; | ||
postRequest(url, params, function() { | ||
var text = "Context has changed to: " + callback(); | ||
_this.writeNotification(text); | ||
}); | ||
}; | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may drop this diff change as well, e.g. leave it as before: