Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Dev Request] Updated version of Underscore

1442572340
Lucian
Pro
API Scripter
Hi, I wasn't sure if this was more appropriate here or in the suggestions forum, but I've just been caught out by the fact that the wiki happily points us to the latest version of the underscore documentation, but the API server appears to be running version 1.4.4, which is pretty ancient (2.5 years ago!). Not sure if there have been any breaking changes (doesn't seem like the sort of library that would do that), but it would seem sensible to upgrade at some point - there are various useful features missing. At the very least the wiki needs to be clear about which version is supported! Cheers, Lucian
1442574291
The Aaron
Pro
API Scripter
Seconded! =D I'll update the wiki to be clear, but it would be great to have the latest version. I've dug into this before and there are a few features that I'd like to make use of. =D
1442580602
Lucian
Pro
API Scripter
What I've done for the time being is used the _.mixin functionality to add local copies of the new underscore functions that I want to use. If and when the devs get round to updating the version on the API server it should be just a matter of removing that code and the rest should carry on working exactly the same... Cheers, Lucian
1442588001
The Aaron
Pro
API Scripter
I've considered doing that as well.  You can future proof by doing something like: if( !_.has(_,'partial')){ _.mixin({ partial: function() { /* ... */ }}); }