"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:
@@ -19,6 +19,12 @@
|
||||
map.events.triggerEvent("changelayer", {});
|
||||
t.ok(true, "permalink didn't bomb out.");
|
||||
}
|
||||
function test_02_Control_Permalink_initwithelem (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
control = new OpenLayers.Control.Permalink(OpenLayers.Util.getElement('permalink'));
|
||||
t.ok(true, "If the above line doesn't throw an error, we're safe.");
|
||||
}
|
||||
function test_02_Control_Permalink_updateLinks (t) {
|
||||
t.plan( 3 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user