News for hackers. Stuff that matters.
Re:JavaScript Internationalization API by tlrobinson on Thursday December 25, 2014 @01:34PM (#8796823)
As an aside, this is sort of a strange pattern:

    var ctor = "Collator"; // or the others
    var instance = new Intl[ctor](locales, options);
What's the purpose "ctor" here? i.e. Why not just do "new Intl.Collator(locales, options)"? Is it just to demonstrate the other constructors have the same arguments?
Re:JavaScript Internationalization API by fourstar on Thursday December 25, 2014 @09:36PM (#8797811)
`ctor` could be an array and `instance` could be initialized for each index in the array. I've done stuff like that when initializing Backbone views awhile ago.