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

improved compatibility with node and node console #3

Open jcollum opened 11 years ago

jcollum commented 11 years ago

All tests are passing.

Usage:

und = require('underscore'); 
observableMixin =  require('./assets/js/lib/underscore.observable.js'); 
observableMixin(und);

Maybe it should be taking a guess at the existence of the _ variable when it's loaded via require?

asvarga commented 10 years ago

Hi, I'm having trouble getting this to work with node. When I use the above code with the appropriate reference to underscore.observable.js, I get an error at line 196: ".mixin({ ..." saying "ReferenceError: is not defined". What might I be doing wrong? Thanks.