Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2813 from vingtetun/master

Fix linting errors.
  • Loading branch information...
commit b99e06a4607b51751937719e102d5f45345de54a 2 parents 5353287 + 69dfd6e
vingtetun authored
4 apps/contacts/js/contacts.js
View
@@ -867,8 +867,8 @@ var Contacts = (function() {
var countryName = document.getElementById(selector).value || '';
// Sanity check for pameters, check all params but the typeField
- if (addressValue == '' && locality == '' && postalCode == ''
- && countryName == '') {
+ if (addressValue == '' && locality == '' &&
+ postalCode == '' && countryName == '') {
continue;
}
2  apps/dialer/js/keypad.js
View
@@ -216,7 +216,7 @@ var KeypadManager = {
data: {
type: 'webcontacts/contact',
params: {
- 'tel': number,
+ 'tel': number
}
}
});
4 apps/homescreen/js/grid.js
View
@@ -151,8 +151,8 @@ const GridManager = (function() {
} else {
var currentPageContainer = pageHelper.getCurrent().container;
- currentPageContainer.addEventListener('transitionend', function tr_end(e) {
- currentPageContainer.removeEventListener('transitionend', tr_end);
+ currentPageContainer.addEventListener('transitionend', function end(e) {
+ currentPageContainer.removeEventListener('transitionend', end);
delete document.body.dataset.transitioning;
callback();
Search.resetIcon();
2  apps/homescreen/js/page.js
View
@@ -463,7 +463,7 @@ Page.prototype = {
},
/*
- * Movement feedback
+ * Movement feedback
*/
bounce: function pg_bounce(direction) {
var container = this.container;
4 apps/system/js/attention_screen.js
View
@@ -108,10 +108,10 @@ var AttentionScreen = {
// The user is hiding the attention screen to use the phone we better
// not turn the sreen off when the attention screen is closed.
this._screenInitiallyDisabled = false;
-
+
this.dispatchEvent('status-active');
this.mainScreen.classList.add('active-statusbar');
-
+
var attentionScreen = this.attentionScreen;
attentionScreen.addEventListener('transitionend', function trWait() {
attentionScreen.removeEventListener('transitionend', trWait);
10 apps/system/js/hardware_buttons.js
View
@@ -44,9 +44,9 @@
// to respond to it and prevent others from responding should call
// stopImmediatePropagation(). Overlays that want to prevent the window
// manager from showing the homescreen on the home event should call that
-// method. Note, however, that this only works for scripts that run and
+// method. Note, however, that this only works for scripts that run and
// register their event handlers before window_manager.js does.
-//
+//
'use strict';
(function() {
@@ -99,7 +99,7 @@
process: function(type) {
switch (type) {
case 'home-button-press':
- // If the phone is sleeping, then pressing Home wakes it
+ // If the phone is sleeping, then pressing Home wakes it
// (on press, not release)
if (!ScreenManager.screenEnabled) {
fire('wake');
@@ -109,7 +109,7 @@
}
return;
case 'sleep-button-press':
- // If the phone is sleeping, then pressing Sleep wakes it
+ // If the phone is sleeping, then pressing Sleep wakes it
// (on press, not release)
if (!ScreenManager.screenEnabled) {
fire('wake');
@@ -271,7 +271,7 @@
// We enter this state when the user presses Home or Sleep on a sleeping
// phone. We give immediate feedback by waking the phone up on the press
// rather than waiting for the release, but this means we need a special
- // state so that we don't actually send a home or sleep event on the
+ // state so that we don't actually send a home or sleep event on the
// key release. Note, however, that this state does set a timer so that
// it can send holdhome or holdsleep events. (This means that pressing and
// holding sleep will bring up the power menu, even on a sleeping phone.)
2  apps/system/js/window_manager.js
View
@@ -707,7 +707,7 @@ var WindowManager = (function() {
window.addEventListener('home', function(e) {
// If the lockscreen is active, it will stop propagation on this event
- // and we'll never see it here. Similarly, other overlays may use this
+ // and we'll never see it here. Similarly, other overlays may use this
// event to hide themselves and may prevent the event from getting here.
// Note that for this to work, the lockscreen and other overlays must
// be included in index.html before this one, so they can register their
Please sign in to comment.
Something went wrong with that request. Please try again.