Add calls to 'breakpoint' method in ListButtonTool

This commit is contained in:
Inez Korczynski 2011-12-10 00:06:37 +00:00
parent 4e39b41727
commit 37d3b7ceac
2 changed files with 4 additions and 0 deletions

View file

@ -270,11 +270,13 @@ es.ListButtonTool.prototype.unlist = function( nodes ) {
};
es.ListButtonTool.prototype.onClick = function() {
this.toolbar.surfaceView.model.breakpoint();
if ( !this.$.hasClass( 'es-toolbarButtonTool-down' ) ) {
this.list( this.nodes, this.name );
} else {
this.unlist( this.nodes );
}
this.toolbar.surfaceView.model.breakpoint();
};
es.ListButtonTool.prototype.updateState = function( annotations, nodes ) {

View file

@ -127,7 +127,9 @@ es.SurfaceView = function( $container, model ) {
},
'paste': function() {
setTimeout( function() {
_this.model.breakpoint();
_this.insertFromInput();
_this.model.breakpoint();
}, 0 );
}
} );