Add support for the basic notion of conference calls and an experimental concept of modules to provide the actual functionality. Rejig Skinner to be simpler.

This commit is contained in:
David Baker 2015-09-30 16:50:46 +01:00
parent 9fb5702c2f
commit b68665ead5
5 changed files with 201 additions and 77 deletions

View file

@ -14,18 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
function extractComponent(object, path) {
var subObject = object[path[0]]
if (subObject === undefined) {
return undefined;
}
if (path.length == 1) {
return subObject;
} else {
return extractComponent(subObject, path.slice(1));
}
}
class Skinner {
constructor() {
this.components = null;
@ -40,7 +28,7 @@ class Skinner {
" b) A component has called getComponent at the root level"
);
}
var comp = extractComponent(this.components, name.split('.'));
var comp = this.components[name];
if (comp) {
return comp;
}