Globlization and Object.system.load

Roozbeh Pournader roozbeh at google.com
Thu Nov 17 15:48:27 PST 2011


On Thu, Nov 17, 2011 at 3:08 PM, Roozbeh Pournader <roozbeh at 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. The minimum code is
something like this:

Object.system.load("@g11n", function (g11n) {
  // put all the code that uses g11n in here
});

I actually like this. I think I should just take back my comment...

Roozbeh


More information about the es-discuss mailing list