examples/elevator/index.js
function (event) {
      if (event.name === 'goToLevel'
        && event.level !== self.level) {
        self.pushLevel(event.level);
      }
    }
function (event) {
      if (event.name === 'goToLevel'
        && event.level !== self.level) {
        self.pushLevel(event.level);
      }
    }
function ( event ) { if ( event . name === 'goToLevel' && event . level !== self . level ) { self . pushLevel ( event . level ) ; } }
As the elevator's doors are currently opened
we push any user request to go to
a level on the level stack.
As the elevator s doors are currently opened we push any user request to go to a level on the level stack .