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

Version Path
revelry_core-0.1.12.4 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.12.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.11.6 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.11.5 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.11.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.11.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.11.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.10.7 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.10.6 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.10.5 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.10.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache
revelry_core-0.1.10.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hYb6soHR939QDaNuDHGckk1JAj4tiQTPd9q2PCauNFY.cache