mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
WIP
WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP
This commit is contained in:
Vendored
+5
-5
@@ -13,12 +13,12 @@ declare enum JavaAppletStatus {
|
||||
* @summary Applet is loading.
|
||||
*/
|
||||
Loading = 1,
|
||||
|
||||
|
||||
/**
|
||||
* @summary Applet has loaded completely and is ready to receive JavaScript calls.
|
||||
*/
|
||||
Ready = 2,
|
||||
|
||||
|
||||
/**
|
||||
* @summary Error while loading applet.
|
||||
*/
|
||||
@@ -36,19 +36,19 @@ interface JavaApplet extends HTMLAppletElement {
|
||||
* @type {Function}
|
||||
*/
|
||||
onError?: Function;
|
||||
|
||||
|
||||
/**
|
||||
* @summary Handler if the applet status is {@link JavaAppletStatus#Ready}. Applet has finished loading and is ready to receive JavaScript calls.
|
||||
* @type {Function}
|
||||
*/
|
||||
onLoad?: Function;
|
||||
|
||||
|
||||
/**
|
||||
* @summary Handler if the applet has stopped.
|
||||
* @type {Function}
|
||||
*/
|
||||
onStop?: Function;
|
||||
|
||||
|
||||
/**
|
||||
* @summary Java applet Status.
|
||||
* @type {JavaAppletStatus}
|
||||
|
||||
@@ -21,7 +21,7 @@ function testStatus() {
|
||||
*/
|
||||
function testHandlers() {
|
||||
var applet: JavaApplet = <JavaApplet>document.getElementById('applet');
|
||||
|
||||
|
||||
var handler: Function = () => {};
|
||||
applet.onError = handler;
|
||||
applet.onLoad = handler;
|
||||
|
||||
Reference in New Issue
Block a user