removed lang dependencies from binders. #597

Closed
wants to merge 2 commits into
from
@@ -312,16 +312,25 @@ callback({
child = children[childName];
// Create a buffer for the child
buffer[childName] = {name: childName, data: '', meta: {}};
-
// Make a new "command" that works in the context of this
// composite
newCommand = {
- instance: child,
+ instance: {
+ id: child.id,
+ action: child.action
+ },
// use action in child spec or default to index
action: child.action || 'index',
context: command.context,
params: child.params || command.params
};
+ if (child.base) {
+ newCommand.instance.base = child.base;
+ } else if (child.type) {
+ newCommand.instance.type = child.type;
+ } else {
+ throw new Error('No type or base founded');
+ }
childAdapter = new AdapterBuffer(buffer, childName,
callback);
@@ -427,12 +427,6 @@ YUI.add('addon-rs-yui', function(Y, NAME) {
required = Y.merge(required, viewEngineRequired);
sorted = this._precomputeYUIDependencies(langName, env, mojit, modules, required);
- for (l = 0; l < langNames.length; l += 1) {
- langName = langNames[l];
- langSorted = Y.mojito.util.copy(sorted);
- this._addLangsToSorted(env, langSorted, langName, langRess);
- this._setYUIDependencies(env, poslKey, langName, binder.yui.name, langSorted);
- }
}
}
}