Merge pull request #5763 from ahocevar/fix-assert

Fix assert namespace
This commit is contained in:
Andreas Hocevar
2016-08-23 10:14:37 +02:00
committed by GitHub

View File

@@ -1,5 +1,6 @@
goog.provide('ol.events.condition');
goog.require('ol.asserts');
goog.require('ol.functions');
goog.require('ol.MapBrowserEvent.EventType');
@@ -203,7 +204,7 @@ ol.events.condition.targetNotEditable = function(mapBrowserEvent) {
* @api stable
*/
ol.events.condition.mouseOnly = function(mapBrowserEvent) {
ol.assert(mapBrowserEvent.pointerEvent, 56); // mapBrowserEvent must originate from a pointer event
ol.asserts.assert(mapBrowserEvent.pointerEvent, 56); // mapBrowserEvent must originate from a pointer event
// see http://www.w3.org/TR/pointerevents/#widl-PointerEvent-pointerType
return /** @type {ol.MapBrowserEvent} */ (mapBrowserEvent).pointerEvent.pointerType == 'mouse';
};