adds the ability for the user to give map options when reading a WMC document, those options are taken into account with higher priority\n this patch also introduces the new util method isElement, r=me,elemoine, thanks Eric (Closes #2339)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9794 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -31,6 +31,20 @@ OpenLayers.Util.getElement = function() {
|
||||
return elements;
|
||||
};
|
||||
|
||||
/**
|
||||
* Function: isElement
|
||||
* A cross-browser implementation of "e instanceof Element".
|
||||
*
|
||||
* Parameters:
|
||||
* o - {Object} The object to test.
|
||||
*
|
||||
* Returns:
|
||||
* {Boolean}
|
||||
*/
|
||||
OpenLayers.Util.isElement = function(o) {
|
||||
return !!(o && o.nodeType === 1);
|
||||
};
|
||||
|
||||
/**
|
||||
* Maintain existing definition of $.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user