Sha256: 3913593212c1e0fc9077f1ba238b7095fc4082f3df871bf71cd71028a0ee70ef

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

(function() {
  'use strict';
  var exports = this, _ = exports._, Backbone = exports.Backbone;
  var include = {
    include: function() {
      var self = this;
      _.chain(arguments).toArray().each(function(module) {
        if (module && module.included && _.isFunction(module.included)) {
          module.included(self);
        }
      });
      return this;
    }
  };

  Backbone.extensions = _.extend(Backbone.extensions || {}, {include: include});
}).call(this);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
backbone_extensions-0.0.26 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.25 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.24 lib/assets/javascripts/backbone_extensions/include.js