summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2015-06-25 15:37:55 +0200
committerJens Mönig <jens@moenig.org>2015-06-25 15:37:55 +0200
commitc8ef53f9a982514320af546b4cb95d069628cd65 (patch)
treebb66ff25f16be0ab5153ce51b24a9bbf1456db87
parent7c8dd2b4e89ca10168df128df80edc14a60fcf13 (diff)
parent2cbba6c762fc664bd4d4d0733c89192982d135d2 (diff)
downloadsnap-c8ef53f9a982514320af546b4cb95d069628cd65.tar.gz
snap-c8ef53f9a982514320af546b4cb95d069628cd65.zip
Merge pull request #805 from brollb/master
Fixed typo in Process definition
-rw-r--r--gui.js4
-rw-r--r--threads.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/gui.js b/gui.js
index 59d0de7..5e29316 100644
--- a/gui.js
+++ b/gui.js
@@ -4733,8 +4733,8 @@ ProjectDialogMorph.prototype.getExamplesProjectList = function () {
}
}
);
- projects.sort(function (x, y) {
- return x.name < y.name ? -1 : 1;
+ projects = projects.sort(function (x, y) {
+ return x.name.toLowerCase() < y.name.toLowerCase() ? -1 : 1;
});
return projects;
};
diff --git a/threads.js b/threads.js
index cd33a43..af899dc 100644
--- a/threads.js
+++ b/threads.js
@@ -339,7 +339,7 @@ ThreadManager.prototype.findProcess = function (block) {
*/
Process.prototype = {};
-Process.prototype.contructor = Process;
+Process.prototype.constructor = Process;
Process.prototype.timeout = 500; // msecs after which to force yield
Process.prototype.isCatchingErrors = true;