File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -386,11 +386,11 @@ FamousEngine.prototype.createScene = function createScene (selector) {
386386 * @return {FamousEngine } this
387387 */
388388FamousEngine . prototype . addScene = function addScene ( scene ) {
389- var selector = scene . _selector ;
389+ var selector = scene . _id ;
390390
391391 var current = this . _scenes [ selector ] ;
392392 if ( current && current !== scene ) current . dismount ( ) ;
393- if ( ! scene . isMounted ( ) ) scene . mount ( scene . _selector ) ;
393+ if ( ! scene . isMounted ( ) ) scene . mount ( scene . _id ) ;
394394 this . _scenes [ selector ] = scene ;
395395 return this ;
396396} ;
Original file line number Diff line number Diff line change 2222 * THE SOFTWARE.
2323 */
2424
25- /*jshint -W079 */
26-
2725'use strict' ;
2826
2927var Node = require ( './Node' ) ;
@@ -44,10 +42,8 @@ function Scene () {
4442 Node . call ( this ) ;
4543}
4644
47- // Scene inherits from node
4845Scene . prototype = Object . create ( Node . prototype ) ;
4946Scene . prototype . constructor = Scene ;
50- Scene . NO_DEFAULT_COMPONENTS = true ;
5147
5248/**
5349 * Returns the selector that the context was instantiated with
You can’t perform that action at this time.
0 commit comments