can-event-queue
Advanced tools
Comparing version 0.1.1 to 0.1.2
var QUnit = require('steal-qunit'); | ||
var eventQueue = require("can-event-queue"); | ||
var queues = require("can-queues"); | ||
QUnit.module('can-event-queue',{ | ||
@@ -37,5 +37,5 @@ setup: function(){ }, | ||
eventQueue.start(); | ||
queues.batch.start(); | ||
obj.dispatch("first",[1,2]); | ||
eventQueue.stop(); | ||
queues.batch.stop(); | ||
@@ -76,7 +76,7 @@ }); | ||
}); | ||
eventQueue.start(); | ||
queues.batch.start(); | ||
obj.dispatch("first"); | ||
obj.dispatch("second"); | ||
obj.dispatch("third"); | ||
eventQueue.stop(); | ||
queues.batch.stop(); | ||
@@ -92,6 +92,6 @@ }); | ||
obj.on("first", function(){ | ||
eventQueue.start(); | ||
queues.batch.start(); | ||
obj.dispatch("second"); | ||
obj.dispatch("third"); | ||
eventQueue.stop(); | ||
queues.batch.stop(); | ||
@@ -112,6 +112,6 @@ eventQueue.flush(); | ||
}); | ||
eventQueue.start(); | ||
queues.batch.start(); | ||
obj.dispatch("first"); | ||
eventQueue.stop(); | ||
queues.batch.stop(); | ||
}); |
@@ -67,6 +67,3 @@ var canDev = require("can-util/js/dev/dev"); | ||
if(handlersByType.onKeyValue) { | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function(){ | ||
// TODO | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -77,6 +74,3 @@ if(handlersByType.event) { | ||
var eventAndArgs = [event].concat(args); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function(){ | ||
// TODO | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -83,0 +77,0 @@ queues.batch.stop(); |
@@ -1,2 +0,2 @@ | ||
/*can-event-queue@0.1.0#can-event-queue*/ | ||
/*can-event-queue@0.1.1#can-event-queue*/ | ||
define([ | ||
@@ -58,5 +58,3 @@ 'require', | ||
if (handlersByType.onKeyValue) { | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function () { | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -66,5 +64,3 @@ if (handlersByType.event) { | ||
var eventAndArgs = [event].concat(args); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function () { | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -71,0 +67,0 @@ queues.batch.stop(); |
@@ -1,2 +0,2 @@ | ||
/*can-event-queue@0.1.0#can-event-queue*/ | ||
/*can-event-queue@0.1.1#can-event-queue*/ | ||
var canDev = require('can-util/js/dev/dev'); | ||
@@ -47,5 +47,3 @@ var assign = require('can-util/js/assign/assign'); | ||
if (handlersByType.onKeyValue) { | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function () { | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -55,5 +53,3 @@ if (handlersByType.event) { | ||
var eventAndArgs = [event].concat(args); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function () { | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -60,0 +56,0 @@ queues.batch.stop(); |
@@ -130,3 +130,3 @@ /*[global-shim-start]*/ | ||
/*can-event-queue@0.1.0#can-event-queue*/ | ||
/*can-event-queue@0.1.1#can-event-queue*/ | ||
define('can-event-queue', [ | ||
@@ -188,5 +188,3 @@ 'require', | ||
if (handlersByType.onKeyValue) { | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, function () { | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.onKeyValue, this, args, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -196,5 +194,3 @@ if (handlersByType.event) { | ||
var eventAndArgs = [event].concat(args); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, function () { | ||
return {}; | ||
}); | ||
queues.enqueueByQueue(handlersByType.event, this, eventAndArgs, event.makeMeta, event.reasonLog); | ||
} | ||
@@ -201,0 +197,0 @@ queues.batch.stop(); |
{ | ||
"name": "can-event-queue", | ||
"main": "./can-event-queue.js", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A event mixin that uses queues to dispatch handlers", | ||
@@ -45,4 +45,4 @@ "homepage": "", | ||
"dependencies": { | ||
"can-key-tree": "0.0.2", | ||
"can-queues": "^0.1.1", | ||
"can-key-tree": "<2.0.0", | ||
"can-queues": "<2.0.0", | ||
"can-reflect": "^1.4.5", | ||
@@ -49,0 +49,0 @@ "can-symbol": "^1.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33014
784
+ Addedcan-queues@1.3.2(transitive)
- Removedcan-key-tree@0.0.2(transitive)
- Removedcan-queues@0.1.1(transitive)
Updatedcan-key-tree@<2.0.0
Updatedcan-queues@<2.0.0