Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.ContentObserver.js |
— | — | @@ -38,12 +38,17 @@ |
39 | 39 | };
|
40 | 40 |
|
41 | 41 | ve.ce.ContentObserver.prototype.poll = function() {
|
42 | | - console.log(this.$node[0]);
|
43 | 42 | var text = ve.ce.Surface.getDOMText2( this.$node[0] );
|
44 | 43 | var hash = ve.ce.Surface.getDOMHash( this.$node[0] );
|
45 | 44 |
|
46 | 45 | if ( text !== this.prevText || hash !== this.prevHash ) {
|
47 | | - this.emit('change');
|
| 46 | + this.emit('change', {
|
| 47 | + $node: this.$node,
|
| 48 | + prevText: this.prevText,
|
| 49 | + text: text,
|
| 50 | + prevHash: this.prevHash,
|
| 51 | + hash: hash
|
| 52 | + } );
|
48 | 53 | this.prevText = text;
|
49 | 54 | this.prevHash = hash;
|
50 | 55 | }
|