Add a wrap function to enclose the non-esoe class, and run the function.
1. add wrap-header, function _wrap_...()
1.1 function _wrap_...() {
1.2 if already being with name space and/or using other classes, create void ns with same name in wrap function, add refrence of other classes.
ex.
var Root=
{
util:{},
widget:{}
};
Root.util.Dom= $esoe.ns.com.Root.yui.util.Dom;
2. copy source
3. add wrap-end
3.1 use _normalize to map the function/object to esoe namespace.
3.2 use _loadcss to load css stylesheet.
3.3 add function _wrap_...()'s }
4. replace quoting "...[global_variable]..." to "...packages.[global_variable]...", in the source.
5. run the wrap function.