backbone.babysitter
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "backbone.babysitter", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/marionettejs/backbone.babysitter", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "backbone.babysitter", | ||
"description": "Manage child views in a Backbone.View", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"repo": "marionettejs/backbone.babysitter", | ||
"main": "lib/amd/backbone.babysitter.js", | ||
"main": "lib/backbone.babysitter.js", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "backbone", |
// Backbone.BabySitter | ||
// ------------------- | ||
// v0.1.2 | ||
// v0.1.3 | ||
// | ||
@@ -180,3 +180,3 @@ // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. | ||
Backbone.ChildViewContainer.VERSION = '0.1.2'; | ||
Backbone.ChildViewContainer.VERSION = '0.1.3'; | ||
@@ -183,0 +183,0 @@ Backbone.ChildViewContainer.noConflict = function () { |
// Backbone.BabySitter | ||
// ------------------- | ||
// v0.1.2 | ||
// v0.1.3 | ||
// | ||
@@ -10,3 +10,3 @@ // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC. | ||
(function(i,e){if("function"==typeof define&&define.amd)define(["exports","backbone","underscore"],function(i,t,n){return e(t,n)});else if("undefined"!=typeof exports){var t=require("backbone"),n=require("underscore");module.exports=e(t,n)}else e(i.Backbone,i._)})(this,function(i,e){"use strict";var t=i.ChildViewContainer;return i.ChildViewContainer=function(i,e){var t=function(i){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(i,this.add,this)};e.extend(t.prototype,{add:function(i,e){var t=i.cid;return this._views[t]=i,i.model&&(this._indexByModel[i.model.cid]=t),e&&(this._indexByCustom[e]=t),this._updateLength(),this},findByModel:function(i){return this.findByModelCid(i.cid)},findByModelCid:function(i){var e=this._indexByModel[i];return this.findByCid(e)},findByCustom:function(i){var e=this._indexByCustom[i];return this.findByCid(e)},findByIndex:function(i){return e.values(this._views)[i]},findByCid:function(i){return this._views[i]},remove:function(i){var t=i.cid;return i.model&&delete this._indexByModel[i.model.cid],e.any(this._indexByCustom,function(i,e){return i===t?(delete this._indexByCustom[e],!0):void 0},this),delete this._views[t],this._updateLength(),this},call:function(i){this.apply(i,e.tail(arguments))},apply:function(i,t){e.each(this._views,function(n){e.isFunction(n[i])&&n[i].apply(n,t||[])})},_updateLength:function(){this.length=e.size(this._views)}});var n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return e.each(n,function(i){t.prototype[i]=function(){var t=e.values(this._views),n=[t].concat(e.toArray(arguments));return e[i].apply(e,n)}}),t}(i,e),i.ChildViewContainer.VERSION="0.1.2",i.ChildViewContainer.noConflict=function(){return i.ChildViewContainer=t,this},i.ChildViewContainer}); | ||
(function(i,e){if("function"==typeof define&&define.amd)define(["exports","backbone","underscore"],function(i,t,n){return e(t,n)});else if("undefined"!=typeof exports){var t=require("backbone"),n=require("underscore");module.exports=e(t,n)}else e(i.Backbone,i._)})(this,function(i,e){"use strict";var t=i.ChildViewContainer;return i.ChildViewContainer=function(i,e){var t=function(i){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(i,this.add,this)};e.extend(t.prototype,{add:function(i,e){var t=i.cid;return this._views[t]=i,i.model&&(this._indexByModel[i.model.cid]=t),e&&(this._indexByCustom[e]=t),this._updateLength(),this},findByModel:function(i){return this.findByModelCid(i.cid)},findByModelCid:function(i){var e=this._indexByModel[i];return this.findByCid(e)},findByCustom:function(i){var e=this._indexByCustom[i];return this.findByCid(e)},findByIndex:function(i){return e.values(this._views)[i]},findByCid:function(i){return this._views[i]},remove:function(i){var t=i.cid;return i.model&&delete this._indexByModel[i.model.cid],e.any(this._indexByCustom,function(i,e){return i===t?(delete this._indexByCustom[e],!0):void 0},this),delete this._views[t],this._updateLength(),this},call:function(i){this.apply(i,e.tail(arguments))},apply:function(i,t){e.each(this._views,function(n){e.isFunction(n[i])&&n[i].apply(n,t||[])})},_updateLength:function(){this.length=e.size(this._views)}});var n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return e.each(n,function(i){t.prototype[i]=function(){var t=e.values(this._views),n=[t].concat(e.toArray(arguments));return e[i].apply(e,n)}}),t}(i,e),i.ChildViewContainer.VERSION="0.1.3",i.ChildViewContainer.noConflict=function(){return i.ChildViewContainer=t,this},i.ChildViewContainer}); | ||
//@ sourceMappingURL=backbone.babysitter.map |
{ | ||
"name": "backbone.babysitter", | ||
"description": "Manage child views in a Backbone.View", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/marionettejs/backbone.babysitter", | ||
@@ -6,0 +6,0 @@ "main": "lib/backbone.babysitter.js", |
@@ -23,4 +23,2 @@ # Backbone.BabySitter | ||
### Standard Builds | ||
* Development: [backbone.babysitter.js](https://raw.github.com/marionettejs/backbone.babysitter/master/lib/backbone.babysitter.js) | ||
@@ -30,8 +28,2 @@ | ||
### RequireJS (AMD) Builds | ||
* Development: [backbone.babysitter.js](https://raw.github.com/marionettejs/backbone.babysitter/master/lib/amd/backbone.babysitter.js) | ||
* Production: [backbone.babysitter.min.js](https://raw.github.com/marionettejs/backbone.babysitter/master/lib/amd/backbone.babysitter.min.js) | ||
## Documentation | ||
@@ -38,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
514409
236