Skip to content

Commit

Permalink
Readd the window.$ mapping in the deprecated.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjansen committed Apr 25, 2012
1 parent c56a861 commit de97975
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ OpenLayers.Util.getArgs = function(url) {
return OpenLayers.Util.getParameters(url);
};

/**
* Maintain existing definition of $.
*
* The use of our $-method is deprecated and the mapping of
* OpenLayers.Util.getElement will eventually be removed. Do not depend on
* window.$ being defined by OpenLayers.
*/
if(typeof window.$ === "undefined") {
window.$ = OpenLayers.Util.getElement;
}

/**
* Namespace: OpenLayers.Ajax
*/
Expand Down

0 comments on commit de97975

Please sign in to comment.