Resolved conflicts and JSLinted

pull/3/merge
Viraj Mahesh 2014-07-13 10:01:08 +04:00
rodzic a7f0de880f
commit 36bbcdd5ef
1 zmienionych plików z 28 dodań i 26 usunięć

Wyświetl plik

@ -4085,15 +4085,19 @@ var re = /\((\d+)\)$/; // RegExp to match costume names
SpriteMorph.prototype.newCostumeName = function (name) { SpriteMorph.prototype.newCostumeName = function (name) {
var foundSameName = false, var foundSameName = false,
foundIndex = false, foundIndex = false,
lastIndex = 0; lastIndex = 0,
i = 1,
p = null,
costume = null;
for (i = 1; i <= this.costumes.length(); i++) { for (i = 1; i <= this.costumes.length(); i++) {
var costume = this.costumes.at(i); costume = this.costumes.at(i);
if (costume != null) { if (costume !== null) {
if (costume.name === name) { if (costume.name === name) {
foundSameName = true; foundSameName = true;
} }
if (foundSameName) { if (foundSameName) {
var p = re.exec(costume.name); p = re.exec(costume.name);
if (p) { if (p) {
lastIndex = Number(p[1]); lastIndex = Number(p[1]);
foundIndex = true; foundIndex = true;
@ -4805,12 +4809,10 @@ StageMorph.prototype.blockTemplates = function (category) {
blocks.push(block('setEffect')); blocks.push(block('setEffect'));
blocks.push(block('clearEffects')); blocks.push(block('clearEffects'));
blocks.push('-'); blocks.push('-');
<<<<<<< HEAD
blocks.push(block('doScreenshot')); blocks.push(block('doScreenshot'));
======= blocks.push('-');
blocks.push(block('show')); blocks.push(block('show'));
blocks.push(block('hide')); blocks.push(block('hide'));
>>>>>>> master
// for debugging: /////////////// // for debugging: ///////////////