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

can-list

Package Overview
Dependencies
Maintainers
11
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-list - npm Package Compare versions

Comparing version 4.2.2 to 4.2.3

7

can-list_test.js

@@ -256,8 +256,13 @@ var List = require('can-list');

QUnit.test('removing expandos on lists', function(assert) {
QUnit.test('expandos on lists', function(assert) {
var list = new List(["a","b"]);
list.attr("foo","bar");
assert.equal(list.attr("foo"), "bar", "can add an attr");
list.removeAttr("foo");
assert.equal(list.length, 2);
list.attr("foo", undefined); // creating a property
});

@@ -264,0 +269,0 @@

@@ -49,2 +49,4 @@ "use strict";

this.length = 0;
// create this for expando properties
this._data = {};
CID(this, ".map");

@@ -51,0 +53,0 @@ this._setupComputedProperties();

1

docs/apis.json

@@ -8,3 +8,2 @@ [

"can-list.prototype.splice",
"can-list.prototype.each",
"can-list.prototype.reverse",

@@ -11,0 +10,0 @@ "can-list.prototype.map"

{
"name": "can-list",
"version": "4.2.2",
"version": "4.2.3",
"description": "Observable lists",

@@ -5,0 +5,0 @@ "homepage": "http://canjs.com",

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