Redo the Heightgraph patch as IIFE
This commit is contained in:
parent
dff71c5e44
commit
0005752cee
1 changed files with 9 additions and 23 deletions
|
|
@ -1,28 +1,14 @@
|
|||
diff --git a/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js b/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js
|
||||
index 122c9ac..1a966af 100644
|
||||
index 122c9ac..1048691 100644
|
||||
--- a/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js
|
||||
+++ b/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js
|
||||
@@ -1282,10 +1282,10 @@ function schedule(node, name, id, index, group, timing) {
|
||||
group: group, // For context during callback.
|
||||
on: emptyOn,
|
||||
tween: emptyTween,
|
||||
- time: timing.time,
|
||||
- delay: timing.delay,
|
||||
- duration: timing.duration,
|
||||
- ease: timing.ease,
|
||||
+ time: timing ? timing.time : 0,
|
||||
+ delay: timing ? timing.delay : 0,
|
||||
+ duration: timing ? timing.duration : 0,
|
||||
+ ease: timing ? timing.ease : null,
|
||||
timer: null,
|
||||
state: CREATED
|
||||
});
|
||||
@@ -3062,7 +3062,7 @@ function initRange(domain, range) {
|
||||
@@ -1,3 +1,4 @@
|
||||
+(function() {
|
||||
'use strict';
|
||||
|
||||
var prefix = "$";
|
||||
function _typeof(obj) {
|
||||
@@ -5792,3 +5793,4 @@ var schemeSet3 = colors("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9b
|
||||
|
||||
-function Map() {}
|
||||
+// function Map() {}
|
||||
|
||||
Map.prototype = map.prototype = {
|
||||
constructor: Map,
|
||||
return L.Control.Heightgraph;
|
||||
}, window);
|
||||
+}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue