Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Requirejs implementation

0
0
Hi again,

In my case the ModuleLoader was defined in a class library project that the main executable referenced, so I think this was the reason the exception was thrown.

That doesn't seem likely. If you can successfully compile expressions such as typeof(ModuleLoader) and new ModuleLoader(engine), then you have a compile-time reference to ModuleLoader, and instantiation via Activator should be unnecessary. Indeed, the exception indicates a problem with dynamic property assignment rather than ModuleLoader instantiation. We'd like to understand the issue, but we can't reproduce it, so please provide any additional information you can.

Still not clear what the context variable is though!

The context object is just a JavaScript object that RequireJS passes to its load function. Among other things, context contains a completeLoad function that must be called to report that the requested resource has been loaded.

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images