Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.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",

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