underscore: Version 1.9.2 no longer works with ExtendScript .jsx

// #include "underscore-1.8.3.js"
#include "underscore-1.9.2.js"

var artists = ['Pharrel Williams', 'Led Zeppelin', 'Rolling Stones'];

_.each(artists, function(artist, index, artists) {
  alert('artist: ' + artist);
});

Error : _ is undefined

Now try version 1.8.3 it works like a charm

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

@jgonggrijp Thanks for all your help looking into this!

@jgonggrijp All version works(D, E, F) and below is the output without underscorejs

this function
Function function
Global undefined
global undefined
self undefined
$ object
$.global object
identity true
$.Function undefined