Interaction: make _start not have to return true (an explicit return false will still cancel)

This commit is contained in:
Richard D. Worth 2012-01-26 11:02:54 -05:00
parent 7236f2935a
commit d056a9ac2f
2 changed files with 1 additions and 3 deletions

View File

@ -104,8 +104,6 @@ $.widget( "ui.draggable", $.ui.interaction, {
this._blockFrames(); this._blockFrames();
this._setCss(); this._setCss();
return true;
}, },
_move: function( event, pointerPosition ) { _move: function( event, pointerPosition ) {

View File

@ -29,7 +29,7 @@ $.widget( "ui.interaction", {
return false; return false;
} }
started = this._start( event, pointerPosition ); started = ( this._start( event, pointerPosition ) !== false );
if ( started ) { if ( started ) {
interaction.started = true; interaction.started = true;
interaction.hooks[ hook ].handle( this ); interaction.hooks[ hook ].handle( this );