Fixed typos in comments and strings

This commit is contained in:
Hongarc 2018-11-29 01:34:58 +07:00
parent 5e8d83536e
commit 694f414e22
21 changed files with 46 additions and 46 deletions

View file

@ -271,7 +271,7 @@ var LevelBuilder = Level.extend({
this.startDialogObj = levelObj;
}.bind(this))
.fail(function() {
// nothing to do, they dont want to edit it apparently
// nothing to do, they don't want to edit it apparently
})
.done(function() {
if (command) {
@ -340,7 +340,7 @@ var LevelBuilder = Level.extend({
return whenEditedDialog.promise;
}.bind(this))
.fail(function() {
// if they dont want to edit the start dialog, do nothing
// if they don't want to edit the start dialog, do nothing
})
.done(function() {
askForStartDeferred.resolve();
@ -385,14 +385,14 @@ var LevelBuilder = Level.extend({
'help builder': LevelBuilder.__super__.startDialog
};
if (!methodMap[command.get('method')]) {
throw new Error('woah we dont support that method yet');
throw new Error('woah we don\'t support that method yet');
}
methodMap[command.get('method')].apply(this, arguments);
},
afterCommandDefer: function(defer, command) {
// we dont need to compare against the goal anymore
// we don't need to compare against the goal anymore
defer.resolve();
},

View file

@ -401,7 +401,7 @@ var Level = Sandbox.extend({
doesCommandCountTowardsTotal: function(command) {
if (command.get('error')) {
// dont count errors towards our count
// don't count errors towards our count
return false;
}
@ -645,7 +645,7 @@ var Level = Sandbox.extend({
};
var method = methodMap[command.get('method')];
if (!method) {
throw new Error('woah we dont support that method yet', method);
throw new Error('woah we don\'t support that method yet', method);
}
method.apply(this, [command, defer]);

View file

@ -27,7 +27,7 @@ ParseWaterfall.prototype.initParseWaterfall = function() {
return;
}
// by deferring the initialization here, we dont require()
// by deferring the initialization here, we don't require()
// level too early (which barfs our init)
this.parseWaterfall = this.options.parseWaterfall || [
Commands.parse,