Sha256: a1cecc87f9b1d9cf83e2579ae926179395c738139e771ac2261c7fe0c395faa4
Contents?: true
Size: 856 Bytes
Versions: 73
Compression:
Stored size: 856 Bytes
Contents
I"L(function() { Rev.registerMixin('Visibility', { _visibilityRewriteClassName: function(props) { var classes; classes = {}; ['showFor', 'hideFor', 'visibleFor', 'hiddenFor'].forEach(function(propName) { if (this.props[propName] != null) { return this.props[propName].split(' ').forEach(function(sizeName) { var className; className = (_.str.dasherize(propName)) + "-" + (_.str.dasherize(sizeName)); return classes[className] = true; }); } }); return this.props.className = this.classAdd(classes); }, componentWillMount: function() { return this._visibilityRewriteClassName(this.props); }, componentWillReceiveProps: function(props) { return this._visibilityRewriteClassName(props); } }); }).call(this); :ET
Version data entries
73 entries across 52 versions & 2 rubygems