Skip to content

Commit

Permalink
Factored out noop and identity, see phetsims/tandem#71
Browse files Browse the repository at this point in the history
(cherry picked from commit 968bf3c)
  • Loading branch information
samreid authored and jbphet committed Nov 20, 2018
1 parent 5244d45 commit f37ea34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ define( function( require ) {

// other
cursor: 'pointer',
startDrag: function() {}, // called when a drag sequence starts
endDrag: function() {}, // called when a drag sequence ends
constrainValue: function( value ) { return value; }, // called before valueProperty is set
startDrag: _.noop, // called when a drag sequence starts
endDrag: _.noop, // called when a drag sequence ends
constrainValue: _.identity, // called before valueProperty is set

enabledProperty: null, // see below
enabledRangeProperty: null, // see below
Expand Down

0 comments on commit f37ea34

Please sign in to comment.