Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #810 from btecu/new-cap
Browse files Browse the repository at this point in the history
[Cleanup] eslint `new-cap`
  • Loading branch information
jkleinsc authored Nov 17, 2016
2 parents 56c88f5 + f8b0aec commit b78143f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/authenticators/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default BaseAuthenticator.extend({

invalidate() {
if (this.useGoogleAuth) {
return new Ember.RSVP.resolve();
return Ember.RSVP.resolve();
} else {
return this._getPromise('DELETE');
}
Expand Down
2 changes: 2 additions & 0 deletions app/inventory/barcode/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export default Ember.Controller.extend({
barcodeUri: function() {
let id = this.get('model.id');
let name = this.get('model.name');

/* eslint new-cap: ['error', { 'capIsNew': false }] */
return Ember.$(document).JsBarcode(id, {
width: 1,
height: 20,
Expand Down
2 changes: 1 addition & 1 deletion app/mixins/progress-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default Ember.Mixin.create({

showProgressModal() {
let progressDialog = Ember.Object.create(this.get('progressDialogDefaults'));
progressDialog.progressBarStyle = new Ember.String.htmlSafe(progressDialog.progressBarStyle);
progressDialog.progressBarStyle = Ember.String.htmlSafe(progressDialog.progressBarStyle);
progressDialog.set('title', this.get('progressTitle'));
progressDialog.set('message', this.get('progressMessage'));
this.set('progressDialog', progressDialog);
Expand Down

0 comments on commit b78143f

Please sign in to comment.