Change comment to indicate that the override is for whichever hardware button
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/1059bca2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/1059bca2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/1059bca2 Branch: refs/heads/master Commit: 1059bca2ac42567112d5d25fb1bc72dd5c496285 Parents: 81823d6 Author: Josh Soref <jso...@rim.com> Authored: Tue Aug 14 14:56:04 2012 -0400 Committer: Anis Kadri <anis.ka...@gmail.com> Committed: Fri Aug 24 13:50:00 2012 -0700 ---------------------------------------------------------------------- lib/webworks/java/platform.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/1059bca2/lib/webworks/java/platform.js ---------------------------------------------------------------------- diff --git a/lib/webworks/java/platform.js b/lib/webworks/java/platform.js index ebe7fcd..8009d16 100644 --- a/lib/webworks/java/platform.js +++ b/lib/webworks/java/platform.js @@ -46,7 +46,7 @@ module.exports = { var eventHandler = function(event) { return { onSubscribe : function() { // If we just attached the first handler, let native know we - // need to override the back button. + // need to override the hardware button. if (this.numHandlers === 1) { blackberry.system.event.onHardwareKey( buttonMapping[event], fireEvent(event)); @@ -54,7 +54,7 @@ module.exports = { }, onUnsubscribe : function() { // If we just detached the last handler, let native know we - // no longer override the back button. + // no longer override the hardware button. if (this.numHandlers === 0) { blackberry.system.event.onHardwareKey( buttonMapping[event], null);