refactor(di): use boolean instead of bool

This commit is contained in:
vsavkin
2014-10-10 14:07:59 -04:00
parent 92b2559109
commit b71cd9f380
8 changed files with 15 additions and 16 deletions

View File

@ -11,11 +11,11 @@ export class ABSTRACT {}
export class IMPLEMENTS {}
export function isPresent(obj):bool{
export function isPresent(obj):boolean {
return obj != undefined && obj != null;
}
export function isBlank(obj):bool{
export function isBlank(obj):boolean {
return obj == undefined || obj == null;
}
@ -104,7 +104,6 @@ export class NumberWrapper {
}
export function int() {};
export var bool = $traceurRuntime.type.boolean;
int.assert = function(value) {
return value == null || typeof value == 'number' && value === Math.floor(value);
}