1
- import angular from './facade' ;
1
+ import { assign } from './facade' ;
2
2
import { hasInjectables , makeSelector , firstLowerCase , is } from './util' ;
3
3
4
4
import { getLifecycleMethod , LifecycleHooks } from './life_cycle' ;
@@ -118,7 +118,7 @@ export function Component(
118
118
if ( attrs || inputs || outputs ) {
119
119
120
120
const { attr, input, output} = _createBindings ( { inputs, attrs, outputs } ) ;
121
- ddoInternal . bindToController = angular . extend ( { } , ddoInternal . bindToController , attr , input , output ) ;
121
+ ddoInternal . bindToController = assign ( { } , ddoInternal . bindToController , attr , input , output ) ;
122
122
123
123
}
124
124
if ( legacy . require ) {
@@ -178,7 +178,7 @@ function _propertyDecoratorFactoryCreator( bindingPropertyName: string, property
178
178
const binding = _createBindings ( { [ `${ propertyType } s` ] : format } ) [ propertyType ] ;
179
179
180
180
if ( existingBindings ) {
181
- angular . extend ( existingBindings , binding ) ;
181
+ assign ( existingBindings , binding ) ;
182
182
} else {
183
183
Type [ DDO_NAME ] = { bindToController : binding } ;
184
184
}
@@ -201,13 +201,13 @@ function _getTypeBindings( Type ): {} {
201
201
}
202
202
function _decorateDirectiveType ( Type , selector , legacy , ddoCreator : Function ) {
203
203
const ddo = ddoCreator ( Type ) ;
204
- const _ddo = angular . extend ( { } , ddo , legacy ) ;
204
+ const _ddo = assign ( { } , ddo , legacy ) ;
205
205
const staticConfig : DirectiveConfigStatic = {
206
206
selector,
207
207
_ddo
208
208
} ;
209
209
210
- angular . extend ( Type , staticConfig ) ;
210
+ assign ( Type , staticConfig ) ;
211
211
}
212
212
213
213
function _postLinkFactory ( isDirective : boolean ) {
0 commit comments