Socket
Socket
Sign inDemoInstall

markerwithlabel

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markerwithlabel - npm Package Compare versions

Comparing version 1.1.13 to 1.1.14

33

index.js

@@ -39,13 +39,13 @@ /**

/**
* @param {Function} childCtor Child class.
* @param {Function} parentCtor Parent class.
* @param {Function} obj1 Child class.
* @param {Function} obj2 Parent class.
*/
function inherits(childCtor, parentCtor) {
/** @constructor */
function tempCtor() {};
tempCtor.prototype = parentCtor.prototype;
childCtor.superClass_ = parentCtor.prototype;
childCtor.prototype = new tempCtor();
/** @override */
childCtor.prototype.constructor = childCtor;
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]);
};
}

@@ -63,2 +63,3 @@

function MarkerLabel_(marker, crossURL, handCursorURL) {
this.extend(MarkerLabel_, google.maps.OverlayView);
this.marker_ = marker;

@@ -84,3 +85,2 @@ this.handCursorURL_ = marker.handCursorURL;

}
inherits(MarkerLabel_, google.maps.OverlayView);

@@ -542,2 +542,3 @@ /**

function MarkerWithLabel(opt_options) {
this.extend(MarkerWithLabel, google.maps.Marker);
opt_options = opt_options || {};

@@ -576,4 +577,12 @@ 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]);
};
/**

@@ -580,0 +589,0 @@ * Overrides the standard Marker setMap function.

{
"name": "markerwithlabel",
"version": "1.1.13",
"version": "1.1.14",
"description": "npm module of Google Map utility's Marker With Label",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc