Skip to content

Commit

Permalink
add 'locked' query parameter for initializing lock 'on', #64
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Jun 4, 2018
1 parent 9aa8f26 commit 9d50ffb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion js/common/EqualityExplorerQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ define( function( require ) {
isValidValue: function( value ) {
return ( value === null ) || ( value.length === 9 );
}
}
},

// Providing this flag will initialize the lock feature to be 'on' by default.
// For internal use only, not public facing.
locked: { type: 'flag' }
} );

equalityExplorer.register( 'EqualityExplorerQueryParameters', EqualityExplorerQueryParameters );
Expand Down
2 changes: 1 addition & 1 deletion js/common/model/EqualityExplorerScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ define( function( require ) {
// if the 'lock' feature is supported...
if ( options.lockable ) {

this.lockedProperty = new BooleanProperty( false );
this.lockedProperty = new BooleanProperty( EqualityExplorerQueryParameters.locked );

// Update the lockedProperty of all term creators. unlink not needed.
this.lockedProperty.link( function( locked ) {
Expand Down

0 comments on commit 9d50ffb

Please sign in to comment.