mennovanslooten / underscore-observe

This is an extension to Underscore that allows you to add observer functions to any standard JavaScript Array.
http://mennovanslooten.github.com/underscore-observe
MIT License
59 stars 16 forks source link

Adds Bower Support #5

Closed alanjames1987 closed 10 years ago

alanjames1987 commented 10 years ago

I created a file for Bower support. I made the version number 0.0.1 as I'm not sure what version you're on.

If you approve this it will solve issue #4.

alanjames1987 commented 10 years ago

I've also added an observeOnce method to my local repo so that multiple bindings don't get added to the same array.

This is useful for single page applications where the SPA router may run binding code multiple times on a single page load. With a observeOnce method a developer can specify they don't want this behavior.

mennovanslooten commented 10 years ago

Thanks for the work on bower support. Could you make just the bower part a separate pull request? I think maybe the observeOnce behavior should be the default observe behavior. I'll give it some more thought.

alanjames1987 commented 10 years ago

Sure thing. I will remove the other commit and submit only the Bower support.