refactor(facade): remove useless facades

This commit is contained in:
Victor Berchet
2016-09-18 15:39:26 -07:00
committed by Rado Kirov
parent 34b31dea7c
commit 58605cf350
24 changed files with 91 additions and 159 deletions

View File

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

View File

@ -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 {