mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Add calls to 'breakpoint' method in ListButtonTool
This commit is contained in:
parent
4e39b41727
commit
37d3b7ceac
|
@ -270,11 +270,13 @@ es.ListButtonTool.prototype.unlist = function( nodes ) {
|
||||||
};
|
};
|
||||||
|
|
||||||
es.ListButtonTool.prototype.onClick = function() {
|
es.ListButtonTool.prototype.onClick = function() {
|
||||||
|
this.toolbar.surfaceView.model.breakpoint();
|
||||||
if ( !this.$.hasClass( 'es-toolbarButtonTool-down' ) ) {
|
if ( !this.$.hasClass( 'es-toolbarButtonTool-down' ) ) {
|
||||||
this.list( this.nodes, this.name );
|
this.list( this.nodes, this.name );
|
||||||
} else {
|
} else {
|
||||||
this.unlist( this.nodes );
|
this.unlist( this.nodes );
|
||||||
}
|
}
|
||||||
|
this.toolbar.surfaceView.model.breakpoint();
|
||||||
};
|
};
|
||||||
|
|
||||||
es.ListButtonTool.prototype.updateState = function( annotations, nodes ) {
|
es.ListButtonTool.prototype.updateState = function( annotations, nodes ) {
|
||||||
|
|
|
@ -127,7 +127,9 @@ es.SurfaceView = function( $container, model ) {
|
||||||
},
|
},
|
||||||
'paste': function() {
|
'paste': function() {
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
|
_this.model.breakpoint();
|
||||||
_this.insertFromInput();
|
_this.insertFromInput();
|
||||||
|
_this.model.breakpoint();
|
||||||
}, 0 );
|
}, 0 );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue