| OLD | NEW |
| 1 { | 1 { |
| 2 "dart.dom.html": { | 2 "dart.dom.html": { |
| 3 "CanvasGradient": { | 3 "CanvasGradient": { |
| 4 "comment": [ | 4 "comment": [ |
| 5 "/**", | 5 "/**", |
| 6 " * An opaque canvas object representing a gradient.", | 6 " * An opaque canvas object representing a gradient.", |
| 7 " *", | 7 " *", |
| 8 " * Created by calling [createLinearGradient] or [createRadialGradient]
on a", | 8 " * Created by calling [createLinearGradient] or [createRadialGradient]
on a", |
| 9 " * [CanvasRenderingContext2D] object.", | 9 " * [CanvasRenderingContext2D] object.", |
| 10 " *", | 10 " *", |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 " * To send data on the WebSocket, use the [send] method.", | 356 " * To send data on the WebSocket, use the [send] method.", |
| 357 " *", | 357 " *", |
| 358 " * if (webSocket != null && webSocket.readyState == WebSocket.OPEN)
{", | 358 " * if (webSocket != null && webSocket.readyState == WebSocket.OPEN)
{", |
| 359 " * webSocket.send(data);", | 359 " * webSocket.send(data);", |
| 360 " * } else {", | 360 " * } else {", |
| 361 " * print('WebSocket not connected, message $data not sent');", | 361 " * print('WebSocket not connected, message $data not sent');", |
| 362 " * }", | 362 " * }", |
| 363 " *", | 363 " *", |
| 364 " * To receive data on the WebSocket, register a listener for message ev
ents.", | 364 " * To receive data on the WebSocket, register a listener for message ev
ents.", |
| 365 " *", | 365 " *", |
| 366 " * webSocket.on.message.add((MessageEvent e) {", | 366 " * webSocket.onMessage.listen((MessageEvent e) {", |
| 367 " * receivedData(e.data);", | 367 " * receivedData(e.data);", |
| 368 " * });", | 368 " * });", |
| 369 " *", | 369 " *", |
| 370 " * The message event handler receives a [MessageEvent] object", | 370 " * The message event handler receives a [MessageEvent] object", |
| 371 " * as its sole argument.", | 371 " * as its sole argument.", |
| 372 " * You can also define open, close, and error handlers,", | 372 " * You can also define open, close, and error handlers,", |
| 373 " * as specified by [WebSocketEvents].", | 373 " * as specified by [WebSocketEvents].", |
| 374 " *", | 374 " *", |
| 375 " * For more information, see the", | 375 " * For more information, see the", |
| 376 " * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websock
ets)", | 376 " * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websock
ets)", |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 " *", | 615 " *", |
| 616 " * [oldVersion] should match the database's current [version] exact
ly.", | 616 " * [oldVersion] should match the database's current [version] exact
ly.", |
| 617 " *", | 617 " *", |
| 618 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom
-database-changeversion) from W3C.", | 618 " * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom
-database-changeversion) from W3C.", |
| 619 " */" | 619 " */" |
| 620 ] | 620 ] |
| 621 } | 621 } |
| 622 } | 622 } |
| 623 } | 623 } |
| 624 } | 624 } |
| OLD | NEW |