Commit Graph

51 Commits

Author SHA1 Message Date
Frederic Junod e289bfbb7d Use ol.inherits instead of goog.inherits 2016-06-08 08:38:12 +02:00
Nicholas Latham cd6494149b Remove goog.global (#5178)
* Remove goog.global

* Correct externs location

* Use Function('return this')

* Remove global externs
2016-04-07 23:36:48 +02:00
Tim Schaub 0dce343d4f Remove use of goog.object.getCount() 2016-02-04 06:54:44 -07:00
Guillaume Beraudo 289e571fb0 Remove all remaining unnecessary casts
There is still such a cast in the goog library itself.
See https://github.com/google/closure-library/pull/637
2016-02-03 16:26:43 +01:00
Andreas Hocevar 3f2d79b7fe Replace goog.events.Event/EventTarget system with our own
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Nicholas L d743ada8fd Remove goog.array.remove 2016-02-03 11:41:39 +13:00
Nicholas L db3ad70a3d Remove use of goog.bind and use ES5 .bind 2016-01-15 22:10:55 +13:00
Tim Schaub 13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub 3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Tim Schaub 59a66c7aaa Remaining valid-jsdoc corrections 2016-01-11 18:56:08 -08:00
Tim Schaub e6f6dcc230 Partial valid-jsdoc corrections 2016-01-11 18:56:08 -08:00
Frederic Junod cf1b1822b8 Remove use of goog.object.getKeys 2015-11-30 17:34:53 +01:00
Frederic Junod 8d72589743 Remove use of goog.object.containsKey 2015-11-24 10:17:01 +01:00
Tim Schaub 0927c55b3c Toward natural JavaScript syntax 2015-09-25 12:16:42 -06:00
Marc Jansen 06b34055d1 Remove goog.isDef from touchsource 2015-09-25 11:35:13 -06:00
Frederic Junod b128675e60 Remove use of goog.object.remove 2015-09-22 12:08:09 +02:00
Stefan Weil e812f2435e Fix typos found by codespell
Most of them are in comments, some in strings.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-02-12 16:39:55 +01:00
Tim Schaub 1ff43686f5 Use bracket notation instead of goog.object.get 2015-01-07 22:31:01 -07:00
Tim Schaub f9a92c422c Use bracket notation instead of goog.object.set 2015-01-07 21:08:24 -07:00
Bart van den Eijnden 83ce0b2c7f Restore map interaction on touch devices 2014-05-15 15:29:41 +02:00
Tim Schaub b860ec7a06 Do less work while processing touch events 2014-05-13 23:06:27 -06:00
Tim Schaub 57a6fbf416 Call resetClickCountHandler_ with proper this argument 2014-05-13 17:41:58 -06:00
Tom Payne 4a8ef6a229 Use dot property access in ol.pointer.TouchSource 2014-03-23 19:59:49 +01:00
Frederic Junod 6d4552c783 Cache the result of goog.object.getCount 2014-03-20 12:38:14 +01:00
Frederic Junod a2375d58b6 Store touch coordinates as ol.Pixel instead of goog.math.Coordinate 2014-03-20 12:38:14 +01:00
Frederic Junod 395fdf9bbf Move function declaration out of the constructor 2014-03-20 12:38:13 +01:00
tsauerwein b2a37b8244 Remove not needed require 2014-03-14 10:16:27 +01:00
tsauerwein 41df4e0a23 Remove assertion again
When doing a double tap, the timeout id might get overridden.
2014-03-14 10:16:27 +01:00
tsauerwein 51a557efbb Replace goog.structs.Map with plain object 2014-03-14 10:16:27 +01:00
tsauerwein 68fa5fb9ce Make use of goog.array.remove 2014-03-14 10:16:27 +01:00
tsauerwein debdc26fd2 Remove assignment inside expression 2014-03-14 10:16:27 +01:00
tsauerwein 71b424f74c Add missing require 2014-03-14 10:16:27 +01:00
tsauerwein 1a477b8f32 Assert that timeout reset ids are not overridden 2014-03-14 10:16:27 +01:00
tsauerwein d170281354 Re-use handler 2014-03-14 10:16:27 +01:00
Frederic Junod ee80238ed2 Use 'undefined' for undefined numbers
Conflicts:
	src/ol/pointer/touchsource.js
2014-03-14 10:16:27 +01:00
tsauerwein 18c2888987 Remove not used property TouchSource.firstXY 2014-03-14 10:16:27 +01:00
Frederic Junod f5b15f737f Move DEDUP_TIMEOUT and CLICK_COUNT_TIMEOUT constants out of the instance 2014-03-14 10:16:27 +01:00
tsauerwein fcb52d2361 Remove unnecessary call to goog.bind 2014-03-14 10:16:27 +01:00
Frederic Junod 028a183d11 Pass the mapping object to the ol.pointer.EventSource constructor
Conflicts:
	src/ol/pointer/mssource.js
2014-03-14 10:16:27 +01:00
tsauerwein 6e2f0dce76 Work on a copy of changedTouches
On Opera Mobile 11.10 it is not possible to
directly work on `changedTouches` (e.g. map
fails). That is why a copy is made first.
2014-03-14 10:16:27 +01:00
Frederic Junod b2e946794f Set ol.pointer.*Source#mapping_ properties to private 2014-03-14 10:16:27 +01:00
Frederic Junod a916e2500b Add ol.pointer.TouchSource.POINTER_TYPE constant 2014-03-14 10:16:26 +01:00
Frederic Junod a74ad0e459 Remove ol.pointer.*Source#events properties 2014-03-14 10:16:26 +01:00
ahocevar 18ba2f8be6 Fixing API docs 2014-03-14 10:16:26 +01:00
tsauerwein 122dac857f PointerEventHandler test 2014-03-14 10:16:26 +01:00
tsauerwein 2e4badb7f3 when copying properties for touch events, make sure that those properties that might be different for each Touch object are not copied from the touch event 2014-03-14 10:16:26 +01:00
tsauerwein 7fbd11154b refactoring, type annotations 2014-03-14 10:16:26 +01:00
tsauerwein d772c95ccf makes PointerEvent a plain closure class, instead of trying to mimic a mouse event, which was required for the polyfill 2014-03-14 10:16:25 +01:00
tsauerwein 37ab50e2e4 use goog.bind, safari does not support the native bind 2014-03-14 10:16:25 +01:00
tsauerwein 492549642e add polymer license info 2014-03-14 10:16:25 +01:00