Skip to content

Commit

Permalink
Fix case of missing options, see #116
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jan 22, 2017
1 parent be0de6e commit ab0dd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/BooleanProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ define( function( require ) {
* @constructor
*/
function BooleanProperty( value, options ) {
assert && assert( !options.phetioValueType, 'phetioValueType is provided by BooleanProperty' );
assert && assert( !options || !options.phetioValueType, 'phetioValueType is provided by BooleanProperty' );
options = _.extend( {
phetioValueType: TBoolean
}, options );
Expand Down

0 comments on commit ab0dd89

Please sign in to comment.