# HG changeset patch # User Matti Hamalainen # Date 1394571038 -7200 # Node ID 0574f3520674b6d97e19611a2320804af5f2bbb4 # Parent ddc3ebdeb31e855d28a069fdb79386ba69ed8cb9 Sync. diff -r ddc3ebdeb31e -r 0574f3520674 lib/markerwithlabel.js --- a/lib/markerwithlabel.js Tue Mar 11 22:45:11 2014 +0200 +++ b/lib/markerwithlabel.js Tue Mar 11 22:50:38 2014 +0200 @@ -1,6 +1,6 @@ /** * @name MarkerWithLabel for V3 - * @version 1.1.9 [June 30, 2013] + * @version 1.1.9 [March 6, 2014] * @author Gary Little (inspired by code from Marc Ridey of Google). * @copyright Copyright 2012 Gary Little [gary at luxcentral.com] * @fileoverview MarkerWithLabel extends the Google Maps JavaScript API V3 @@ -38,14 +38,15 @@ /** * @param {Function} childCtor Child class. * @param {Function} parentCtor Parent class. + * @private */ function inherits(childCtor, parentCtor) { - /** @constructor */ - function tempCtor() {}; + /* @constructor */ + function tempCtor() {} tempCtor.prototype = parentCtor.prototype; childCtor.superClass_ = parentCtor.prototype; childCtor.prototype = new tempCtor(); - /** @override */ + /* @override */ childCtor.prototype.constructor = childCtor; } @@ -79,6 +80,7 @@ // Get the DIV for the "X" to be displayed when the marker is raised. this.crossDiv_ = MarkerLabel_.getSharedCross(crossURL); } + inherits(MarkerLabel_, google.maps.OverlayView); /** @@ -561,6 +563,7 @@ // that the marker label listens for in order to react to state changes. google.maps.Marker.apply(this, arguments); } + inherits(MarkerWithLabel, google.maps.Marker); /**