witten
/
luminotes
Archived
1
0
Fork 0

Update the toolbar state everytime the mouse is clicked in case the cursor has moved.

This commit is contained in:
Dan Helfman 2007-08-10 19:32:12 +00:00
parent ea64cc97a2
commit 7a26017a28
1 changed files with 3 additions and 1 deletions

View File

@ -265,6 +265,9 @@ Editor.prototype.key_released = function ( event ) {
}
Editor.prototype.mouse_clicked = function ( event ) {
// update the state no matter what, in case the cursor has moved
signal( this, "state_changed", this );
// we only want to deal with left mouse button clicks
if ( event.mouse().button.middle || event.mouse().button.right )
return;
@ -283,7 +286,6 @@ Editor.prototype.mouse_clicked = function ( event ) {
return;
event.stop();
signal( this, "state_changed", this );
// in case the link is to ourself, first grab the most recent version of our title
this.scrape_title();