Tim Schaub
1ff43686f5
Use bracket notation instead of goog.object.get
2015-01-07 22:31:01 -07:00
Frederic Junod
1238ab0df0
Remove ol.Object.capitalize and use goog.string.capitalize
2014-12-09 11:55:27 +01:00
Frédéric Junod
773ac433ce
Merge pull request #2872 from fredj/remove_beforechange_event
...
Remove the beforepropertychange event from ol.Object
2014-10-24 21:03:31 +02:00
Tim Schaub
771c418de3
Merge pull request #2868 from tschaub/event-doc
...
Remove doc about dispatching events.
2014-10-24 12:07:45 -06:00
Frederic Junod
1d533d2924
Remove the beforepropertychange event from ol.Object
...
propertychange events include the oldValue so remove the beforepropertychange
event type.
2014-10-24 18:09:34 +02:00
Éric Lemoine
6d095bdf7c
Add old value to property change events
2014-10-24 09:24:37 +02:00
Tim Schaub
bf314f30d5
Remove doc about dispatching events
2014-10-23 17:10:29 -06:00
Éric Lemoine
ad83f83f2c
To do call toLowerCase when forming a change:property event
2014-09-18 18:44:45 +02:00
Peter Robins
7a5a5d75e7
Improve and standardise event docs
2014-08-18 15:17:02 +00:00
Peter Robins
aa85318d78
Fix missing backtick in ol.Object docs
2014-07-14 09:47:50 +01:00
Peter Robins
753727c15f
Expand on docs for observable properties
2014-07-12 15:28:46 +00:00
Andreas Hocevar
1933d809e2
Export transform
...
ol.ObjectAccessor#transform is used in the bind-input example. Why the
example works without this export is a mystery to me. Either way, we
will want this in the docs.
2014-07-07 10:45:15 +02:00
Tim Schaub
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
Éric Lemoine
64fcb1a0f5
Merge pull request #2264 from elemoine/object
...
ol.ObjectAccessor#transform shouldn't dispatch an event to the target object
2014-06-30 12:17:33 +02:00
Éric Lemoine
eafc2ac371
Change setValues to setProperties
2014-06-27 17:26:51 +02:00
Éric Lemoine
5ebb9686ce
ol.Object doc improvement
2014-06-27 10:16:53 +02:00
Éric Lemoine
9179c914b8
Notify ol.Object source when transform is called
2014-06-27 10:16:27 +02:00
Peter Robins
75be215497
Add standard docs text to abstract base classes
2014-06-14 07:20:33 -04:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
Frederic Junod
b3de1b927a
Export ol.ObjectEvent#key property
2014-05-28 09:18:59 +02:00
Frederic Junod
2f918ea2a4
Remove unused goog.require
2014-05-21 16:06:32 +02:00
Andreas Hocevar
7271b50d5a
Simplify fires annotations
2014-05-01 22:17:56 +02:00
Andreas Hocevar
fbdbbfb7a7
Get rid of stability annotations and document stability with api
...
This change adds a stability value to the api annotation, with
'experimental' as default value.
enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.
Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Tim Schaub
fb497f5288
Annotations for exports
2014-04-29 09:53:05 -06:00
Tom Payne
7db06b61de
Fix location of call to goog.getUid, thanks @elemoine
2014-03-27 22:22:54 +01:00
Tom Payne
4e93fe2fbd
Call goog.getUid in ol.Object constructor
2014-03-27 19:01:29 +01:00
ahocevar
a3b5376520
Add missing event documentation and stability tags
2014-03-26 14:04:58 +01:00
ahocevar
3227ce4a06
Document ol.ObjectEvent events
2014-03-25 18:24:57 +01:00
Tom Payne
271487c1bc
Remove leading whitespace
2014-03-12 19:52:13 +01:00
Tim Schaub
6344b8e06c
Make setValues consistent with repeated calls to set
2014-02-19 10:17:39 -07:00
Tom Payne
2b42e89580
Add stability annotation to ol.Object#getProperties
2014-02-03 14:44:59 +01:00
Tom Payne
ce3209a439
Improve type checking in ol.Object#bindTo
2014-01-30 11:20:59 +01:00
Tom Payne
37351c530c
Convert ol.ObjectEvent#getKey method into key property
2014-01-27 15:53:58 +01:00
Tom Payne
d63fec80d1
Use goog.object.get to suppress compiler warning about use of [] with struct
2013-12-13 20:36:32 +01:00
Tom Payne
6e3bcc7478
Make ol.Object#listeners_ a private renameable property
2013-12-13 20:35:27 +01:00
Tom Payne
b48fd51561
Make ol.Object#accessors_ a private renameable property
2013-12-13 20:34:56 +01:00
Tim Schaub
20d74810ab
Export a getKey method on ol.ObjectEvent
2013-12-12 16:59:34 -07:00
Tim Schaub
69385f4ff0
More consistent event types
2013-12-11 16:54:01 -07:00
Tim Schaub
625007f364
Make enum property name like its value
...
Where an enum value is used as an event type, it should be alllowercase (to follow DOM events). Property names should be ALLUPPERCASE in this case (just as camelCase and PascalCase are converted to CONSTANT_CASE).
2013-12-11 16:54:01 -07:00
Tim Schaub
c8985b9906
Using unique event type values for distinct events
...
Any event target can be used to dispatch generic goog.events.Event instances with an arbitrary type. In cases where we dispatch custom events, we should not use type values that collide with those used for generic events (at least internally). This allows listeners a better chance of knowing what kind of argument they will receive.
As subsequent change will clean up the enumeration and add a bit more consistency.
2013-12-11 16:53:52 -07:00
Tim Schaub
153cb307e0
Handle beforechange events for bound properties
2013-12-11 11:25:51 -07:00
Tim Schaub
9d3a4e3c6c
Add beforechange event type and provide key with change events
...
If you know ahead of time that you only want to listen for changes for a specific property, the foo:change type events can be useful. If you want to listen for changes on all properties, the change event becomes more useful if it provides information on what changed. And the beforechange event allows listeners to access values before they change.
2013-12-11 11:25:50 -07:00
Tim Schaub
162b245d7c
ol.Object extends ol.Observable
2013-12-05 12:28:33 -07:00
Tom Payne
f795adcd56
Add ol.Object#getProperties
2013-12-04 19:19:51 +01:00
Frederic Junod
6e88d3ba3c
Minor apidoc updates
2013-11-21 10:52:00 +01:00
Frederic Junod
c18b2706fb
Notify target object after transform functions change
2013-11-13 16:13:08 +01:00
Frederic Junod
03cc533cb3
Getter and setter support for bindTo
2013-11-13 16:13:08 +01:00
Frederic Junod
01cc19af80
More precise {function} jsdoc definition
2013-11-07 16:03:19 +01:00
Tom Payne
60245a57d8
Make ol.Object#getKeys about 10x faster
2013-11-04 18:18:31 +01:00
Paul Spencer
bada596b45
Add default stability level to docs of exported things.
2013-10-24 18:20:24 -04:00