Skip to content

Commit

Permalink
Added assert messages, see #243
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 6, 2016
1 parent 4ba3c1c commit 7c1cb4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/buttons/StepBackwardButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ define( function( require ) {
* @constructor
*/
function StepBackwardButton( options ) {
assert && assert( !options.direction );
assert && assert( !options.direction, 'options.direction must not be specified for StepBackwardButton' );
StepButton.call( this, _.extend( {}, options, { direction: 'backward' } ) );
}

Expand Down
2 changes: 1 addition & 1 deletion js/buttons/StepForwardButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define( function( require ) {
* @constructor
*/
function StepForwardButton( options ) {
assert && assert( !options.direction );
assert && assert( !options.direction, 'options.direction must not be specified for StepForwardButton' );
StepButton.call( this, _.extend( {}, options, { direction: 'forward' } ) );
}

Expand Down

0 comments on commit 7c1cb4a

Please sign in to comment.