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

can-event-queue

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-event-queue - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

type-events/type-events-test.js

37

can-event-queue-test.js

@@ -7,3 +7,2 @@ var QUnit = require('steal-qunit');

var canReflect = require("can-reflect");
var addBoundChange = require("./bound-change/bound-change");

@@ -176,38 +175,5 @@ QUnit.module('can-event-queue',{

test("Events when object is bound/unbound", function() {
expect(1);
var Type = function(){};
eventQueue(Type.prototype);
addBoundChange( Type );
var obj1 = new Type(),
obj2 = new Type();
var calls = [];
var metaHandler = function(obj, newVal) {
calls.push([obj, newVal]);
};
var handler = function() {};
Type[canSymbol.for("can.onBoundChange")](metaHandler);
obj1.on("first", handler);
obj1.off("first", handler);
obj2.on("second", handler);
obj2.off("second", handler);
// Sanity check. Ensure that no more events fire after offBoundChange
Type[canSymbol.for("can.offBoundChange")](metaHandler);
obj1.on("first", handler);
obj1.off("first", handler);
QUnit.deepEqual(calls,[
[obj1,true],
[obj1,false],
[obj2,true],
[obj2,false]
]);
});
test('listenTo and stopListening', 9, function () {

@@ -293,1 +259,4 @@ var parent = eventQueue({});

});
require("./type-events/type-events-test");

@@ -11,3 +11,3 @@ var canDev = require("can-util/js/dev/dev");

var metaSymbol = canSymbol.for("can.meta"),
dispatchBoundChangeSymbol = canSymbol.for("can.dispatchBoundChange"),
dispatchBoundChangeSymbol = canSymbol.for("can.dispatchInstanceBoundChange"),
onKeyValueSymbol = canSymbol.for("can.onKeyValue"),

@@ -14,0 +14,0 @@ offKeyValueSymbol = canSymbol.for("can.offKeyValue"),

@@ -1,2 +0,2 @@

/*can-event-queue@0.5.1#can-event-queue*/
/*can-event-queue@0.6.0#can-event-queue*/
define([

@@ -21,3 +21,3 @@ 'require',

var domEvents = require('can-util/dom/events');
var metaSymbol = canSymbol.for('can.meta'), dispatchBoundChangeSymbol = canSymbol.for('can.dispatchBoundChange'), onKeyValueSymbol = canSymbol.for('can.onKeyValue'), offKeyValueSymbol = canSymbol.for('can.offKeyValue'), onEventSymbol = canSymbol.for('can.onEvent'), offEventSymbol = canSymbol.for('can.offEvent'), onValueSymbol = canSymbol.for('can.onValue'), offValueSymbol = canSymbol.for('can.offValue');
var metaSymbol = canSymbol.for('can.meta'), dispatchBoundChangeSymbol = canSymbol.for('can.dispatchInstanceBoundChange'), onKeyValueSymbol = canSymbol.for('can.onKeyValue'), offKeyValueSymbol = canSymbol.for('can.offKeyValue'), onEventSymbol = canSymbol.for('can.onEvent'), offEventSymbol = canSymbol.for('can.offEvent'), onValueSymbol = canSymbol.for('can.onValue'), offValueSymbol = canSymbol.for('can.offValue');
var eventQueue;

@@ -24,0 +24,0 @@ var ensureMeta = function ensureMeta(obj) {

@@ -1,2 +0,2 @@

/*can-event-queue@0.5.1#can-event-queue*/
/*can-event-queue@0.6.0#can-event-queue*/
var canDev = require('can-util/js/dev/dev');

@@ -9,3 +9,3 @@ var assign = require('can-util/js/assign/assign');

var domEvents = require('can-util/dom/events/events');
var metaSymbol = canSymbol.for('can.meta'), dispatchBoundChangeSymbol = canSymbol.for('can.dispatchBoundChange'), onKeyValueSymbol = canSymbol.for('can.onKeyValue'), offKeyValueSymbol = canSymbol.for('can.offKeyValue'), onEventSymbol = canSymbol.for('can.onEvent'), offEventSymbol = canSymbol.for('can.offEvent'), onValueSymbol = canSymbol.for('can.onValue'), offValueSymbol = canSymbol.for('can.offValue');
var metaSymbol = canSymbol.for('can.meta'), dispatchBoundChangeSymbol = canSymbol.for('can.dispatchInstanceBoundChange'), onKeyValueSymbol = canSymbol.for('can.onKeyValue'), offKeyValueSymbol = canSymbol.for('can.offKeyValue'), onEventSymbol = canSymbol.for('can.onEvent'), offEventSymbol = canSymbol.for('can.offEvent'), onValueSymbol = canSymbol.for('can.onValue'), offValueSymbol = canSymbol.for('can.offValue');
var eventQueue;

@@ -12,0 +12,0 @@ var ensureMeta = function ensureMeta(obj) {

@@ -130,3 +130,3 @@ /*[global-shim-start]*/

/*can-event-queue@0.5.1#can-event-queue*/
/*can-event-queue@0.6.0#can-event-queue*/
define('can-event-queue', [

@@ -151,3 +151,3 @@ 'require',

var domEvents = require('can-util/dom/events/events');
var metaSymbol = canSymbol.for('can.meta'), dispatchBoundChangeSymbol = canSymbol.for('can.dispatchBoundChange'), onKeyValueSymbol = canSymbol.for('can.onKeyValue'), offKeyValueSymbol = canSymbol.for('can.offKeyValue'), onEventSymbol = canSymbol.for('can.onEvent'), offEventSymbol = canSymbol.for('can.offEvent'), onValueSymbol = canSymbol.for('can.onValue'), offValueSymbol = canSymbol.for('can.offValue');
var metaSymbol = canSymbol.for('can.meta'), dispatchBoundChangeSymbol = canSymbol.for('can.dispatchInstanceBoundChange'), onKeyValueSymbol = canSymbol.for('can.onKeyValue'), offKeyValueSymbol = canSymbol.for('can.offKeyValue'), onEventSymbol = canSymbol.for('can.onEvent'), offEventSymbol = canSymbol.for('can.offEvent'), onValueSymbol = canSymbol.for('can.onValue'), offValueSymbol = canSymbol.for('can.offValue');
var eventQueue;

@@ -154,0 +154,0 @@ var ensureMeta = function ensureMeta(obj) {

{
"name": "can-event-queue",
"main": "./can-event-queue.js",
"version": "0.6.0",
"version": "0.7.0",
"description": "A event mixin that uses queues to dispatch handlers",

@@ -6,0 +6,0 @@ "homepage": "",

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