You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by James Margaris <jm...@nexaweb.com> on 2006/12/04 20:33:13 UTC

MCO src/path confusion

I would like to change MCO src/path to be src/class instead.

"src" and "path" are virtually synonymns, which is very confusing.

My proposal is that "src" is the location of the file and "class" is the
object to instantiate. 

So you would do something like:

<mco src="MyJs.js" class="MyClass"/>

The implication here is the MyClass is defined in MyJs.js.

Note that we can be a bit smart if they leave "src" out and try to load
MyClass using the typical requires(), or stick on .js

James Margaris