派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-03-19 c88e6fc89736da8faa46d525c8781c0f1dac5384
src/components/plugin/Editable.js
@@ -1,9 +1,8 @@
'use strict'
const init = (L) => {
'use strict';
  (function (factory, window) {
    // define an AMD module that relies on 'leaflet'
    if (typeof define === 'function' && window.define.amd) {
      window.define(['leaflet'], factory)
  if (typeof define === 'function' && define.amd) {
    define(['leaflet'], factory)
      // define a Common JS module that relies on 'leaflet'
    } else if (typeof exports === 'object') {
@@ -11,8 +10,8 @@
    }
    // attach your plugin to the global 'L' variable
    if (typeof window !== 'undefined' && L) {
      factory(L)
  if (typeof window !== 'undefined' && window.L) {
    factory(window.L)
    }
  }(function (L) {
    // 🍂miniclass CancelableEvent (Event objects)
@@ -2009,8 +2008,3 @@
      this.lng = latlng.lng
    }
  }, window))
}
export default {
  init
}