Skip to content

Commit e98b749

Browse files
committed
Compatibility with PHPDebugConsole 3.2 + refactor Object dumper
1 parent ca6ee0f commit e98b749

11 files changed

Lines changed: 1672 additions & 1086 deletions

File tree

src/js/main.js

Lines changed: 917 additions & 631 deletions
Large diffs are not rendered by default.

src/js/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js_src/Logger/Dump.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Dump.prototype.dump = function (val, opts) {
7474
dumpOpts.type = type[0]
7575
dumpOpts.typeMore = type[1]
7676
}
77+
if (typeof dumpOpts.attribs.class === 'string') {
78+
dumpOpts.attribs.class = [dumpOpts.attribs.class]
79+
}
7780
dumpOptStack.push(dumpOpts)
7881
method = 'dump' + dumpOpts.type.ucfirst()
7982
val = dumpOpts.typeMore === 'abstraction'
@@ -212,7 +215,7 @@ Dump.prototype.dumpArray = function (array) {
212215
Dump.prototype.dumpArrayValue = function (key, val, withKey) {
213216
var classes = ['t_key']
214217
if (/^\d+$/.test(key)) {
215-
classes.push('t_int');
218+
classes.push('t_int')
216219
}
217220
return withKey
218221
? '\t<li>' +

0 commit comments

Comments
 (0)