backbone.babysitter
Advanced tools
Comparing version 0.1.11 to 1.0.0-pre.1
@@ -20,3 +20,3 @@ { | ||
"dependencies": { | ||
"backbone": ">=0.9.9 <=1.2.3", | ||
"backbone": ">=0.9.9 <=1.3.2", | ||
"underscore": ">=1.4.0 <=1.8.3" | ||
@@ -23,0 +23,0 @@ }, |
@@ -32,5 +32,5 @@ { | ||
"dependencies": { | ||
"jashkenas/backbone": ">=0.9.9 <=1.2.3", | ||
"jashkenas/backbone": ">=0.9.9 <=1.3.2", | ||
"jashkenas/underscore": ">=1.4.0 <=1.8.3" | ||
} | ||
} |
// Backbone.BabySitter | ||
// ------------------- | ||
// v0.1.11 | ||
// v1.0.0-pre.1 | ||
// | ||
@@ -181,3 +181,3 @@ // Copyright (c)2016 Derick Bailey, Muted Solutions, LLC. | ||
Backbone.ChildViewContainer.VERSION = '0.1.11'; | ||
Backbone.ChildViewContainer.VERSION = '1.0.0-pre.1'; | ||
@@ -184,0 +184,0 @@ Backbone.ChildViewContainer.noConflict = function () { |
// Backbone.BabySitter | ||
// ------------------- | ||
// v0.1.11 | ||
// v1.0.0-pre.1 | ||
// | ||
@@ -11,3 +11,3 @@ // Copyright (c)2016 Derick Bailey, Muted Solutions, LLC. | ||
!function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";var c=a.ChildViewContainer;return a.ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;return this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength(),this},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},remove:function(a){var c=a.cid;return a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength(),this},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(a,b),a.ChildViewContainer.VERSION="0.1.11",a.ChildViewContainer.noConflict=function(){return a.ChildViewContainer=c,this},a.ChildViewContainer}); | ||
!function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";var c=a.ChildViewContainer;return a.ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;return this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength(),this},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},remove:function(a){var c=a.cid;return a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength(),this},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(a,b),a.ChildViewContainer.VERSION="1.0.0-pre.1",a.ChildViewContainer.noConflict=function(){return a.ChildViewContainer=c,this},a.ChildViewContainer}); | ||
//# sourceMappingURL=backbone.babysitter.min.js.map |
{ | ||
"name": "backbone.babysitter", | ||
"description": "Manage child views in a Backbone.View", | ||
"version": "0.1.11", | ||
"version": "1.0.0-pre.1", | ||
"homepage": "https://github.com/marionettejs/backbone.babysitter", | ||
@@ -40,3 +40,3 @@ "main": "lib/backbone.babysitter.js", | ||
"github": "https://github.com/marionettejs/backbone.babysitter", | ||
"dependencies": { | ||
"peerDependencies": { | ||
"backbone": ">=0.9.9 <=1.3.2", | ||
@@ -46,2 +46,3 @@ "underscore": ">=1.4.0 <=1.8.3" | ||
"devDependencies": { | ||
"backbone": ">=0.9.9 <=1.3.2", | ||
"grunt": "0.4.4", | ||
@@ -56,4 +57,5 @@ "grunt-cli": "0.1.13", | ||
"grunt-preprocess": "4.0.0", | ||
"grunt-template": "0.2.3" | ||
"grunt-template": "0.2.3", | ||
"underscore": ">=1.4.0 <=1.8.3" | ||
} | ||
} |
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
424958
12
- Removedbackbone@>=0.9.9 <=1.3.2
- Removedunderscore@>=1.4.0 <=1.8.3