Skip to content

Commit

Permalink
feat(aurelia): add parameter default to setRoot
Browse files Browse the repository at this point in the history
So, if not provided the root will use “app” and the applicationHost
will become the document.body.
  • Loading branch information
EisenbergEffect committed Mar 24, 2015
1 parent 5dea25b commit f3955d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aurelia.js
Expand Up @@ -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') {
Expand Down

0 comments on commit f3955d2

Please sign in to comment.