Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Add docstrings for increment and decrement methods
Browse files Browse the repository at this point in the history
  • Loading branch information
garlicnation committed Jan 8, 2015
1 parent d2ac5f5 commit 33a9330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions paper-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,18 @@
}
},

/**
* Increases value by `step` but not above `max`.
* @method
*/
increment: function() {
this.value = this.clampValue(this.value + this.step);
},

/**
* Decreases value by `step` but not below `min`.
* @method
*/
decrement: function() {
this.value = this.clampValue(this.value - this.step);
},
Expand Down

0 comments on commit 33a9330

Please sign in to comment.