|
115 | 115 | autorun=true
|
116 | 116 | )
|
117 | 117 |
|
118 |
| - @sect{dom.XMLHttpRequest} |
| 118 | + @sect{dom.Fetch} |
119 | 119 | @pair(
|
120 |
| - "XMLHttpRequest", |
| 120 | + "Fetch", |
121 | 121 | Seq(
|
122 | 122 | pre("output")
|
123 | 123 | )
|
|
145 | 145 | @li
|
146 | 146 | Deprecated properties/methods/types will not be present.
|
147 | 147 | @li
|
148 |
| - IE-only, Chrome-only, FF-only, and in general browser-specific attributes will only be found under the @hl.scala{experimental} package. |
| 148 | + IE-only, Chrome-only, FF-only, and in general browser-specific attributes will typically not be present. |
149 | 149 | @li
|
150 | 150 | The name of a Scala type should map directly to the name of the corresponding Javascript type.
|
151 | 151 | @li
|
152 | 152 | Any type which is a Javascript type (e.g. you can @hl.scala{instanceof} in javascript) should be a Scala @hl.scala{class}; any other interface which isn't a Javascript type should be a @hl.scala{trait}.
|
153 | 153 | @li
|
154 | 154 | Read-only members should be @hl.scala{def}, and not-directly-instantiable classes should have @hl.scala{private} constructors.
|
155 | 155 |
|
156 |
| - @sect{Extensions} |
157 |
| - |
158 |
| - @p |
159 |
| - Apart from @hl.scala{Color}, Scala-js-dom contains some useful helpers and implicit classes in @hl.scala{org.scalajs.dom.ext} that serve no purpose other than to make your use of the DOM more pleasant. |
160 |
| - |
161 |
| - @p |
162 |
| - Examples include the @hl.scala{Ajax.get} and @hl.scala{Ajax.post} methods which let you avoid messing with @hl.scala{dom.XMLHttpRequest} directly, or @hl.scala{KeyCodes} which provides a nice list of the keycodes that result from pressing various keys on the keyboard. |
163 |
| - @pair( |
164 |
| - "AjaxExtension", |
165 |
| - Seq( |
166 |
| - pre("output") |
167 |
| - ) |
168 |
| - ) |
169 |
| - |
170 |
| - @p |
171 |
| - See also @a("roll", href:="https://github.com/lihaoyi/roll") (@a("live demo", href:="http://lihaoyi.github.io/roll/")) and @a("scala-js-games", href:="https://github.com/lihaoyi/scala-js-games") for an example of its use. @a("Scala-js-fiddle", href:="http://www.scala-js-fiddle.com/") also contains a pile of @a("fun examples", href:="(http://www.scala-js-fiddle.com/gist/9405209/Oscilloscope.scala") that demonstrate its usage. Pull requests/forks are welcome! |
172 |
| - |
173 | 156 | @sect{Contributing}
|
174 | 157 | @p
|
175 |
| - Scala-js-dom is a work in progress. The current code base is a hodgepodge of auto-generated/scraped/hand-tweaked code, and is full of rough edges. If you see something that you think can be improved, feel free to send a pull request. These could include: |
| 158 | + The DOM API is always evolving, and scala-js-dom is a hodgepodge of auto-generated/scraped/hand-tweaked code full of rough edges. If you see something that you think can be improved, feel free to send a pull request. These could include: |
176 | 159 | @ul
|
177 | 160 | @li
|
178 | 161 | Improved doc-comments; who doesn't love better docs?
|
179 | 162 | @li
|
180 | 163 | Missing methods/properties/classes; send the PR adding it in including it together with a link to an authoritative source (e.g. MDN) and it should get merged.
|
181 |
| - @li |
182 |
| - Additional extensions (in @hl.scala{org.scalajs.dom.ext}). These currently represent an arbitrary collection of helpers that have been needed so far. If there's some implicit that you find you need and you think other people will to, send a pull request and we can talk about it. |
0 commit comments