@@ -706,12 +706,12 @@ function $CompileProvider($provide) {
706
706
}
707
707
$element = attrs . $$element ;
708
708
709
- if ( newScopeDirective && isObject ( newScopeDirective . scope ) ) {
709
+ if ( newIsolatedScopeDirective ) {
710
710
var LOCAL_REGEXP = / ^ \s * ( [ @ = & ] ) \s * ( \w * ) \s * $ / ;
711
711
712
712
var parentScope = scope . $parent || scope ;
713
713
714
- forEach ( newScopeDirective . scope , function ( definiton , scopeName ) {
714
+ forEach ( newIsolatedScopeDirective . scope , function ( definiton , scopeName ) {
715
715
var match = definiton . match ( LOCAL_REGEXP ) || [ ] ,
716
716
attrName = match [ 2 ] || scopeName ,
717
717
mode = match [ 1 ] , // @, =, or &
@@ -734,7 +734,7 @@ function $CompileProvider($provide) {
734
734
// reset the change, or we will throw this exception on every $digest
735
735
lastValue = scope [ scopeName ] = parentGet ( parentScope ) ;
736
736
throw Error ( NON_ASSIGNABLE_MODEL_EXPRESSION + attrs [ attrName ] +
737
- ' (directive: ' + newScopeDirective . name + ')' ) ;
737
+ ' (directive: ' + newIsolatedScopeDirective . name + ')' ) ;
738
738
} ;
739
739
lastValue = scope [ scopeName ] = parentGet ( parentScope ) ;
740
740
scope . $watch ( function parentValueWatch ( ) {
@@ -765,7 +765,7 @@ function $CompileProvider($provide) {
765
765
766
766
default : {
767
767
throw Error ( 'Invalid isolate scope definition for directive ' +
768
- newScopeDirective . name + ': ' + definiton ) ;
768
+ newIsolatedScopeDirective . name + ': ' + definiton ) ;
769
769
}
770
770
}
771
771
} ) ;
0 commit comments