mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 19:10:11 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d1ef8cc95a
commit
ccdf273353
10
diff.js
10
diff.js
@ -328,6 +328,15 @@ var proxy = function(path, func){
|
|||||||
// NOTE: this will lose some meta-information the diff format contains
|
// NOTE: this will lose some meta-information the diff format contains
|
||||||
// like the type information which is not needed for patching but
|
// like the type information which is not needed for patching but
|
||||||
// may be useful for a more thorough compatibility check.
|
// may be useful for a more thorough compatibility check.
|
||||||
|
//
|
||||||
|
// XXX should we change this to a different API?
|
||||||
|
// ...the only "bad" thing I can think of is the dependency on object.js
|
||||||
|
// Example:
|
||||||
|
// var d = new Diff(A, B)
|
||||||
|
// d.patch(X)
|
||||||
|
// d.undo(X) // same as: d.reverse().patch(X)
|
||||||
|
// d.json()
|
||||||
|
// ...
|
||||||
var Types = {
|
var Types = {
|
||||||
__cache: null,
|
__cache: null,
|
||||||
|
|
||||||
@ -676,7 +685,6 @@ var Types = {
|
|||||||
check: function(diff, obj, options){
|
check: function(diff, obj, options){
|
||||||
// XXX
|
// XXX
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user