Sha256: ddff8f557d2433e627b4e8a069625874ca33725d4b8dbe458183481910589b9c

Contents?: true

Size: 1.98 KB

Versions: 32

Compression:

Stored size: 1.98 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"$revelry/mixins/BackboneProps.js;FI"
pathname;TI"c/Users/joel/src/revelreact_rails/app/assets/javascripts/revelry/mixins/BackboneProps.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+>Š1UI"length;Ti£I"digest;TI"%c2a7ed9ea0b3ec3468c51c4894c29049;FI"source;TI"£(function() {
  Rev.registerMixin('BackboneProps', {
    componentWillMount: function() {
      return this.backbonify(this.props);
    },
    componentWillReceiveProps: function(nextProps) {
      return this.backbonify(nextProps);
    },
    backbonify: function(props) {
      var data, klass, name, _results;
      this.__bb = [];
      _results = [];
      for (name in this.backboneMap) {
        data = props[name];
        if ((data != null) && (data != null) && !(data instanceof Backbone.Model || data instanceof Backbone.Collection)) {
          klass = this.backboneMap[name];
          props[name] = new klass(data);
        }
        _results.push(this.__bb.push(props[name]));
      }
      return _results;
    },
    componentDidMount: function() {
      return _.each(this.__bb, (function(_this) {
        return function(model) {
          return model.on('all', _this.forceUpdate.bind(_this, null), _this);
        };
      })(this));
    },
    componentWillUnmount: function() {
      return _.each(this.__bb, (function(_this) {
        return function(model) {
          return model.off(null, null, _this);
        };
      })(this));
    }
  });

}).call(this);
;TI"dependency_digest;TI"%b32e33e92d30c7469c9658adee06bace;FI"required_paths;T[I"c/Users/joel/src/revelreact_rails/app/assets/javascripts/revelry/mixins/BackboneProps.js.coffee;FI"dependency_paths;T[{I"	path;TI"c/Users/joel/src/revelreact_rails/app/assets/javascripts/revelry/mixins/BackboneProps.js.coffee;FI"
mtime;TI"2015-04-17T17:33:34-05:00;TI"digest;TI"%e80906d071c0eff5c1b69ed637c46d1f;FI"
_version;TI"%7015acab0e7ee10d673b8d49cecfb54b;F

Version data entries

32 entries across 16 versions & 1 rubygems

Version Path
revelry_core-0.1.6.8 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.8 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.7 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.7 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.6 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.6 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.5 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.5 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.4 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.4 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.3 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.3 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.2 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.6.2 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.1 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.6.1 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.5 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.5 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041
revelry_core-0.1.4 test/dummy/tmp/cache/assets/development/sprockets/cfcb99a7de3d2b8161741c869469a734
revelry_core-0.1.4 test/dummy/tmp/cache/assets/development/sprockets/181250178032efdd367c37ddbd573041