From 19c7e874d63360d972c8e39547755c27b14c9d7b Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Wed, 7 Dec 2011 22:37:41 +0000 Subject: [PATCH] Shortened the names of operations --- modules/sandbox/sandbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/sandbox/sandbox.js b/modules/sandbox/sandbox.js index 6e91c5ace4..8c9b10bd4b 100644 --- a/modules/sandbox/sandbox.js +++ b/modules/sandbox/sandbox.js @@ -492,7 +492,7 @@ $(document).ready( function() { while ( --i >= end ) { action = surfaceModel.history[i]; if ( action instanceof es.Range ) { - events += '
select( ' + action.from + ', ' + action.to + ' )
'; + events += '
sel( ' + action.from + ', ' + action.to + ' )
'; } else { ops = action.getOperations().slice( 0 ); for ( var j = 0; j < ops.length; j++ ) { @@ -506,7 +506,7 @@ $(document).ready( function() { if ( typeof data !== 'string' && typeof data !== 'number' ) { data = '-'; } - ops[j] = ops[j].type + '( ' + data + ' )'; + ops[j] = ops[j].type.substr( 0, 3 ) + '( ' + data + ' )'; } events += '
' + ops.join( ', ' ) + '
'; } @@ -540,6 +540,7 @@ $(document).ready( function() { } ); } ); + surfaceModel.on( 'transact', function() { if ( currentMode ) { currentMode.update.call( currentMode );