Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E7C55200CD4 for ; Sat, 15 Jul 2017 00:57:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E621316EAEF; Fri, 14 Jul 2017 22:57:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 61B0016EAEB for ; Sat, 15 Jul 2017 00:57:42 +0200 (CEST) Received: (qmail 617 invoked by uid 500); 14 Jul 2017 22:57:41 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 608 invoked by uid 99); 14 Jul 2017 22:57:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2017 22:57:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4AADBE967F; Fri, 14 Jul 2017 22:57:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: audreyso@apache.org To: commits@cordova.apache.org Date: Fri, 14 Jul 2017 22:57:41 -0000 Message-Id: <961f53abfca549f79635911e8b1284c9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/7] cordova-windows git commit: CB-12895 : setup eslint and removed jshint archived-at: Fri, 14 Jul 2017 22:57:43 -0000 Repository: cordova-windows Updated Branches: refs/heads/master 1c00f0483 -> a86922382 http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/a8692238/template/www/js/index.js ---------------------------------------------------------------------- diff --git a/template/www/js/index.js b/template/www/js/index.js index c31cd83..f6d6793 100644 --- a/template/www/js/index.js +++ b/template/www/js/index.js @@ -18,25 +18,25 @@ */ var app = { // Application Constructor - initialize: function() { + initialize: function () { this.bindEvents(); }, // Bind Event Listeners // // Bind any events that are required on startup. Common events are: // 'load', 'deviceready', 'offline', and 'online'. - bindEvents: function() { + bindEvents: function () { document.addEventListener('deviceready', this.onDeviceReady, false); }, // deviceready Event Handler // // The scope of 'this' is the event. In order to call the 'receivedEvent' // function, we must explicitly call 'app.receivedEvent(...);' - onDeviceReady: function() { + onDeviceReady: function () { app.receivedEvent('deviceready'); }, // Update DOM on a Received Event - receivedEvent: function(id) { + receivedEvent: function (id) { var parentElement = document.getElementById(id); var listeningElement = parentElement.querySelector('.listening'); var receivedElement = parentElement.querySelector('.received'); @@ -48,4 +48,4 @@ var app = { } }; -app.initialize(); \ No newline at end of file +app.initialize(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org