Sha256: 40ebb8b43c08a9c6bd534c5c94b7e7b9f23f06d1044d567a2c16f8e5a6238d2b
Contents?: true
Size: 539 Bytes
Versions: 80
Compression:
Stored size: 539 Bytes
Contents
/** * Properties to ignore appending "px". */ var ignore = { columnCount: true, fillOpacity: true, fontWeight: true, lineHeight: true, opacity: true, orphans: true, widows: true, zIndex: true, zoom: true }; /** * Set `el` css values. * * @param {Element} el * @param {Object} obj * @return {Element} * @api public */ module.exports = function(el, obj){ for (var key in obj) { var val = obj[key]; if ('number' == typeof val && !ignore[key]) val += 'px'; el.style[key] = val; } return el; };
Version data entries
80 entries across 80 versions & 1 rubygems