From f3955d228483758ce8b385bba14d99e053468612 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Tue, 24 Mar 2015 16:14:01 -0400 Subject: [PATCH] feat(aurelia): add parameter default to setRoot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So, if not provided the root will use “app” and the applicationHost will become the document.body. --- src/aurelia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aurelia.js b/src/aurelia.js index b131d869..374e70a4 100644 --- a/src/aurelia.js +++ b/src/aurelia.js @@ -184,7 +184,7 @@ export class Aurelia { * @param {string|Object} applicationHost The DOM object that Aurelia will attach to. * @return {Aurelia} Returns the current Aurelia instance. */ - setRoot(root, applicationHost){ + setRoot(root='app', applicationHost=null){ var compositionEngine, instruction = {}; if (!applicationHost || typeof applicationHost == 'string') {