fix es6 compilation for Map.remove.
In dart, Map has a remove method,but in ES6 it is delete.
This commit is contained in:
parent
6b2650996c
commit
642e9a36b7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue