Remove our aliasing of OpenLayers.Util.getElement to window.$.
This commit is contained in:
@@ -74,13 +74,6 @@ OpenLayers.Util.isArray = function(a) {
|
|||||||
return (Object.prototype.toString.call(a) === '[object Array]');
|
return (Object.prototype.toString.call(a) === '[object Array]');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Maintain existing definition of $.
|
|
||||||
*/
|
|
||||||
if(typeof window.$ === "undefined") {
|
|
||||||
window.$ = OpenLayers.Util.getElement;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function: removeItem
|
* Function: removeItem
|
||||||
* Remove an object from an array. Iterates through the array
|
* Remove an object from an array. Iterates through the array
|
||||||
|
|||||||
@@ -77,11 +77,6 @@
|
|||||||
t.eq(OpenLayers.Util.isArray(testArray), true, "isArray works");
|
t.eq(OpenLayers.Util.isArray(testArray), true, "isArray works");
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_$(t) {
|
|
||||||
t.plan(1);
|
|
||||||
t.ok($ === custom$, "OpenLayers doesn't clobber existing definition of $.");
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_Util_getImagesLocation (t) {
|
function test_Util_getImagesLocation (t) {
|
||||||
t.plan( 1 );
|
t.plan( 1 );
|
||||||
t.ok( OpenLayers.Util.getImagesLocation(), "../img/",
|
t.ok( OpenLayers.Util.getImagesLocation(), "../img/",
|
||||||
|
|||||||
Reference in New Issue
Block a user