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

@ -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);