Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for report() accepting a node instead of just text or a…

…n array.
  • Loading branch information...
commit 20b97c39aa3bf34b938afb28f1f9ec4ee9ef91b2 1 parent 041787a
@calebegg calebegg authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 jquery.console.js
View
4 jquery.console.js
@@ -472,11 +472,13 @@
updatePromptDisplay();
if (typeof msg == 'string') {
message(msg,className);
- } else {
+ } else if ($.isArray(msg)) {
for (var x in msg) {
var ret = msg[x];
message(ret.msg,ret.className);
}
+ } else { // Assume it's a DOM node or jQuery object.
+ inner.append(msg);
}
newPromptBox();
};
Please sign in to comment.
Something went wrong with that request. Please try again.