Skip to content

Commit

Permalink
better documentation about the progress function
Browse files Browse the repository at this point in the history
  • Loading branch information
boblemarin committed Aug 31, 2014
1 parent 58a30c9 commit 7642c99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ If you need to manually query the progress of the user, use the progress method
There is also a `progressFunction` option where you can provide a function that will be called each time the user erases a new area. It receives as argument the normalized progress value (0.0 to 1.0).

$('#yourImage').eraser( {
progressFunction: someInterfaceUpdatingFunction
progressFunction: function(p) {
console.log(Math.round(p * 100) + '%');
}
});


Expand Down

0 comments on commit 7642c99

Please sign in to comment.