Make safe-linter happy.

This commit is contained in:
Diana Huang
2016-06-29 16:15:23 -04:00
parent 3cca6046fa
commit 48726b71de
2 changed files with 6 additions and 6 deletions

View File

@@ -150,18 +150,18 @@
// @TODO move into utils.coffee
getNameWidth: function(name) {
var test = $('<div>'),
var $test = $('<div>'),
width;
test.css({
$test.css({
'font-size': this.dropdownButton.css('font-size'),
'opacity': 0,
'position': 'absolute',
'left': -1000,
'top': -1000
}).html(name).appendTo(document.body);
width = test.width();
test.remove();
width = $test.width();
$test.remove();
return width;
},

View File

@@ -4,8 +4,8 @@
"javascript-escape": 7,
"javascript-interpolate": 49,
"javascript-jquery-append": 104,
"javascript-jquery-html": 276,
"javascript-jquery-insert-into-target": 27,
"javascript-jquery-html": 277,
"javascript-jquery-insert-into-target": 28,
"javascript-jquery-insertion": 26,
"javascript-jquery-prepend": 11,
"mako-html-entities": 0,