Socket
Socket
Sign inDemoInstall

backbone-collection-proxy

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.3 to 0.2.4

2

backbone-collection-proxy.js

@@ -48,3 +48,3 @@ (function(root, factory) {

if (_.contains(eventWhiteList, eventName)) {
if (_.contains(['add', 'remove', 'destory'], eventName)) {
if (_.contains(['add', 'remove', 'destroy'], eventName)) {
args[2] = target;

@@ -51,0 +51,0 @@ } else if (_.contains(['reset', 'sort'], eventName)) {

{
"name": "backbone-collection-proxy",
"description": "Create a read-only copy of a backbone collection that stays in sync with the original",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "http://github.com/jmorrell/backbone-collection-proxy",

@@ -6,0 +6,0 @@ "keywords": [],

@@ -0,1 +1,5 @@

v0.2.4
* Fixed type in event name
v0.2.3

@@ -2,0 +6,0 @@

@@ -35,3 +35,3 @@

if (_.contains(eventWhiteList, eventName)) {
if (_.contains(['add', 'remove', 'destory'], eventName)) {
if (_.contains(['add', 'remove', 'destroy'], eventName)) {
args[2] = target;

@@ -38,0 +38,0 @@ } else if (_.contains(['reset', 'sort'], eventName)) {

{
"name": "backbone-collection-proxy",
"description": "Create a read-only copy of a backbone collection that stays in sync with the original",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "http://github.com/jmorrell/backbone-collection-proxy",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -152,14 +152,2 @@ $(document).ready(function() {

test("sortedIndex", function () {
var model = new Backbone.Model({key: 2});
var collection = getProxyCollection(new (Backbone.Collection.extend({
comparator: 'key'
}))([model, {key: 1}]));
equal(collection.sortedIndex(model), 1);
equal(collection.sortedIndex(model, 'key'), 1);
equal(collection.sortedIndex(model, function (model) {
return model.get('key');
}), 1);
});
test("trigger custom events on models", 1, function() {

@@ -166,0 +154,0 @@ var fired = null;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc