mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 02:50:10 +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
|
||||
// like the type information which is not needed for patching but
|
||||
// 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 = {
|
||||
__cache: null,
|
||||
|
||||
@ -676,7 +685,6 @@ var Types = {
|
||||
check: function(diff, obj, options){
|
||||
// XXX
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user