summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-11-24 15:23:40 -0800
committerMichael Ball <cycomachead@gmail.com>2014-11-24 15:23:40 -0800
commite892ea80cb627961a0f84ebe61b7610528f67090 (patch)
treeac35164434ad6e8d86cc95cdcf9d7e3856af1b3b
parent94f94467b5be3d05f108620d1a17f6d4179bf621 (diff)
downloadsnap-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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui.js b/gui.js
index f53d597..d80e61a 100644
--- a/gui.js
+++ b/gui.js
@@ -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;