"The Permalink control passes an element as the first parameter, however, the
initialize.apply is called with the arguments object, which causes an error if an element is passed into the control." Also applied to Scale. Now fixed with review from e-dog. (Closes #978) Fixes the only problem I found with migrating the Boston freemap to 2.5. git-svn-id: http://svn.openlayers.org/trunk/openlayers@4333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -24,10 +24,10 @@ OpenLayers.Control.Scale = OpenLayers.Class(OpenLayers.Control, {
|
||||
*
|
||||
* Parameters:
|
||||
* element - {DOMElement}
|
||||
* base - {String}
|
||||
* options - {Object}
|
||||
*/
|
||||
initialize: function(element) {
|
||||
OpenLayers.Control.prototype.initialize.apply(this, arguments);
|
||||
initialize: function(element, options) {
|
||||
OpenLayers.Control.prototype.initialize.apply(this, [options]);
|
||||
this.element = OpenLayers.Util.getElement(element);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user