Sha256: ec74a86efb9ca9a3ca2d456bcc08005d296f83867a38750aa6c07efc0ee7195c

Contents?: true

Size: 1.79 KB

Versions: 57

Compression:

Stored size: 1.79 KB

Contents

I"(function() {
  Rev.registerMixin('Core', {
    cx: React.addons.classSet,
    suitSet: function(base, flags) {
      var classes, key, value;
      classes = {};
      classes[base] = true;
      for (key in flags) {
        value = flags[key];
        classes[base + "--" + key] = value;
      }
      return this.cx(classes);
    },
    getPropsWithout: function() {
      var i, len, name, props, ref, skipList, value;
      skipList = {};
      for (i = 0, len = arguments.length; i < len; i++) {
        name = arguments[i];
        skipList[name] = true;
      }
      props = {};
      ref = this.props;
      for (name in ref) {
        value = ref[name];
        if (!skipList[name]) {
          props[name] = value;
        }
      }
      return props;
    },
    _getClassSetObject: function() {
      var classNames, i, len, name, object;
      if (!this.props.className) {
        return {};
      }
      classNames = this.props.className.split(' ');
      object = {};
      for (i = 0, len = classNames.length; i < len; i++) {
        name = classNames[i];
        object[name] = true;
      }
      return object;
    },
    classAdd: function(classToBoolMap) {
      var name, newClassToBoolMap, value;
      newClassToBoolMap = this._getClassSetObject();
      for (name in classToBoolMap) {
        value = classToBoolMap[name];
        newClassToBoolMap[name] = value;
      }
      return React.addons.classSet(newClassToBoolMap);
    },
    classSet: React.addons.classSet,
    cx: function() {
      return this.classSet.apply(this, arguments);
    },
    getNormalizedChildren: function() {
      var children;
      children = this.props.children;
      if ((children != null) && !children.length) {
        children = [children];
      }
      return children;
    }
  });

}).call(this);
:ET

Version data entries

57 entries across 52 versions & 2 rubygems

Version Path
revelry_data-0.0.15 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.1.5 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.1.4 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.14 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.8.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.13 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.1.3 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.12 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.1.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.1.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.10 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.8 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_core-0.1.12.4 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_core-0.1.12.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_data-0.0.7 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_core-0.1.11.6 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_core-0.1.11.5 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_core-0.1.11.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache
revelry_core-0.1.11.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eQOSchBZen82FDyaKaU0WjLqXjcP8kf0omlXglge9lM.cache