Skip to content

Commit 9b9035c

Browse files
fix: Add missing REMOVE_SCENE command again
1 parent d180569 commit 9b9035c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/Commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ var Commands = {
6565
ALLOW_DEFAULT: 34,
6666
PREVENT_DEFAULT: 35,
6767
UNSUBSCRIBE: 36,
68+
REMOVE_SCENE: 37,
6869
prettyPrint: function (buffer, start, count) {
6970
var callback;
7071
start = start ? start : 0;
@@ -85,7 +86,7 @@ var commandPrinters = [];
8586

8687
commandPrinters[Commands.INIT_DOM] = function init_dom (buffer, data) {
8788
data.result += data.i + '. INIT_DOM\n tagName: ' + buffer[++data.i] + '\n\n';
88-
};
89+
};
8990

9091
commandPrinters[Commands.DOM_RENDER_SIZE] = function dom_render_size (buffer, data) {
9192
data.result += data.i + '. DOM_RENDER_SIZE\n selector: ' + buffer[++data.i] + '\n\n';
@@ -210,4 +211,3 @@ commandPrinters[Commands.NEED_SIZE_FOR] = function need_size_for (buffer, data)
210211
};
211212

212213
module.exports = Commands;
213-

core/FamousEngine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ FamousEngine.prototype.removeScene = function removeScene (scene) {
403403

404404
var current = this._scenes[selector];
405405
if (current && current === scene) {
406-
this._messages.push(Commands.WITH, selector, Commands.REMOVE_SCENE);
407406
if (scene.isMounted()) scene.dismount();
408407
delete this._scenes[selector];
408+
this._messages.push(Commands.WITH, selector, Commands.REMOVE_SCENE);
409409
}
410410
return this;
411411
};

0 commit comments

Comments
 (0)