aboutsummaryrefslogtreecommitdiffstats
path: root/lib/qt.js
diff options
context:
space:
mode:
authorMarian Oancea <contact@siteshop.ro>2014-11-06 01:52:52 +0800
committerMarian Oancea <contact@siteshop.ro>2014-11-06 01:52:52 +0800
commit15088d7ebe606ce6510aee0a8315ed175f1770b0 (patch)
treeedc70bc1c3b2337df7f4125fd39215279575d06f /lib/qt.js
parent4be4db5e6cfdde4ba5c1243b2bafeb6bbae3643c (diff)
downloadgo-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.tar
go-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.tar.gz
go-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.tar.bz2
go-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.tar.lz
go-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.tar.xz
go-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.tar.zst
go-tangerine-15088d7ebe606ce6510aee0a8315ed175f1770b0.zip
Fixed indent
Fixed indent so we can compare differences in PR.
Diffstat (limited to 'lib/qt.js')
-rw-r--r--lib/qt.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/qt.js b/lib/qt.js
index 145a1d52d..7ec548c8c 100644
--- a/lib/qt.js
+++ b/lib/qt.js
@@ -20,25 +20,25 @@
* @date 2014
*/
-var QtProvider = function() {
- this.handlers = [];
-
- var self = this;
- navigator.qt.onmessage = function (message) {
- self.handlers.forEach(function (handler) {
- handler.call(self, JSON.parse(message.data));
- });
+ var QtProvider = function() {
+ this.handlers = [];
+
+ var self = this;
+ navigator.qt.onmessage = function (message) {
+ self.handlers.forEach(function (handler) {
+ handler.call(self, JSON.parse(message.data));
+ });
+ };
};
-};
-QtProvider.prototype.send = function(payload) {
- navigator.qt.postMessage(JSON.stringify(payload));
-};
+ QtProvider.prototype.send = function(payload) {
+ navigator.qt.postMessage(JSON.stringify(payload));
+ };
-Object.defineProperty(QtProvider.prototype, "onmessage", {
- set: function(handler) {
- this.handlers.push(handler);
- }
-});
+ Object.defineProperty(QtProvider.prototype, "onmessage", {
+ set: function(handler) {
+ this.handlers.push(handler);
+ }
+ });
module.exports = QtProvider;