diff options
| author | Michael Ball <cycomachead@gmail.com> | 2014-11-24 15:23:40 -0800 |
|---|---|---|
| committer | Michael Ball <cycomachead@gmail.com> | 2014-11-24 15:23:40 -0800 |
| commit | e892ea80cb627961a0f84ebe61b7610528f67090 (patch) | |
| tree | ac35164434ad6e8d86cc95cdcf9d7e3856af1b3b | |
| parent | 94f94467b5be3d05f108620d1a17f6d4179bf621 (diff) | |
| download | snap-e892ea80cb627961a0f84ebe61b7610528f67090.tar.gz snap-e892ea80cb627961a0f84ebe61b7610528f67090.zip | |
Shared URLs: remove call to .siblings()
Project dialog morphs reference `ide` directly instead of using a function call
| -rw-r--r-- | gui.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4865,7 +4865,7 @@ ProjectDialogMorph.prototype.deleteProject = function () { ProjectDialogMorph.prototype.shareProject = function () { var myself = this, - ide = this.siblings()[0], + ide = this.ide, proj = this.listField.selected, entry = this.listField.active; @@ -4902,7 +4902,7 @@ ProjectDialogMorph.prototype.shareProject = function () { projectId = 'Username=' + encodeURIComponent(usr.toLowerCase()) + '&ProjectName=' + - encodeURIComponent(ide.projectName); + encodeURIComponent(proj.projectName); location.hash = projectId; } }, @@ -4915,7 +4915,7 @@ ProjectDialogMorph.prototype.shareProject = function () { ProjectDialogMorph.prototype.unshareProject = function () { var myself = this, - ide = this.siblings()[0], + ide = this.ide, proj = this.listField.selected, entry = this.listField.active; |
