kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #661 from cycomachead/cloud-default
Fix to set SnapCloud variable before the IDE morph is built.pull/3/merge
commit
f2762c2329
8
gui.js
8
gui.js
|
@ -233,10 +233,6 @@ IDE_Morph.prototype.init = function (isAutoFill) {
|
|||
IDE_Morph.prototype.openIn = function (world) {
|
||||
var hash, usr, myself = this, urlLanguage = null;
|
||||
|
||||
this.buildPanes();
|
||||
world.add(this);
|
||||
world.userMenu = this.userMenu;
|
||||
|
||||
// get persistent user data, if any
|
||||
if (localStorage) {
|
||||
usr = localStorage['-snap-user'];
|
||||
|
@ -249,6 +245,10 @@ IDE_Morph.prototype.openIn = function (world) {
|
|||
}
|
||||
}
|
||||
|
||||
this.buildPanes();
|
||||
world.add(this);
|
||||
world.userMenu = this.userMenu;
|
||||
|
||||
// override SnapCloud's user message with Morphic
|
||||
SnapCloud.message = function (string) {
|
||||
var m = new MenuMorph(null, string),
|
||||
|
|
Ładowanie…
Reference in New Issue