thalmiclabs / myo.js

Myo javascript bindings
Apache License 2.0
198 stars 63 forks source link

Returns this instead of true if MyO is already locked #14

Closed WesSouza closed 9 years ago

WesSouza commented 9 years ago

Tiny fix, the .lock method returns true if the MyO is already locked, but returns this on a normal lock and most of other methods.

Returning true would certainly break any implemented chains, so I changed it to the regular this.