Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid an unnecessary intermediate variable.

  • Loading branch information...
commit aeddf4e3853d3ff7c8b4f706e499c2506be912a6 1 parent 4e9c0c0
@dnschnur dnschnur authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 jquery.flot.js
View
10 jquery.flot.js
@@ -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(""));
});
///////////////////////////////////////////////////////////////////////////
Please sign in to comment.
Something went wrong with that request. Please try again.