Skip to content

Commit

Permalink
important bug fix, only default options if none provided, phetsims/ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 26, 2017
1 parent b043daf commit fd6191f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/NumberControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ define( function( require ) {
'Use general callbacks like "startCallback" or specific callbacks like "sliderStartCallback" but not both.' );

// Set here so that we can validate above based on falsey.
options.startCallback = function() {};
options.endCallback = function() {};
options.startCallback = options.startCallback || function() {};
options.endCallback = options.endCallback || function() {};
}

sceneryPhet.register( 'NumberControl', NumberControl );
Expand Down

0 comments on commit fd6191f

Please sign in to comment.