classPrefix is not applied to first feature #1053

Closed
anasnakawa opened this Issue Oct 5, 2013 · 1 comment

Projects

None yet

2 participants

@anasnakawa

I am using Modernizr v3.0.0pre, with a custom config-all.json file as follows,

{
  "classPrefix" : "libname-",
  "options": [
    "setClasses"
  ],
  "feature-detects": [
    "test/css/animations",
    "test/css/borderimage",
    "test/css/gradients",
    "test/css/hsla",
    "test/css/mediaqueries",
    "test/css/rgba",
    "test/css/transforms",
    "test/css/transforms3d",
    "test/css/transitions",
    "test/touchevents"
  ]
}

but when i load the page, i got those classes on html element where classPrefix is applied to all features except the first one..

<html lang="en" class=" cssanimations libname-borderimage libname-cssgradients libname-hsla libname-mediaqueries libname-rgba libname-csstransforms libname-csstransforms3d libname-csstransitions libname-no-touchevents">
@ryanseddon ryanseddon closed this in 6aef0c9 Oct 7, 2013
@ryanseddon
Member

Sweet thanks @anasnakawa that will work correctly now

@patrickkettner patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this issue Feb 22, 2015
@ryanseddon ryanseddon Make sure all classnames get classPrefix if passed in config file. Fi…
…xes #1053
f7d8649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment