Skip to content

Commit

Permalink
Remove our aliasing of OpenLayers.Util.getElement to window.$.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjansen committed Mar 5, 2012
1 parent fb3caf1 commit ece872b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions lib/OpenLayers/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ OpenLayers.Util.isArray = function(a) {
return (Object.prototype.toString.call(a) === '[object Array]');
};

/**
* Maintain existing definition of $.
*/
if(typeof window.$ === "undefined") {
window.$ = OpenLayers.Util.getElement;
}

/**
* Function: removeItem
* Remove an object from an array. Iterates through the array
Expand Down
5 changes: 0 additions & 5 deletions tests/Util.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@
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) {
t.plan( 1 );
t.ok( OpenLayers.Util.getImagesLocation(), "../img/",
Expand Down

0 comments on commit ece872b

Please sign in to comment.