Skip to content

Commit

Permalink
Bug fix: the backbutton event listener does not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
wf9a5m75 committed Aug 24, 2017
1 parent 4efe81f commit e66cd25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170823-1850" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170823-2235" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />
Expand Down
2 changes: 2 additions & 0 deletions www/googlemaps-cdv-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ if (!cordova) {
anotherBackbuttonHandler();
}
}
document.addEventListener("backbutton", onBackButton);

var _org_addEventListener = document.addEventListener;
var _org_removeEventListener = document.removeEventListener;
document.addEventListener = function(eventName, callback) {
Expand Down

0 comments on commit e66cd25

Please sign in to comment.