diff options
| author | Jens Mönig <jens@moenig.org> | 2014-12-01 11:45:02 +0100 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2014-12-01 11:45:02 +0100 |
| commit | f2762c232929caeceb6346bccd0bf0464d6e2e4f (patch) | |
| tree | 3d5748e9393b0e7e5240175fdeb16a0032828743 | |
| parent | bf61b0cc8269be2d6dd48cf38131b8daaef126e7 (diff) | |
| parent | 919b72e3d48a08f061e9334076b068779395199c (diff) | |
| download | snap-f2762c232929caeceb6346bccd0bf0464d6e2e4f.tar.gz snap-f2762c232929caeceb6346bccd0bf0464d6e2e4f.zip | |
Merge pull request #661 from cycomachead/cloud-default
Fix to set SnapCloud variable before the IDE morph is built.
| -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), |
