Permalink
Browse files

Avoid an unnecessary intermediate variable.

  • Loading branch information...
dnschnur committed Mar 11, 2013
1 parent 4e9c0c0 commit aeddf4e3853d3ff7c8b4f706e499c2506be912a6
Showing with 5 additions and 5 deletions.
  1. +5 −5 jquery.flot.js
View
@@ -40,12 +40,12 @@ Licensed under the MIT license.
// Add default styles for tick labels and other text
- var STYLES = [
- ".flot-tick-label {font-size:smaller;color:#545454;}"
- ];
-
$(function() {
- $("head").prepend("<style id='flot-default-styles'>" + STYLES.join("") + "</style>");
+ $("head").prepend([
+ "<style id='flot-default-styles'>",
+ ".flot-tick-label {font-size:smaller;color:#545454;}",
+ "</style>"
+ ].join(""));
});
///////////////////////////////////////////////////////////////////////////

0 comments on commit aeddf4e

Please sign in to comment.