Remove goog.dom

This commit is contained in:
nicholas
2016-03-26 23:13:10 +13:00
committed by Nicholas L
parent 29c8af7559
commit 6b465902cd
37 changed files with 446 additions and 320 deletions

View File

@@ -30,7 +30,6 @@
goog.provide('ol.pointer.PointerEventHandler');
goog.require('goog.dom');
goog.require('ol.events');
goog.require('ol.events.EventTarget');
@@ -334,10 +333,10 @@ ol.pointer.PointerEventHandler.prototype.enterOver = function(data, event) {
* contains the other element.
*/
ol.pointer.PointerEventHandler.prototype.contains_ = function(container, contained) {
if (!contained) {
if (!container || !contained) {
return false;
}
return goog.dom.contains(container, contained);
return container.contains(contained);
};