You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:26 UTC
[06/17] git commit: Doc update: event name and example param (closes
#31)
Doc update: event name and example param (closes #31)
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/9399ed39
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/9399ed39
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/9399ed39
Branch: refs/heads/master
Commit: 9399ed39559d94c51567b226a8bf2cfb390de15c
Parents: 749d55c
Author: Rocco Georgi <ro...@pavingways.com>
Authored: Sun Mar 23 00:04:24 2014 +0100
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Mar 24 15:42:53 2014 -0700
----------------------------------------------------------------------
doc/index.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/9399ed39/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index e82b29b..5201927 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -56,7 +56,7 @@ instance, or the system browser.
Android only:
- __closebuttoncaption__: set to a string to use as the __Done__ button's caption.
- - __hidden__: set to `yes` to create the browser and load the page, but not show it. The load event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
+ - __hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
- __clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened
- __clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened
@@ -64,7 +64,7 @@ instance, or the system browser.
- __closebuttoncaption__: set to a string to use as the __Done__ button's caption. Note that you need to localize this value yourself.
- __disallowoverscroll__: Set to `yes` or `no` (default is `no`). Turns on/off the UIWebViewBounce property.
- - __hidden__: set to `yes` to create the browser and load the page, but not show it. The load event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
+ - __hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
- __toolbar__: set to `yes` or `no` to turn the toolbar on or off for the InAppBrowser (defaults to `yes`)
- __enableViewportScale__: Set to `yes` or `no` to prevent viewport scaling through a meta tag (defaults to `no`).
- __mediaPlaybackRequiresUserAction__: Set to `yes` or `no` to prevent HTML5 audio or video from autoplaying (defaults to `no`).
@@ -139,7 +139,7 @@ The object returned from a call to `window.open`.
### Quick Example
var ref = window.open('http://apache.org', '_blank', 'location=yes');
- ref.addEventListener('loadstart', function() { alert(event.url); });
+ ref.addEventListener('loadstart', function(event) { alert(event.url); });
## removeEventListener
@@ -169,7 +169,7 @@ The function is passed an `InAppBrowserEvent` object.
### Quick Example
var ref = window.open('http://apache.org', '_blank', 'location=yes');
- var myCallback = function() { alert(event.url); }
+ var myCallback = function(event) { alert(event.url); }
ref.addEventListener('loadstart', myCallback);
ref.removeEventListener('loadstart', myCallback);