Skip to content

Commit

Permalink
Merge pull request cstefanache#160 from deyung/single-quote
Browse files Browse the repository at this point in the history
Double quotes should be single in typescript
  • Loading branch information
cstefanache authored Mar 29, 2017
2 parents 6e77410 + 801f7d5 commit be636e0
Show file tree
Hide file tree
Showing 16 changed files with 335 additions and 337 deletions.
2 changes: 1 addition & 1 deletion runtime/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { HttpModule } from '@angular/http';
import 'rxjs/Rx';

import { AppComponent } from './app';
import {TabsModule} from "ng2-tabs";
import {TabsModule} from 'ng2-tabs';

@NgModule({
imports: [ BrowserModule, TabsModule, FormsModule ],
Expand Down
2 changes: 1 addition & 1 deletion runtime/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class AppComponent extends Type {
this.cropperSettings2.cropperDrawSettings.strokeColor = 'rgba(255,255,255,1)';
this.cropperSettings2.cropperDrawSettings.strokeWidth = 2;
this.cropperSettings2.noFileInput = true;
this.cropperSettings2.fileType = "image/jpeg";
this.cropperSettings2.fileType = 'image/jpeg';

this.data2 = {};

Expand Down
2 changes: 1 addition & 1 deletion runtime/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import {AppModule} from "./app.module";
import {AppModule} from './app.module';

platformBrowserDynamic().bootstrapModule(AppModule);
6 changes: 3 additions & 3 deletions src/cropperDrawSettings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export class CropperDrawSettings {
public strokeWidth: number = 1;
public strokeColor: string = "rgba(255,255,255,1)";
public strokeColor: string = 'rgba(255,255,255,1)';
public dragIconStrokeWidth: number = 1;
public dragIconStrokeColor: string = "rgba(0,0,0,1)";
public dragIconFillColor: string = "rgba(255,255,255,1)";
public dragIconStrokeColor: string = 'rgba(0,0,0,1)';
public dragIconFillColor: string = 'rgba(255,255,255,1)';
}
6 changes: 2 additions & 4 deletions src/cropperSettings.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CropperDrawSettings} from "./cropperDrawSettings";
import {CropperDrawSettings} from './cropperDrawSettings';

export interface ICropperSettings {
canvasWidth?: number;
Expand All @@ -21,8 +21,6 @@ export interface ICropperSettings {
}

export class CropperSettings implements ICropperSettings {


public canvasWidth: number = 300;
public canvasHeight: number = 300;

Expand Down Expand Up @@ -74,7 +72,7 @@ export class CropperSettings implements ICropperSettings {

set keepAspect(val: boolean) {
if (val === false && this._rounded) {
throw new Error("Cannot set keep aspect to false on rounded cropper. Ellipsis not supported");
throw new Error('Cannot set keep aspect to false on rounded cropper. Ellipsis not supported');
}

this._keepAspect = val;
Expand Down
Loading

0 comments on commit be636e0

Please sign in to comment.