Globlization and Object.system.load

2011-11-17 Thread Roozbeh Pournader
I was talking with Nebojša about the Object.system.load interface for loading globalization, thinking from the user side. Brendan's email suggested something like this: Object.system.load = function(name, callback) { if (name === '@g11n') { callback(v8Locale); } }; That would make

Re: Globlization and Object.system.load

2011-11-17 Thread Roozbeh Pournader
On Thu, Nov 17, 2011 at 3:08 PM, Roozbeh Pournader rooz...@google.com wrote: That would make something like this the minimum code needed to use the module: var g11n; Object.system.load(@g11n, function (g11n_module) {   g11n = g11n_module; }); I guess I was wrong about the minimum code