File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,12 @@ angular.module('ui-leaflet')
9292 // Event propadation logic
9393 if ( isDefined ( leafletScope . eventBroadcast [ this . lObjectType ] . logic ) ) {
9494 // We take care of possible propagation logic
95- if ( leafletScope . eventBroadcast [ _this . lObjectType ] . logic !== "emit" &&
96- leafletScope . eventBroadcast [ _this . lObjectType ] . logic !== "broadcast" )
97- $log . warn ( errorHeader + "Available event propagation logic are: 'emit' or 'broadcast'." ) ;
95+ var configuredLogic = leafletScope . eventBroadcast [ _this . lObjectType ] . logic ;
96+ if ( configuredLogic !== "emit" && configuredLogic !== "broadcast" ) {
97+ $log . warn ( errorHeader + "Available event propagation logic are: 'emit' or 'broadcast'." ) ;
98+ } else {
99+ logic = configuredLogic ;
100+ }
98101 }
99102 // Enable / Disable
100103 var eventsEnable = false , eventsDisable = false ;
You can’t perform that action at this time.
0 commit comments