Skip to content

Commit a6ad5fb

Browse files
committed
added a comment
1 parent a0c96f7 commit a6ad5fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/events.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export function bindEvents(){
99
this.DOM[elm].addEventListener(event, cb.bind(this), {pasive:false})
1010
)
1111

12+
// bind storage event listener because all color pickers are connected,
13+
// so if one save or remove a color the change will reflect in all others
1214
window.addEventListener('storage', onStorage.bind(this))
1315

1416
// assuming picker uses as a popup

0 commit comments

Comments
 (0)