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
1 changed files with 2 additions and 2 deletions

View File

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