octopuscreative/FancySelect — pull request #67 by humancopy (2014-12-26 10:25:38+00:00)
Title: Namespace before event name

Hey,

Custom event namespaces must come **before** the event's name, otherwise the event gets triggered also when not namespaced.

For example, trying to trigger the `change` event on the `` element from inside the `change.fs` event will trigger `change` as well, causing an infinite triggering of the `change` event.

As an example I modified the `index.html` file to include the triggering of the `change` event on the `` element. If you try it with the current namespacing you'll see the event gets triggered infinitely, eventually causing en error.

Moving the namespace to the front (which is anyway the correct way of namespacing) fixes this issue.

Thanks ;)