From 5a94b38e2fc25894265d239cbe6b0b2b5e8085d3 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 10 Sep 2012 14:59:10 -0400 Subject: [PATCH] Spelling (en-us): behavior [slightly more instances of this spelling than the British] --- framework/src/org/apache/cordova/AudioPlayer.java | 2 +- framework/src/org/apache/cordova/CordovaWebView.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/src/org/apache/cordova/AudioPlayer.java b/framework/src/org/apache/cordova/AudioPlayer.java index e8ea1d3c..c0d6b932 100644 --- a/framework/src/org/apache/cordova/AudioPlayer.java +++ b/framework/src/org/apache/cordova/AudioPlayer.java @@ -410,7 +410,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On */ private void setMode(MODE mode) { if (this.mode != mode) { - //mode is not part of the expected behaviour, so no notification + //mode is not part of the expected behavior, so no notification //this.handler.sendJavascript("cordova.require('cordova/plugin/Media').onStatus('" + this.id + "', " + MEDIA_STATE + ", " + mode + ");"); } this.mode = mode; diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index 66ffd4b4..d6a75b47 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -731,7 +731,7 @@ public class CordovaWebView extends WebView { if(keyDownCodes.contains(keyCode)) { if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { - // only override default behaviour is event bound + // only override default behavior is event bound LOG.d(TAG, "Down Key Hit"); this.loadUrl("javascript:cordova.fireDocumentEvent('volumedownbutton');"); return true; @@ -766,7 +766,7 @@ public class CordovaWebView extends WebView { if (this.backHistory()) { return true; } - // If not, then invoke default behaviour + // If not, then invoke default behavior else { //this.activityState = ACTIVITY_EXITING; return false; @@ -789,7 +789,7 @@ public class CordovaWebView extends WebView { return super.onKeyUp(keyCode, event); } - //Does webkit change this behaviour? + //Does webkit change this behavior? return super.onKeyUp(keyCode, event); }