fix es6 compilation for Map.remove.

In dart, Map has a remove method,but in ES6 it is delete.
This commit is contained in:
Alex Eagle 2015-02-25 15:15:31 -08:00
parent 6b2650996c
commit 642e9a36b7

View File

@ -76,7 +76,7 @@ export class RawEntity {
constructor() { constructor() {
this._data = MapWrapper.create(); this._data = MapWrapper.create();
} }
get(key:string) { get(key:string) {
if (key.indexOf('.') == -1) { if (key.indexOf('.') == -1) {
return this._data[key]; return this._data[key];
@ -105,7 +105,7 @@ export class RawEntity {
remove(key:string) { remove(key:string) {
if (!key.contains('.')) { if (!key.contains('.')) {
return this._data.remove(key); return MapWrapper.delete(this._data, key);
} }
var pieces = key.split('.'); var pieces = key.split('.');
var last = ListWrapper.last(pieces); var last = ListWrapper.last(pieces);