Sha256: 18d417b8e51060f52b2669b5111959ab6f02557cb9cba036d3092efe4836c1a3
Contents?: true
Size: 1.33 KB
Versions: 12
Compression:
Stored size: 1.33 KB
Contents
I"C(function() { Rev.registerMixin('GridColumn', { _gridColumnBooleanClassProps: ["end", "smallCentered", "mediumCentered", "largeCentered", "smallUncentered", "mediumUncentered", "largeUncentered"], _gridColumnNumericClassProps: ["small", "smallOffset", "smallPush", "smallPull", "medium", "mediumOffset", "mediumPush", "mediumPull", "large", "largeOffset", "largePush", "largePull"], _gridColumnRewriteClassName: function(props) { var classes, i, j, len, len1, name, ref, ref1; classes = { columns: true }; ref = this._gridColumnBooleanClassProps; for (i = 0, len = ref.length; i < len; i++) { name = ref[i]; if (props[name] != null) { classes[_.str.dasherize(name)] = props[name]; } } ref1 = this._gridColumnNumericClassProps; for (j = 0, len1 = ref1.length; j < len1; j++) { name = ref1[j]; if (props[name] != null) { classes[(_.str.dasherize(name)) + "-" + props[name]] = true; } } return this.classAdd(classes); }, componentWillMount: function() { return this.props.className = this._gridColumnRewriteClassName(this.props); }, componentWillReceiveProps: function(props) { return props.className = this._gridColumnRewriteClassName(props); } }); }).call(this); :ET
Version data entries
12 entries across 12 versions & 1 rubygems