Index: trunk/extensions/VisualEditor/modules/es/models/es.SurfaceModel.js |
— | — | @@ -22,8 +22,8 @@ |
23 | 23 | this.lengthDifferenceLimit = 24; |
24 | 24 | |
25 | 25 | // DEBUG don't commit |
26 | | - var _this = this; |
27 | | - this.addListener( 'transact', function() { console.log( _this.history ); } ); |
| 26 | + //var _this = this; |
| 27 | + //this.addListener( 'transact', function() { console.log( _this.history ); } ); |
28 | 28 | }; |
29 | 29 | |
30 | 30 | /* Methods */ |
— | — | @@ -100,8 +100,8 @@ |
101 | 101 | * (such as when replacing - delete, then insert) |
102 | 102 | */ |
103 | 103 | es.SurfaceModel.prototype.transact = function( transaction, isPartial ) { |
104 | | - console.log( 'tx:' + $.map( transaction.getOperations(), function(tx) { return tx.type; } ).join(",") |
105 | | - + ' isPartial:' + isPartial ); |
| 104 | + // console.log( 'tx:' + $.map( transaction.getOperations(), function(tx) { return tx.type; } ).join(",") |
| 105 | + // + ' isPartial:' + isPartial ); |
106 | 106 | this.doc.commit( transaction ); |
107 | 107 | |
108 | 108 | // if we have changed the kind of operation (delete -> insert or insert -> delete or annotations ) |