Merge pull request #2812 from achew22/undefined_ts

Update TypeScript to do a better check for empty on basePath.
This commit is contained in:
wing328 2016-05-14 22:22:26 +08:00
commit 1520b90b0d
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ namespace {{package}} {
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
if (basePath) {
if (basePath !== undefined) {
this.basePath = basePath;
}
}

View File

@ -12,7 +12,7 @@ namespace API.Client {
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
if (basePath) {
if (basePath !== undefined) {
this.basePath = basePath;
}
}

View File

@ -12,7 +12,7 @@ namespace API.Client {
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
if (basePath) {
if (basePath !== undefined) {
this.basePath = basePath;
}
}

View File

@ -12,7 +12,7 @@ namespace API.Client {
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
if (basePath) {
if (basePath !== undefined) {
this.basePath = basePath;
}
}