Skip to content

Commit d612cda

Browse files
committed
V1.3.2
1 parent a98c40a commit d612cda

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
{
22
"name": "behaviours-js",
3-
"version": "1.3.1",
4-
"description": "Behaviours framework written in JavaScript implementing Behaviour-first-design and queue-map architecture.",
3+
"version": "1.3.2",
4+
"description": "Behaviours framework written in JavaScript implementing Behaviour-first design and queue-map architecture.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "snyk test && test",
8-
"snyk-protect": "snyk protect",
9-
"prepare": "npm run snyk-protect"
7+
"test": "test"
108
},
119
"dependencies": {
1210
"debug": "latest",
1311
"define-js": "latest",
1412
"parseparams": "latest",
15-
"shallow-copy": "latest",
16-
"snyk": "^1.1074.0"
13+
"shallow-copy": "latest"
1714
},
1815
"repository": {
1916
"type": "git",
@@ -29,6 +26,5 @@
2926
"bugs": {
3027
"url": "https://github.com/quanode/behaviours/issues"
3128
},
32-
"homepage": "https://github.com/quanode/behaviours#readme",
33-
"snyk": true
29+
"homepage": "https://github.com/quanode/behaviours#readme"
3430
}

src/business/BusinessBehaviour.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ var BusinessBehaviour = module.exports.BusinessBehaviour = define(function (init
4141
self.timeout = options.timeout;
4242
self.inputObjects = options.inputObjects;
4343
self.state = {};
44-
self.searchText = options.searchText;
4544
self.mandatoryBehaviour = options.mandatoryBehaviour;
4645
self.getType = () => type;
4746
self.setType = function (typeParameter) {

src/business/BusinessController.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var BusinessController = function (options) {
1616
var self = this;
1717
var ignoreBehaviours = false;
1818
var {
19+
identifier,
1920
modelController,
2021
getModelMethods,
2122
serviceController,
@@ -112,6 +113,7 @@ var BusinessController = function (options) {
112113
if (ignoring) return () => { };
113114
behaviour.getProperty = getProperty || ((property) => property);
114115
behaviour.callback = callback;
116+
behaviour.controller = identifier;
115117
return businessBehaviourQueue.enqueue(...[
116118
behaviour,
117119
() => businessBehaviourCycle.runNextBehaviour(),

src/business/BusinessDelegator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ var getFetchCancelCallback = function (currentBehaviour) {
3737

3838
return function (cancel) {
3939

40-
if (cancel) {
40+
if (typeof cancel === "function") {
4141

4242
let _cancel = currentBehaviour.cancel;
4343
currentBehaviour.cancel = function () {
4444

4545
cancel();
46-
if (typeof _cancel === 'function') {
46+
if (typeof _cancel === "function") {
4747

4848
_cancel();
4949
}

0 commit comments

Comments
 (0)