Merge pull request #3531 from mantonovic/master
Fix PointerEventHandler exception with Overlay containing SVG and IE9
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
goog.provide('ol.pointer.PointerEventHandler');
|
goog.provide('ol.pointer.PointerEventHandler');
|
||||||
|
|
||||||
goog.require('goog.array');
|
goog.require('goog.array');
|
||||||
|
goog.require('goog.dom');
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
goog.require('goog.events.BrowserEvent');
|
goog.require('goog.events.BrowserEvent');
|
||||||
goog.require('goog.events.Event');
|
goog.require('goog.events.Event');
|
||||||
@@ -367,7 +368,10 @@ ol.pointer.PointerEventHandler.prototype.enterOver =
|
|||||||
*/
|
*/
|
||||||
ol.pointer.PointerEventHandler.prototype.contains_ =
|
ol.pointer.PointerEventHandler.prototype.contains_ =
|
||||||
function(container, contained) {
|
function(container, contained) {
|
||||||
return container.contains(contained);
|
if (goog.isNull(contained)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return goog.dom.contains(container, contained);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user