[extensions-web] switch.js: Make JSLint happy
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] switch.js: Make JSLint happy
- Date: Sat, 31 Mar 2012 20:49:00 +0000 (UTC)
commit 2a6736c8825d7cf048a8177032f72ec85844a42e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 30 23:13:52 2012 -0400
switch.js: Make JSLint happy
sweettooth/static/js/switch.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/static/js/switch.js b/sweettooth/static/js/switch.js
index ff60a18..e4ccb37 100644
--- a/sweettooth/static/js/switch.js
+++ b/sweettooth/static/js/switch.js
@@ -4,10 +4,10 @@ define(['jquery'], function($) {
"use strict";
function getSides($elem, $slider) {
- var bl = parseInt($elem.css('borderLeftWidth')) + parseInt($slider.css('borderLeftWidth'));
- var br = parseInt($elem.css('borderRightWidth')) + parseInt($slider.css('borderRightWidth'));
+ var bl = parseInt($elem.css('borderLeftWidth'), 10) + parseInt($slider.css('borderLeftWidth'), 10);
+ var br = parseInt($elem.css('borderRightWidth'), 10) + parseInt($slider.css('borderRightWidth'), 10);
var left = -bl + 1;
- var right = $elem.innerWidth() - $slider.innerWidth() - parseInt($elem.css('borderRightWidth'));
+ var right = $elem.innerWidth() - $slider.innerWidth() - parseInt($elem.css('borderRightWidth'), 10);
var center = right / 2 + left;
return {left: left, right: right, center: center};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]