diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-19 21:10:08 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-20 11:46:20 +0200 |
| commit | 656f301a22f5e14053e5d400578bc8a8ee8b95a8 (patch) | |
| tree | a66ff248deb90f9e7e074a7afcd251fc1e475448 /src/client/model | |
| parent | add6a35af21834e7480fa044b0abb9d8c2ce9cbf (diff) | |
client: Attr_Diff: add toString for debugging
Diffstat (limited to 'src/client/model')
| -rw-r--r-- | src/client/model/diff.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/model/diff.js b/src/client/model/diff.js index 2fd6ade2..5835f5d6 100644 --- a/src/client/model/diff.js +++ b/src/client/model/diff.js @@ -62,6 +62,10 @@ define([], this.__type_link = {}; } + Attr_Diff.prototype.toString = function() { + return 'AttrDiff<' + JSON.stringify(this) + '>'; + } + Attr_Diff.prototype.init_attr_diff = function(type_name, id) { if ('node' != type_name && 'link' != type_name) { |
