floydwch / angular-underscore

Underscore adapter for AngularJS
316 stars 86 forks source link

Shim for _.uniq no longer needed #7

Closed dariusk closed 11 years ago

dariusk commented 11 years ago

In more recent versions of Underscore (since Nov 4), the _.uniq function contains essentially the exact same shim code you include in angular_underscore. This means that if you're running angular_underscore with, say, 1.4.4, you get this:

_.uniq( [1, 1, 2 ])
// RangeError: Maximum call stack size exceeded

So the shim is no longer needed here -- Underscore does it for you.

floydwch commented 11 years ago

Thanks!