Sha256: 24220fe43cf7f30e3d723272a1fc12e9aa4df23c0585ee13ffa3ef82fb8fa3b7

Contents?: true

Size: 438 Bytes

Versions: 15

Compression:

Stored size: 438 Bytes

Contents

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
backbone_extensions-0.0.23 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.22 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.21 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.20 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.19 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.18 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.17 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.16 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.15 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.14 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.13 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.12 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.11 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.10 lib/assets/javascripts/backbone_extensions/include.js
backbone_extensions-0.0.9 lib/assets/javascripts/backbone_extensions/include.js