Skip to content

Commit de97975

Browse files
committedApr 25, 2012
Readd the window.$ mapping in the deprecated.js file
1 parent c56a861 commit de97975

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎lib/deprecated.js

+11
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,17 @@ OpenLayers.Util.getArgs = function(url) {
164164
return OpenLayers.Util.getParameters(url);
165165
};
166166

167+
/**
168+
* Maintain existing definition of $.
169+
*
170+
* The use of our $-method is deprecated and the mapping of
171+
* OpenLayers.Util.getElement will eventually be removed. Do not depend on
172+
* window.$ being defined by OpenLayers.
173+
*/
174+
if(typeof window.$ === "undefined") {
175+
window.$ = OpenLayers.Util.getElement;
176+
}
177+
167178
/**
168179
* Namespace: OpenLayers.Ajax
169180
*/

0 commit comments

Comments
 (0)
Please sign in to comment.