Sha256: 0a035420df2279295c384cb480dd9bb034aec0bb6e222377f29f309d0c556a9c

Contents?: true

Size: 1.81 KB

Versions: 16

Compression:

Stored size: 1.81 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 name, props, skipList, value, _i, _len, _ref;
      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, name, object, _i, _len;
      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

16 entries across 16 versions & 1 rubygems

Version Path
revelry_core-0.1.6.8 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.7 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.6 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.5 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.4 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.3 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.2 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.6.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.5 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.4 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.3 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.2 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.1.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache
revelry_core-0.0.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/zN8bhFAgTmzKX3NnIDFr_SIkC_Ea3fBHaInNsPT-mnI.cache