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

can-map

Package Overview
Dependencies
Maintainers
14
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-map - npm Package Compare versions

Comparing version 4.3.11 to 4.3.12

dist/amd/bubble.js

14

bubble_test.js

@@ -42,1 +42,15 @@ var QUnit = require("steal-qunit");

});
QUnit.test(".childrenOf should not bind nested non-Observables", function(assert){
var map = new CanMap({
type: Object.create({
label: "hello",
})
});
bubble.childrenOf(map, "change");
assert.equal(bubble.events(map.attr("type"), "change"), undefined, "non-Observable child does not bubble");
map.attr("type", new CanMap({}));
assert.equal(bubble.events(map.attr("type"), "change").length, 1, "replacing with Observable child bubbles");
});

11

bubble.js

@@ -31,4 +31,9 @@ "use strict";

var isMap = function(map) {
return (map && !canReflect.isFunctionLike(map) &&
canReflect.isMapLike(map) && !Array.isArray(map));
return (
map &&
!canReflect.isFunctionLike(map) &&
canReflect.isMapLike(map) &&
!Array.isArray(map) &&
canReflect.isObservableLike(map)
);
};

@@ -198,3 +203,3 @@

// ## bubble.childrenOf
// Bubbles all the children of `parent`.
// Bubbles all the observable children of `parent`.
childrenOf: function (parent, eventName) {

@@ -201,0 +206,0 @@

{
"name": "can-map",
"version": "4.3.11",
"version": "4.3.12",
"description": "Observable Objects",

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

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