Skip to content

Commit

Permalink
update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alexslade committed Mar 11, 2013
1 parent e75bd9b commit 239bddd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/setClasses.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ define(['Modernizr', 'docElement', 'classes'], function( Modernizr, docElement,
// if you'd like to change the classe on
// something other than the html element.
function setClasses( elem ) {
var theElem = elem || docElement;

var features = classes.concat('js')
var featurePattern = new RegExp('(^|\\s)no-(' + features.join('|') + ')(\\s|$)', 'g')
var theElem = elem || docElement,
features = classes.concat('js'),
featurePattern = new RegExp('(^|\\s)no-(' + features.join('|') + ')(\\s|$)', 'g')

theElem.className =
// Remove relevant 'no-<feature>' classes
Expand Down

0 comments on commit 239bddd

Please sign in to comment.