markerwithlabel
Advanced tools
Comparing version 1.1.15 to 1.1.16
34
index.js
@@ -39,13 +39,14 @@ /** | ||
/** | ||
* @param {Function} obj1 Child class. | ||
* @param {Function} obj2 Parent class. | ||
* @param {Function} childCtor Child class. | ||
* @param {Function} parentCtor Parent class. | ||
*/ | ||
MarkerLabel_.prototype.extend = function(obj1, obj2) { | ||
return (function(object) { | ||
for (var property in object.prototype) { | ||
this.prototype[property] = object.prototype[property]; | ||
} | ||
return this; | ||
}).apply(obj1, [obj2]); | ||
}; | ||
function inherits(childCtor, parentCtor) { | ||
/** @constructor */ | ||
function tempCtor() {}; | ||
tempCtor.prototype = parentCtor.prototype; | ||
childCtor.superClass_ = parentCtor.prototype; | ||
childCtor.prototype = new tempCtor(); | ||
/** @override */ | ||
childCtor.prototype.constructor = childCtor; | ||
} | ||
@@ -62,3 +63,2 @@ /** | ||
function MarkerLabel_(marker, crossURL, handCursorURL) { | ||
this.extend(MarkerLabel_, google.maps.OverlayView); | ||
this.marker_ = marker; | ||
@@ -84,2 +84,3 @@ this.handCursorURL_ = marker.handCursorURL; | ||
} | ||
inherits(MarkerLabel_, google.maps.OverlayView); | ||
@@ -541,3 +542,2 @@ /** | ||
function MarkerWithLabel(opt_options) { | ||
this.extend(MarkerWithLabel, google.maps.Marker); | ||
opt_options = opt_options || {}; | ||
@@ -576,12 +576,4 @@ opt_options.labelContent = opt_options.labelContent || ""; | ||
} | ||
inherits(MarkerWithLabel, google.maps.Marker); | ||
MarkerWithLabel.prototype.extend = function(obj1, obj2) { | ||
return (function(object) { | ||
for (var property in object.prototype) { | ||
this.prototype[property] = object.prototype[property]; | ||
} | ||
return this; | ||
}).apply(obj1, [obj2]); | ||
}; | ||
/** | ||
@@ -588,0 +580,0 @@ * Overrides the standard Marker setMap function. |
{ | ||
"name": "markerwithlabel", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "npm module of Google Map utility's Marker With Label", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
46297
549