diff options
| author | Michael Ball <cycomachead@gmail.com> | 2014-11-30 21:56:33 -0800 |
|---|---|---|
| committer | Michael Ball <cycomachead@gmail.com> | 2014-11-30 21:56:33 -0800 |
| commit | 919b72e3d48a08f061e9334076b068779395199c (patch) | |
| tree | 1bddd4857d1d3257d881040b2357a0e3398b8172 | |
| parent | 320bfd0c990ea60e1dcf6bfdbe7538b203283709 (diff) | |
| download | snap-919b72e3d48a08f061e9334076b068779395199c.tar.gz snap-919b72e3d48a08f061e9334076b068779395199c.zip | |
Fix to set SnapCloud variable before the IDE morph is built.
This makes it so that #627 works as intended, correctly fixing #502
| -rw-r--r-- | gui.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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), |
