canjs / can-queues

A light weight JavaScript task queue
https://canjs.com/doc/can-queues.html
MIT License
2 stars 2 forks source link

Throw an error if invalid queue name is used #12

Open Sinjhin opened 7 years ago

Sinjhin commented 7 years ago

If I use something like:

if(parentObservable && parentObservable[getValueSymbol]) {
  canReflect.onValue(parentObservable, updateChild,"dom_ui");
}

It should throw an error because the proper queue is domUI, not dom_ui