cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [1/2] docs commit: Fixed RemoveEventListener Full Example
Date Mon, 04 Nov 2013 17:15:39 GMT
Updated Branches:
  refs/heads/master 52f2bb6d8 -> d93fbc385


Fixed RemoveEventListener Full Example

addEventListener() should be called onDeviceReady() instead of removeEventListener().


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/c5cb1d97
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/c5cb1d97
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/c5cb1d97

Branch: refs/heads/master
Commit: c5cb1d977d291957a67b48796bbe138dee027483
Parents: 52f2bb6
Author: Nikhil Patel <niks999@gmail.com>
Authored: Mon Nov 4 12:15:44 2013 +0530
Committer: Michael Brooks <michael@michaelbrooks.ca>
Committed: Mon Nov 4 09:12:51 2013 -0800

----------------------------------------------------------------------
 docs/en/3.1.0/cordova/inappbrowser/inappbrowser.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/c5cb1d97/docs/en/3.1.0/cordova/inappbrowser/inappbrowser.md
----------------------------------------------------------------------
diff --git a/docs/en/3.1.0/cordova/inappbrowser/inappbrowser.md b/docs/en/3.1.0/cordova/inappbrowser/inappbrowser.md
index abf06a1..3dbeab6 100644
--- a/docs/en/3.1.0/cordova/inappbrowser/inappbrowser.md
+++ b/docs/en/3.1.0/cordova/inappbrowser/inappbrowser.md
@@ -206,7 +206,7 @@ The function is passed an `InAppBrowserEvent` object.
              iabRef = window.open('http://apache.org', '_blank', 'location=yes');
              iabRef.addEventListener('loadstart', iabLoadStart);
              iabRef.addEventListener('loadstop', iabLoadStop);
-             iabRef.removeEventListener('loaderror', iabLoadError);
+             iabRef.addEventListener('loaderror', iabLoadError);
              iabRef.addEventListener('exit', iabClose);
         }
 


Mime
View raw message