IE thinks that window and document.body are really the same thing -- even
though one has a style property and the other doesn't. This means that when we pass in 'window' to pagePosition, it blows up, but it didin't before a recent reorganization. Here, we create a short term preventative measure to ensure that old apps don't break -- this should be fixed in 2.6. (See #1034, #1051) git-svn-id: http://svn.openlayers.org/trunk/openlayers@4783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -19,6 +19,13 @@
|
||||
OpenLayers.Util.removeItem(array, 3);
|
||||
t.eq( array.toString(), "1,2,4,5", "Util.removeItem works");
|
||||
}
|
||||
|
||||
function test_03_Util_pagePosition(t) {
|
||||
t.plan( 1 );
|
||||
var pp = OpenLayers.Util.pagePosition(window);
|
||||
t.eq( pp.toString(), "0,0", "Page position doesn't bail if passed 'window'")
|
||||
|
||||
}
|
||||
|
||||
function test_04_Util_createDiv(t) {
|
||||
t.plan( 24 );
|
||||
|
||||
Reference in New Issue
Block a user