bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

Issue in Documentation #481

Open SanchitSahu opened 7 years ago

SanchitSahu commented 7 years ago

I don't know if this is the right place to report this or where from to make a request to update the documentation.

The issues are the examples given for the dragstart and dragstop events. Given is

$(element).on("dragstart.spectrum"): function(e, color) {
    color.toHexString(); // #ff0000
}

whereas it should be

$(element).on("dragstart.spectrum", function(e, color) {
    color.toHexString(); // #ff0000
});

Same way for the dragstop event example.

I understand that this is minor for a developer who knows jquery. But for beginners, copying and pasting the example code is an easy job.