davidtheclark / focus-group

Create a group of nodes with special focusing powers

Home Page:http://davidtheclark.github.io/focus-group/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot assign to read only property 'keybindings' of object

souporserious opened this issue · comments

image
image

Found this error after doing a fresh NPM install. Any ideas to fix it?

Can we just use a local variable since we only use options.keybindings in the constructor?

Yes, we could use a local variable. Call the argument userOptions and the variable options. I'm sort of confused by this, though —— I don't understand what's illegal about that unless you the user froze your options object. Is there something different about your environment that would make your options argument read only?

Yeah it's weird. I'm not sure if my environment is doing it somewhere. I tried Googling around, but I couldn't find anything :/