[geary/bug/728002-webkit2: 96/140] Remove use of underscores in client-web-view.js var names.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/bug/728002-webkit2: 96/140] Remove use of underscores in client-web-view.js var names.
- Date: Tue, 31 Jan 2017 23:06:36 +0000 (UTC)
commit 617dd45393b073433d1809ee247b2d1824cc2f33
Author: Michael James Gratton <mike vee net>
Date: Tue Jan 17 23:40:40 2017 +1100
Remove use of underscores in client-web-view.js var names.
ui/client-web-view.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ui/client-web-view.js b/ui/client-web-view.js
index 879ac44..eb87c2f 100644
--- a/ui/client-web-view.js
+++ b/ui/client-web-view.js
@@ -15,12 +15,12 @@ let PageState = function() {
PageState.prototype = {
init: function() {
this.allowRemoteImages = false;
- this.is_loaded = false;
+ this.isLoaded = false;
let state = this;
let timeoutId = window.setInterval(function() {
state.preferredHeightChanged();
- if (state.is_loaded) {
+ if (state.isLoaded) {
window.clearTimeout(timeoutId);
}
}, 50);
@@ -29,7 +29,7 @@ PageState.prototype = {
return window.document.documentElement.offsetHeight;
},
loaded: function() {
- this.is_loaded = true;
+ this.isLoaded = true;
},
loadRemoteImages: function() {
this.allowRemoteImages = true;
@@ -53,7 +53,7 @@ PageState.prototype = {
}
},
selectionChanged: function() {
- let has_selection = !window.getSelection().isCollapsed;
- window.webkit.messageHandlers.selectionChanged.postMessage(has_selection);
+ let hasSelection = !window.getSelection().isCollapsed;
+ window.webkit.messageHandlers.selectionChanged.postMessage(hasSelection);
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]