han-css
Version:
The CSS typography framework optimised for Hanzi
22 lines (17 loc) • 367 B
JavaScript
define([
'../var/root',
'./core'
], function( root, Locale ) {
Locale.initCond = function( target ) {
var target = target || root
var ret = ''
var clazz
for ( var feature in Locale.support ) {
clazz = ( Locale.support[ feature ] ? '' : 'no-' ) + feature
target.classList.add( clazz )
ret += clazz + ' '
}
return ret
}
return Locale
})