"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:
crschmidt
2007-09-16 15:59:11 +00:00
parent 294f84ba15
commit f505542fbe
4 changed files with 18 additions and 5 deletions

View File

@@ -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);
},