Show More
@@ -32,7 +32,14 casper.open_new_notebook = function () { | |||
|
32 | 32 | for (var i = 0; i < arguments.length; i++) { |
|
33 | 33 | var value = arguments[i]; |
|
34 | 34 | if (value instanceof Object) { |
|
35 | pretty_arguments.push(JSON.stringify(value, null, ' ')); | |
|
35 | var name = value.name || 'Object'; | |
|
36 | // Print a JSON string representation of the object. | |
|
37 | // If we don't do this, [Object object] gets printed | |
|
38 | // by casper, which is useless. The long regular | |
|
39 | // expression reduces the verbosity of the JSON. | |
|
40 | pretty_arguments.push(name + ' {' + JSON.stringify(value, null, ' ') | |
|
41 | .replace(/(\s+)?({)?(\s+)?(}(\s+)?,?)?(\s+)?(\s+)?\n/g, '\n') | |
|
42 | .replace(/\n(\s+)?\n/g, '\n')); | |
|
36 | 43 | } else { |
|
37 | 44 | pretty_arguments.push(value); |
|
38 | 45 | } |
@@ -159,6 +159,7 def find_package_data(): | |||
|
159 | 159 | pjoin(components, "jquery-ui", "themes", "smoothness", "images", "*"), |
|
160 | 160 | pjoin(components, "marked", "lib", "marked.js"), |
|
161 | 161 | pjoin(components, "requirejs", "require.js"), |
|
162 | pjoin(components, "rsvp", "rsvp.js"), | |
|
162 | 163 | pjoin(components, "underscore", "underscore-min.js"), |
|
163 | 164 | pjoin(components, "moment", "moment.js"), |
|
164 | 165 | pjoin(components, "moment", "min", "moment.min.js"), |
General Comments 0
You need to be logged in to leave comments.
Login now