summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-03 18:50:04 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-03 18:50:04 +0200
commitb7cc5efa244681727668b28ffb8d0eb3d4b95fb7 (patch)
tree6d453acc967c1087c9fa3d7d441feb4fb396acaa /objects.js
parent0333925e916acc47c25cdcfec0c3be3d695a825f (diff)
downloadsnap-issue_71.tar.gz
snap-issue_71.zip
don't allow sprites to be called mouse-pointer (fix #71)issue_71
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/objects.js b/objects.js
index fbb9e84..29d0c73 100644
--- a/objects.js
+++ b/objects.js
@@ -1398,8 +1398,11 @@ SpriteMorph.prototype.appearIn = function (ide) {
// SpriteMorph versioning
SpriteMorph.prototype.setName = function (string) {
- this.name = string || this.name;
- this.version = Date.now();
+ if (string != 'mouse-pointer' && string != 'pen trails'
+ && string != 'edge') { // used by system
+ this.name = string || this.name;
+ this.version = Date.now();
+ }
};
// SpriteMorph rendering