From 84b36a71939cfc6c673f0fd3fec079ca7e23df6c Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 11 Nov 2014 11:46:46 +0100 Subject: retabed files --- lib/qt.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'lib/qt.js') diff --git a/lib/qt.js b/lib/qt.js index 7ec548c8c..f02239547 100644 --- a/lib/qt.js +++ b/lib/qt.js @@ -16,29 +16,30 @@ */ /** @file qt.js * @authors: + * Jeffrey Wilcke * Marek Kotewicz * @date 2014 */ - var QtProvider = function() { - this.handlers = []; +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 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; -- cgit v1.2.3