mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Clean up jsDump modifications a bit.
This commit is contained in:
parent
3a043e0023
commit
90d4834c01
1 changed files with 5 additions and 4 deletions
|
@ -10,14 +10,15 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
// Register a jsDump parser for Base and override object parser to handle it
|
||||
|
||||
var objectParser = QUnit.jsDump.parsers.object;
|
||||
|
||||
// Register a jsDump parser for Base.
|
||||
QUnit.jsDump.setParser('Base', function (obj, stack) {
|
||||
return obj.toString();
|
||||
});
|
||||
|
||||
// Override the default object parser to handle Base objects.
|
||||
// We need to keep a reference to the previous implementation.
|
||||
var objectParser = QUnit.jsDump.parsers.object;
|
||||
|
||||
QUnit.jsDump.setParser('object', function (obj, stack) {
|
||||
return (obj instanceof Base
|
||||
? QUnit.jsDump.parsers.Base
|
||||
|
|
Loading…
Reference in a new issue