Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backbone.babysitter

Package Overview
Dependencies
Maintainers
7
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.babysitter - npm Package Compare versions

Comparing version 1.0.0-pre.2 to 1.0.0

8

bower.json
{
"name": "backbone.babysitter",
"version": "0.1.11",
"version": "1.0.0",
"homepage": "https://github.com/marionettejs/backbone.babysitter",

@@ -20,4 +20,4 @@ "authors": [

"dependencies": {
"backbone": ">=0.9.9 <=1.3.2",
"underscore": ">=1.4.0 <=1.8.3"
"backbone": ">=1.3.3",
"underscore": ">=1.8.3"
},

@@ -32,3 +32,3 @@ "license": "MIT",

"public",
"specs",
"spec",
".gitignore",

@@ -35,0 +35,0 @@ ".jshintrc",

# Change log
### v1.0.0
* Updated Backbone and Underscore version ranges again
### v1.0.0-pre.2

@@ -11,2 +15,6 @@

### v0.1.12
* Bump version range of backbone support.
### v0.1.11

@@ -13,0 +21,0 @@

{
"name": "backbone.babysitter",
"description": "Manage child views in a Backbone.View",
"version": "0.1.11",
"version": "0.1.12",
"repo": "marionettejs/backbone.babysitter",

@@ -32,5 +32,5 @@ "main": "lib/backbone.babysitter.js",

"dependencies": {
"jashkenas/backbone": ">=0.9.9 <=1.3.2",
"jashkenas/backbone": ">=0.9.9 <=1.3.x",
"jashkenas/underscore": ">=1.4.0 <=1.8.3"
}
}
// Backbone.BabySitter
// -------------------
// v1.0.0-pre.1
// v1.0.0
//
// Copyright (c)2016 Derick Bailey, Muted Solutions, LLC.
// Copyright (c)2019 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license

@@ -194,3 +194,3 @@ //

Backbone.ChildViewContainer.VERSION = '1.0.0-pre.1';
Backbone.ChildViewContainer.VERSION = '1.0.0';

@@ -197,0 +197,0 @@ Backbone.ChildViewContainer.noConflict = function () {

// Backbone.BabySitter
// -------------------
// v1.0.0-pre.1
// v1.0.0
//
// Copyright (c)2016 Derick Bailey, Muted Solutions, LLC.
// Copyright (c)2019 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license

@@ -11,3 +11,3 @@ //

!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,b.bind(this.add,this))};b.extend(c.prototype,{add:function(a,b){return this._add(a,b)._updateLength()},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){return this._remove(a)._updateLength()},call:function(a){this.apply(a,b.toArray(arguments).slice(1))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){return this.length=b.size(this._views),this},_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},_remove:function(a){var c=a.cid;return a.model&&delete this._indexByModel[a.model.cid],b.some(this._indexByCustom,b.bind(function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this)),delete this._views[c],this}});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});
!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,b.bind(this.add,this))};b.extend(c.prototype,{add:function(a,b){return this._add(a,b)._updateLength()},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){return this._remove(a)._updateLength()},call:function(a){this.apply(a,b.toArray(arguments).slice(1))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){return this.length=b.size(this._views),this},_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},_remove:function(a){var c=a.cid;return a.model&&delete this._indexByModel[a.model.cid],b.some(this._indexByCustom,b.bind(function(a,b){if(a===c)return delete this._indexByCustom[b],!0},this)),delete this._views[c],this}});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",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": "1.0.0-pre.2",
"version": "1.0.0",
"homepage": "https://github.com/marionettejs/backbone.babysitter",

@@ -45,3 +45,3 @@ "main": "lib/backbone.babysitter.js",

"devDependencies": {
"backbone": ">=1.3.3 <1.4.0",
"backbone": ">=1.3.3",
"grunt": "0.4.4",

@@ -57,4 +57,4 @@ "grunt-cli": "0.1.13",

"grunt-template": "0.2.3",
"underscore": ">=1.4.0 <=1.8.3"
"underscore": ">=1.4.0 <=1.9.1"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc