add ol.ENABLE_DRAG_HANDLER and ol.ENABLE_MOUSEWHEEL_HANDLER @defines, and pass a an object to the handlers for sharing states

This commit is contained in:
Éric Lemoine
2012-07-11 17:43:42 +02:00
parent 38f946d944
commit da11a8c34d
5 changed files with 32 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ describe('ol.handler.Drag', function() {
describe('create a drag handler', function() {
it('returns an ol.handler.Drag instance', function() {
var handler = new ol.handler.Drag(map, elt);
var handler = new ol.handler.Drag(map, elt, {});
expect(handler).toBeA(ol.handler.Drag);
});