Merge pull request #5877 from Leaflet/document-custom-options-data

Clarify that any option keys can be used
This commit is contained in:
Andrew 2017-10-26 22:37:33 +02:00 committed by GitHub
commit c64ae48e1a

View File

@ -133,6 +133,12 @@ var a = new MyClass({bla: 10});
a.options; // {foo: 'bar', bla: 10}
```
Note that the options object allows any keys, not just
the options defined by the class and its base classes.
This means you can use the options object to store
application specific information, as long as you avoid
keys that are already used by the class in question.
@section Includes
@example