Commit 48726b71 by Diana Huang

Make safe-linter happy.

parent 3cca6046
......@@ -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;
},
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment