kopia lustrzana https://github.com/backface/turtlestitch
Fixed indentation issue
rodzic
a8baea7df9
commit
c8bb7ce225
14
objects.js
14
objects.js
|
@ -3707,13 +3707,13 @@ SpriteMorph.prototype.reactToDropOf = function (morph, hand) {
|
|||
};
|
||||
|
||||
SpriteMorph.prototype.newCostumeNameCached = function (data) {
|
||||
if (this.screenshotNames.hasOwnProperty(data)) { // Screenshot naming
|
||||
this.screenshotNames[data] += 1;
|
||||
data += '(' + this.screenshotNames[data] + ')';
|
||||
} else {
|
||||
this.screenshotNames[data] = 0;
|
||||
}
|
||||
return data;
|
||||
if (this.screenshotNames.hasOwnProperty(data)) { // Screenshot naming
|
||||
this.screenshotNames[data] += 1;
|
||||
data += '(' + this.screenshotNames[data] + ')';
|
||||
} else {
|
||||
this.screenshotNames[data] = 0;
|
||||
}
|
||||
return data;
|
||||
};
|
||||
|
||||
var re = /\((\d+)\)$/;
|
||||
|
|
Ładowanie…
Reference in New Issue