leaflet-mount
Advanced tools
Comparing version 0.0.0-alpha.2 to 0.0.0-alpha.3
{ | ||
"name": "leaflet-mount", | ||
"version": "0.0.0-alpha.2", | ||
"version": "0.0.0-alpha.3", | ||
"description": "Seamlessly, flexibly insert content into leaflet maps", | ||
@@ -12,10 +12,15 @@ "main": "build/leaflet-mount.min.js", | ||
"devDependencies": { | ||
"uglify-js": "^2.7.4" | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-uglify": "^2.0.0", | ||
"gulp-watch": "^4.3.10", | ||
"gulp-wrap": "^0.13.0" | ||
}, | ||
"scripts": { | ||
"build": " ./node_modules/.bin/uglifyjs src/core.js src/main.js src/extras.js -o build/leaflet-mount.min.js", | ||
"prepublish": "npm run build", | ||
"test": "echo \"no tests yet\"", | ||
"dev": "echo \"no dev environment yet\"" | ||
"build": "./node_modules/.bin/gulp", | ||
"prepublish": "./node_modules/.bin/gulp prepublish", | ||
"dev": "./node_modules/.bin/gulp dev" | ||
} | ||
} |
@@ -1,5 +0,1 @@ | ||
(function (window, document, undefined) { | ||
"use strict"; | ||
L.Mount = {}; | ||
@@ -106,3 +102,3 @@ | ||
this._loading = true; | ||
this._everyLoadChild(this._load, this); | ||
this._everyLoadChild(this._addLoadChild, this); | ||
}, | ||
@@ -112,3 +108,3 @@ | ||
this._loading = false; | ||
this._everyLoadChild(this._unload, this); | ||
this._everyLoadChild(this._removeLoadChild, this); | ||
}, | ||
@@ -178,3 +174,1 @@ | ||
}; | ||
}(this, document)); |
@@ -1,8 +0,4 @@ | ||
(function (window, document, undefined) { | ||
"use strict"; | ||
L.Mount.MountChild = L.Class.extend({ | ||
includes: [NestChild, LoadChild], | ||
includes: [L.Mount.NestChild, L.Mount.LoadChild], | ||
@@ -22,3 +18,3 @@ addTo: function (parent) { | ||
includes: [NestParent, LoadParent], | ||
includes: [L.Mount.NestParent, L.Mount.LoadParent], | ||
@@ -43,22 +39,20 @@ options: { | ||
L.GroupMount = L.Class.extend({ | ||
includes: [MountParent] | ||
includes: [L.Mount.MountParent] | ||
}); | ||
L.CustomMount = MountChild.extend({ | ||
includes: [MountParent] | ||
L.CustomMount = L.Mount.MountChild.extend({ | ||
includes: [L.Mount.MountParent] | ||
}); | ||
L.Map | ||
.include(base.LoadParent) | ||
.include(base.NestParent) | ||
.mergeOptions({ | ||
mountCSSName: "leaflet-mount-root" | ||
}) | ||
.addInitHook(function(){ | ||
this._startLoading(); | ||
this._mountElement = | ||
L.DomUtil.create("div", this.options.mountCSSName, this._container); | ||
this.on("unload", this._unloadMounts, this) | ||
}); | ||
}(this, document)); | ||
.include(L.Mount.LoadParent) | ||
.include(L.Mount.NestParent) | ||
.mergeOptions({ | ||
mountCSSName: "leaflet-mount-root" | ||
}) | ||
.addInitHook(function(){ | ||
this._startLoading(); | ||
this._mountElement = | ||
L.DomUtil.create("div", this.options.mountCSSName, this._container); | ||
this.on("unload", this._startUnloading, this) | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
22554
15
695
2
7
1