Commit 50601c4b authored by Thonier Florian's avatar Thonier Florian Committed by Mathieu Giraud
Browse files

clone.js : getDeletion return now 'undefined' if not able to founded the asked...

clone.js : getDeletion return now 'undefined' if not able to founded the asked deletion on the asked segment
parent 37c4c527
......@@ -801,15 +801,14 @@ Clone.prototype = {
if (this.hasSeg(field_name) ) {
if ( typeof this.seg[field_name][deletion_name] !== 'undefined' )
{
console.log("got it ! ", this.seg[field_name][deletion_name] )
return this.seg[field_name][deletion_name]
} else {
// has segment, but no deletion field
return -1
return 'undefined'
}
} else {
// haven't the segment
return -1
return 'undefined'
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment