chore: reformat the code base using the clang-format 1.0.15.

This commit is contained in:
Martin Probst
2015-05-27 11:52:35 -07:00
parent 96f629d441
commit 2c25055828
10 changed files with 117 additions and 139 deletions

View File

@ -752,29 +752,20 @@ export class Directive extends Injectable {
hostInjector: List<any>;
constructor({
selector,
properties,
events,
hostListeners,
hostProperties,
hostAttributes,
hostActions,
lifecycle,
hostInjector,
compileChildren = true,
}:{
selector?:string,
properties?:any,
events?:List<string>,
hostListeners?: StringMap<string, string>,
hostProperties?: StringMap<string, string>,
hostAttributes?: StringMap<string, string>,
hostActions?: StringMap<string, string>,
lifecycle?:List<LifecycleEvent>,
hostInjector?:List<any>,
compileChildren?:boolean
}={})
{
selector, properties, events, hostListeners, hostProperties, hostAttributes,
hostActions, lifecycle, hostInjector, compileChildren = true,
}: {
selector?: string,
properties?: any,
events?: List<string>,
hostListeners?: StringMap<string, string>,
hostProperties?: StringMap<string, string>,
hostAttributes?: StringMap<string, string>,
hostActions?: StringMap<string, string>,
lifecycle?: List<LifecycleEvent>,
hostInjector?: List<any>,
compileChildren?: boolean
} = {}) {
super();
this.selector = selector;
this.properties = properties;
@ -995,36 +986,23 @@ export class Component extends Directive {
*/
viewInjector: List<any>;
constructor({
selector,
properties,
events,
hostListeners,
hostProperties,
hostAttributes,
hostActions,
appInjector,
lifecycle,
hostInjector,
viewInjector,
changeDetection = DEFAULT,
compileChildren = true
}:{
selector?:string,
properties?:Object,
events?:List<string>,
hostListeners?:Map<string,string>,
hostProperties?:any,
hostAttributes?:any,
hostActions?:any,
appInjector?:List<any>,
lifecycle?:List<LifecycleEvent>,
hostInjector?:List<any>,
viewInjector?:List<any>,
changeDetection?:string,
compileChildren?:boolean
}={})
{
constructor({selector, properties, events, hostListeners, hostProperties, hostAttributes,
hostActions, appInjector, lifecycle, hostInjector, viewInjector,
changeDetection = DEFAULT, compileChildren = true}: {
selector?: string,
properties?: Object,
events?: List<string>,
hostListeners?: Map<string, string>,
hostProperties?: any,
hostAttributes?: any,
hostActions?: any,
appInjector?: List<any>,
lifecycle?: List<LifecycleEvent>,
hostInjector?: List<any>,
viewInjector?: List<any>,
changeDetection?: string,
compileChildren?: boolean
} = {}) {
super({
selector: selector,
properties: properties,

View File

@ -84,18 +84,12 @@ export class View {
*/
renderer: string;
constructor({
templateUrl,
template,
directives,
renderer
}: {
templateUrl?: string,
template?: string,
directives?: List<Type | any | List<any>>,
renderer?: string
} = {})
{
constructor({templateUrl, template, directives, renderer}: {
templateUrl?: string,
template?: string,
directives?: List<Type | any | List<any>>,
renderer?: string
} = {}) {
this.templateUrl = templateUrl;
this.template = template;
this.directives = directives;