refactor(facade): remove useless facades
This commit is contained in:

committed by
Rado Kirov

parent
34b31dea7c
commit
58605cf350
@ -150,7 +150,7 @@ class MessageData {
|
||||
id: string;
|
||||
|
||||
constructor(data: {[key: string]: any}) {
|
||||
this.type = StringMapWrapper.get(data, 'type');
|
||||
this.type = data['type'];
|
||||
this.id = this._getValueIfPresent(data, 'id');
|
||||
this.value = this._getValueIfPresent(data, 'value');
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
import {Injectable, RenderComponentType, Type, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
import {isArray, isPresent, serializeEnum} from '../../facade/lang';
|
||||
import {isArray, isPresent} from '../../facade/lang';
|
||||
import {VIEW_ENCAPSULATION_VALUES} from '../../private_import_core';
|
||||
|
||||
import {RenderStore} from './render_store';
|
||||
@ -42,7 +42,7 @@ export class Serializer {
|
||||
} else if (type === RenderComponentType) {
|
||||
return this._serializeRenderComponentType(obj);
|
||||
} else if (type === ViewEncapsulation) {
|
||||
return serializeEnum(obj);
|
||||
return obj;
|
||||
} else if (type === LocationType) {
|
||||
return this._serializeLocation(obj);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user