Convert the last two uses of $.toJSON to ve.getHash

Change-Id: Iff033590a6033a8de88dc571481442a819146c90
This commit is contained in:
Catrope 2012-08-30 17:29:54 -07:00
parent f26ae1662b
commit 2d36ce9465
2 changed files with 2 additions and 2 deletions

View file

@ -231,7 +231,7 @@ ve.dm.DocumentSynchronizer.prototype.queueEvent = function ( node, event ) {
// Check if this is already queued
var
args = Array.prototype.slice.call( arguments, 1 ),
hash = $.toJSON( args );
hash = ve.getHash( args );
if ( !node.queuedEventHashes ) {
node.queuedEventHashes = {};

View file

@ -118,7 +118,7 @@ ve.dm.TransactionProcessor.processors.annotate = function ( op ) {
throw new Error( 'Invalid annotation method ' + op.method );
}
hash = $.toJSON( op.annotation );
hash = ve.getHash( op.annotation );
if ( op.bias === 'start' ) {
target[hash] = op.annotation;
} else {