ahocevar
d1395d005c
Fix comments for JSDoc
2018-10-23 17:58:50 +02:00
William Wall
2517b838b6
Fix type check for ol/events
...
Cast to ol/events/Target since the function declarations only match
between EventTarget and Target for the first two parameters.
2018-10-01 14:02:12 -06:00
Kevin Schmidt
0ac94c93ff
Fix TypeScript errors managing ol_lm on event targets
2018-09-19 14:42:45 -06:00
Kevin Schmidt
f819ed137b
Add native Event to ListenerFunction signature.
2018-09-18 13:10:36 -06:00
Tim Schaub
ef4936de4a
Listener return is boolean or void
2018-09-07 09:10:31 -06:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
40486a0ecc
Avoid shadowing EventTarget
2018-07-26 10:14:58 -06:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
Tim Schaub
d46471d763
Replace {@link https://www.example.com/ } with https://www.example.com/
2018-07-19 08:34:35 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Frederic Junod
73b15ef8d7
Better code indentation
2018-02-28 16:46:45 +01:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +01:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
ef04f466cd
Name modules more like their provide
2016-12-18 11:24:01 -07:00
Tim Schaub
59b0f9a658
Events provides
2016-08-12 10:53:48 -06:00
Tim Schaub
1b8310a6fe
Rename ol/objectutil.js to ol/obj.js
2016-08-07 10:49:12 -06:00
Andreas Hocevar
bfcfb61eff
De-randomize the listener map property
2016-07-25 16:17:18 +02:00
Andreas Hocevar
c75581d026
Fix dead link for change event in API docs
2016-07-10 12:11:31 +02:00
Andreas Hocevar
6718fc982e
Merge pull request #5450 from probins/typedefs
...
Remove sub-namespaces from all remaining typedefs
2016-06-14 17:32:10 +02:00
Andreas Hocevar
1d20215bfa
Make all typedefs work without provide/require
2016-06-14 15:01:20 +00:00
Frederic Junod
4bf1f56405
Add missing semicolon
2016-06-09 15:39:46 +02:00
Peter Robins
2c29512c80
Remove sub-namespaces from all remaining typedefs
2016-06-09 10:01:52 +00:00
Peter Robins
a1c86ed560
Fix eventTargetLike
...
This needs a goog.provide and a goog.require in events.js to compile.
2016-05-11 19:46:38 +00:00
Peter Robins
4f0b4dacbd
Move sub-namespace typedefs to typedefs.js
...
Here too there is one problem case.
2016-05-11 19:45:59 +00:00
Andreas Hocevar
7c5e1b808d
Add and fix API docs for ol.events.Event stack
2016-03-10 17:35:55 +01:00
Andreas Hocevar
00a0f14743
Unlisten before calling listener and bind to target by default
2016-02-25 17:48:15 +01:00
Tim Schaub
fd394151fd
Replace goog.object.clear() with ol.object.clear()
2016-02-04 06:54:44 -07:00
Frederic Junod
c43de104ce
Remove unnecessary newlines
2016-02-04 12:24:20 +01:00
Andreas Hocevar
7a8d15fe47
Use more consistent variable names and reduce findListener_ calls
2016-02-03 11:19:38 +01:00
Tim Schaub
f3b97d6bef
Use string instead of string|ol.events.EventType
2016-02-03 11:19:38 +01:00
Tim Schaub
f10c90bdba
Simpler type for ol.events.Key
...
Instead of having `ol.events.Key` be a listener object or an array of listener objects, it should be less error prone to have it just be a single listener object.
To avoid using too many functions with multiple return types, the `ol.events.*` functions for registering and unregistering listeners no longer accept an array of event types (and only a single key is returned when registering).
To make it convenient for users to register multiple listeners at once, the `observable.on()` method accepts an array of event types. Internally in the library, we should use the less risky `ol.events.listen()`.
2016-02-03 11:19:38 +01:00
Tim Schaub
c62e76ab67
Remove support for useCapture
2016-02-03 11:19:38 +01:00
Tim Schaub
80df1f5ae8
Move opt_useCapture arg to the end of the list
2016-02-03 11:19:38 +01:00
Andreas Hocevar
8d0ef13505
Add tests and documentation for goog.events.*
2016-02-03 11:19:38 +01:00
Andreas Hocevar
c51d717657
Refactor event manager to remove memory leaks
2016-02-03 11:19:38 +01:00
Andreas Hocevar
d7497f9686
Always provide useCapture and async args to browser
2016-02-03 11:19:38 +01:00
Andreas Hocevar
7e27ba1d42
Remove goog.fx.Dragger
2016-02-03 11:19:38 +01:00
Andreas Hocevar
6ac3f30c8f
Remove goog.events.MouseWheelEvent and goog.events.MouseWheelHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
1a6daa297e
Remove goog.events.KeyHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
0f216659f9
Remove goog.fs.FileReader and goog.events.FileDropHandler
2016-02-03 11:19:38 +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