Skip to content

Commit e99ee18

Browse files
committed
removed typo on mapId
1 parent 6fc72b4 commit e99ee18

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

dist/angular-leaflet-directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4753,15 +4753,15 @@ angular.module("leaflet-directive")
47534753
];
47544754
};
47554755

4756-
var _genDispatchMapEvent = function(scope, eventName, logic, mapId) {
4756+
var _genDispatchMapEvent = function(scope, eventName, logic) {
47574757
// (nmccready) We should consider passing mapId as an argument or using it from scope
47584758
return function(e) {
47594759
// Put together broadcast name
47604760
// (nmccready) We should consider passing mapId joining mapId to the broadcastName to keep the event unique. Same should be done for all directives so we know what map it comes from.
47614761
// problem with this is it will cause a minor bump and break backwards compat
47624762
var broadcastName = 'leafletDirectiveMap.' + eventName;
47634763
// Safely broadcast the event
4764-
fire(scope, broadcastName, logic, e, e.target, scope, mapId)
4764+
fire(scope, broadcastName, logic, e, e.target, scope)
47654765
};
47664766
};
47674767

dist/angular-leaflet-directive.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-leaflet-directive_dev_mapped.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-leaflet-directive_dev_mapped.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/events/leafletMapEvents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ angular.module("leaflet-directive")
5555
];
5656
};
5757

58-
var _genDispatchMapEvent = function(scope, eventName, logic, mapId) {
58+
var _genDispatchMapEvent = function(scope, eventName, logic) {
5959
// (nmccready) We should consider passing mapId as an argument or using it from scope
6060
return function(e) {
6161
// Put together broadcast name
6262
// (nmccready) We should consider passing mapId joining mapId to the broadcastName to keep the event unique. Same should be done for all directives so we know what map it comes from.
6363
// problem with this is it will cause a minor bump and break backwards compat
6464
var broadcastName = 'leafletDirectiveMap.' + eventName;
6565
// Safely broadcast the event
66-
fire(scope, broadcastName, logic, e, e.target, scope, mapId)
66+
fire(scope, broadcastName, logic, e, e.target, scope)
6767
};
6868
};
6969

0 commit comments

Comments
 (0)