Browse Source

Add `getRoot` method

dynamic-layer-root
Artur Arseniev 8 years ago
parent
commit
382a088ee9
  1. 12
      src/navigator/index.js

12
src/navigator/index.js

@ -46,8 +46,8 @@ module.exports = () => {
},
/**
* Set new root of layers
* @param {HTMLElement|Component|String} el Component to be selected a the root
* Set new root for layers
* @param {HTMLElement|Component|String} el Component to be set as the root
* @return {self}
*/
setRoot(el) {
@ -55,6 +55,14 @@ module.exports = () => {
return this;
},
/**
* Get root of layers
* @return {Component}
*/
getRoot() {
return layers.model;
},
/**
* Return the view of layers
* @return {View}

Loading…
Cancel
Save