33System . register ( [ 'aurelia-logging' ,  'aurelia-metadata' ,  'aurelia-pal' ,  'aurelia-path' ,  'aurelia-loader' ,  'aurelia-dependency-injection' ,  'aurelia-binding' ,  'aurelia-task-queue' ] ,  function  ( _export ,  _context )  { 
44  "use strict" ; 
55
6-   var  LogManager ,  metadata ,  Origin ,  protocol ,  DOM ,  PLATFORM ,  FEATURE ,  relativeToFile ,  TemplateRegistryEntry ,  Loader ,  inject ,  Container ,  resolver ,  Binding ,  createOverrideContext ,  ValueConverterResource ,  BindingBehaviorResource ,  subscriberCollection ,  bindingMode ,  ObserverLocator ,  EventManager ,  TaskQueue ,  _createClass ,  _class ,  _temp ,  _dec ,  _class2 ,  _dec2 ,  _class3 ,  _dec3 ,  _class4 ,  _dec4 ,  _class5 ,  _dec5 ,  _class6 ,  _class7 ,  _temp2 ,  _dec6 ,  _class8 ,  _class9 ,  _temp3 ,  _class11 ,  _dec7 ,  _class13 ,  _dec8 ,  _class14 ,  _class15 ,  _temp4 ,  _dec9 ,  _class16 ,  _dec10 ,  _class17 ,  _dec11 ,  _class18 ,  _typeof ,  animationEvent ,  Animator ,  CompositionTransactionNotifier ,  CompositionTransactionOwnershipToken ,  CompositionTransaction ,  capitalMatcher ,  ViewEngineHooksResource ,  ElementEvents ,  ResourceLoadContext ,  ViewCompileInstruction ,  BehaviorInstruction ,  TargetInstruction ,  viewStrategy ,  RelativeViewStrategy ,  ConventionalViewStrategy ,  NoViewStrategy ,  TemplateRegistryViewStrategy ,  InlineViewStrategy ,  ViewLocator ,  BindingLanguage ,  noNodes ,  SlotCustomAttribute ,  PassThroughSlot ,  ShadowSlot ,  ShadowDOM ,  ViewResources ,  View ,  ViewSlot ,  ProviderResolver ,  providerResolverInstance ,  BoundViewFactory ,  ViewFactory ,  nextInjectorId ,  lastAUTargetID ,  ViewCompiler ,  ResourceModule ,  ResourceDescription ,  ModuleAnalyzer ,  logger ,  ProxyViewFactory ,  ViewEngine ,  Controller ,  BehaviorPropertyObserver ,  BindableProperty ,  lastProviderId ,  HtmlBehaviorResource ,  ChildObserver ,  noMutations ,  ChildObserverBinder ,  SwapStrategies ,  CompositionEngine ,  ElementConfigResource ,  defaultShadowDOMOptions ,  TemplatingEngine ; 
6+   var  LogManager ,  metadata ,  Origin ,  protocol ,  DOM ,  PLATFORM ,  FEATURE ,  relativeToFile ,  TemplateRegistryEntry ,  Loader ,  inject ,  Container ,  resolver ,  Binding ,  createOverrideContext ,  ValueConverterResource ,  BindingBehaviorResource ,  subscriberCollection ,  bindingMode ,  ObserverLocator ,  EventManager ,  TaskQueue ,  _createClass ,  _class ,  _temp ,  _dec ,  _class2 ,  _dec2 ,  _class3 ,  _dec3 ,  _class4 ,  _dec4 ,  _class5 ,  _dec5 ,  _class6 ,  _class7 ,  _temp2 ,  _dec6 ,  _class8 ,  _class9 ,  _temp3 ,  _class11 ,  _dec7 ,  _class13 ,  _dec8 ,  _class14 ,  _class15 ,  _temp4 ,  _dec9 ,  _class16 ,  _dec10 ,  _class17 ,  _dec11 ,  _class18 ,  _typeof ,  animationEvent ,  Animator ,  CompositionTransactionNotifier ,  CompositionTransactionOwnershipToken ,  CompositionTransaction ,  capitalMatcher ,  ViewEngineHooksResource ,  ElementEvents ,  ResourceLoadContext ,  ViewCompileInstruction ,  BehaviorInstruction ,  TargetInstruction ,  viewStrategy ,  RelativeViewStrategy ,  ConventionalViewStrategy ,  NoViewStrategy ,  TemplateRegistryViewStrategy ,  InlineViewStrategy ,  ViewLocator ,  BindingLanguage ,  noNodes ,  SlotCustomAttribute ,  PassThroughSlot ,  ShadowSlot ,  ShadowDOM ,  ViewResources ,  View ,  ViewSlot ,  ProviderResolver ,  providerResolverInstance ,  BoundViewFactory ,  ViewFactory ,  nextInjectorId ,  lastAUTargetID ,  ViewCompiler ,  ResourceModule ,  ResourceDescription ,  ModuleAnalyzer ,  logger ,  ProxyViewFactory ,  auSlotBehavior ,  ViewEngine ,  Controller ,  BehaviorPropertyObserver ,  BindableProperty ,  lastProviderId ,  HtmlBehaviorResource ,  ChildObserver ,  noMutations ,  ChildObserverBinder ,  SwapStrategies ,  CompositionEngine ,  ElementConfigResource ,  defaultShadowDOMOptions ,  TemplatingEngine ; 
77
88
99
@@ -3239,13 +3239,16 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
32393239            auTargetID  =  makeIntoInstructionTarget ( node ) ; 
32403240            instructions [ auTargetID ]  =  TargetInstruction . lifting ( parentInjectorId ,  liftingInstruction ) ; 
32413241          }  else  { 
3242+             var  skipContentProcessing  =  false ; 
3243+ 
32423244            if  ( expressions . length  ||  behaviorInstructions . length )  { 
32433245              injectorId  =  behaviorInstructions . length  ? getNextInjectorId ( )  : false ; 
32443246
32453247              for  ( i  =  0 ,  ii  =  behaviorInstructions . length ;  i  <  ii ;  ++ i )  { 
32463248                instruction  =  behaviorInstructions [ i ] ; 
32473249                instruction . type . compile ( this ,  resources ,  node ,  instruction ,  parentNode ) ; 
32483250                providers . push ( instruction . type . target ) ; 
3251+                 skipContentProcessing  =  skipContentProcessing  ||  instruction . skipContentProcessing ; 
32493252              } 
32503253
32513254              for  ( i  =  0 ,  ii  =  expressions . length ;  i  <  ii ;  ++ i )  { 
@@ -3259,7 +3262,7 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
32593262              instructions [ auTargetID ]  =  TargetInstruction . normal ( injectorId ,  parentInjectorId ,  providers ,  behaviorInstructions ,  expressions ,  elementInstruction ) ; 
32603263            } 
32613264
3262-             if  ( elementInstruction   &&   elementInstruction . skipContentProcessing )  { 
3265+             if  ( skipContentProcessing )  { 
32633266              return  node . nextSibling ; 
32643267            } 
32653268
@@ -3578,6 +3581,8 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
35783581        return  ProxyViewFactory ; 
35793582      } ( ) ; 
35803583
3584+       auSlotBehavior  =  null ; 
3585+ 
35813586      _export ( 'ViewEngine' ,  ViewEngine  =  ( _dec8  =  inject ( Loader ,  Container ,  ViewCompiler ,  ModuleAnalyzer ,  ViewResources ) ,  _dec8 ( _class14  =  ( _temp4  =  _class15  =  function  ( )  { 
35823587        function  ViewEngine ( loader ,  container ,  viewCompiler ,  moduleAnalyzer ,  appResources )  { 
35833588
@@ -3589,8 +3594,12 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
35893594          this . appResources  =  appResources ; 
35903595          this . _pluginMap  =  { } ; 
35913596
3592-           var  auSlotBehavior  =  new  HtmlBehaviorResource ( ) ; 
3593-           auSlotBehavior . attributeName  =  'au-slot' ; 
3597+           if  ( auSlotBehavior  ===  null )  { 
3598+             auSlotBehavior  =  new  HtmlBehaviorResource ( ) ; 
3599+             auSlotBehavior . attributeName  =  'au-slot' ; 
3600+             metadata . define ( metadata . resource ,  auSlotBehavior ,  SlotCustomAttribute ) ; 
3601+           } 
3602+ 
35943603          auSlotBehavior . initialize ( container ,  SlotCustomAttribute ) ; 
35953604          auSlotBehavior . register ( appResources ) ; 
35963605        } 
@@ -4438,6 +4447,8 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
44384447            }  else  { 
44394448              instruction . skipContentProcessing  =  true ; 
44404449            } 
4450+           }  else  if  ( ! this . processContent ( compiler ,  resources ,  node ,  instruction ) )  { 
4451+             instruction . skipContentProcessing  =  true ; 
44414452          } 
44424453
44434454          return  node ; 
0 commit comments