Skip to content

Commit

Permalink
fix: No longer access Scene#_selector
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderGugel committed Jul 21, 2015
1 parent 9772baf commit 813da13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/FamousEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ FamousEngine.prototype.addScene = function addScene (scene) {
* @return {FamousEngine} this
*/
FamousEngine.prototype.removeScene = function removeScene (scene) {
var selector = scene._selector;
var selector = scene._id;

var current = this._scenes[selector];
if (current && current === scene) {
Expand Down
1 change: 1 addition & 0 deletions core/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Scene.NO_DEFAULT_COMPONENTS = true;
* Returns the selector that the context was instantiated with
*
* @return {String} dom selector
* @deprecated
*/
Scene.prototype.getSelector = function getSelector () {
console.warn('Scene#getSelector is deprecated, use Scene#getLocation or Scene#getId instead');
Expand Down

0 comments on commit 813da13

Please sign in to comment.