diff --git a/modules/change_detection/src/record_range.js b/modules/change_detection/src/record_range.js index d6b579b764..14574ba7be 100644 --- a/modules/change_detection/src/record_range.js +++ b/modules/change_detection/src/record_range.js @@ -11,7 +11,7 @@ import { RECORD_TYPE_PROPERTY } from './record'; -import {FIELD, IMPLEMENTS, isBlank, isPresent, int, toBool, autoConvertAdd, BaseException, +import {FIELD, IMPLEMENTS, isBlank, isPresent, int, autoConvertAdd, BaseException, NumberWrapper} from 'facade/lang'; import {List, Map, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection'; import {ContextWithVariableBindings} from './parser/context_with_variable_bindings'; diff --git a/modules/facade/src/lang.dart b/modules/facade/src/lang.dart index 0cbcaba349..9f19b800ce 100644 --- a/modules/facade/src/lang.dart +++ b/modules/facade/src/lang.dart @@ -27,11 +27,6 @@ class IMPLEMENTS { bool isPresent(obj) => obj != null; bool isBlank(obj) => obj == null; -bool toBool(x) { - if (x is bool) return x; - if (x is num) return x != 0; - return false; -} String stringify(obj) => obj.toString(); diff --git a/modules/facade/src/lang.es6 b/modules/facade/src/lang.es6 index 20048d89a1..7180a80451 100644 --- a/modules/facade/src/lang.es6 +++ b/modules/facade/src/lang.es6 @@ -27,10 +27,6 @@ export function isBlank(obj):boolean { return obj === undefined || obj === null; } -export function toBool(obj) { - return !!obj; -} - export function stringify(token):string { if (typeof token === 'string') { return token;