Skip to content

Commit

Permalink
fix: serveral naming typos
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Dec 29, 2015
1 parent fd6032c commit 369027c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions StateTransitionMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports.prepareActions = function (as) {
return [actions, states];
};

const _Base = {
const BaseMethods = {
/**
* Called when state transition action is not allowed
* @param {Object} action
Expand Down Expand Up @@ -101,7 +101,7 @@ exports.defineStateTransitionProperties = function (object, actions, currentStat
}
};

Object.assign(object, Base);
Object.assign(object, BaseMethods);
Object.defineProperties(object, properties);
};

Expand Down Expand Up @@ -154,10 +154,6 @@ module.exports.StateTransitionMixin = (superclass, actions, currentState) => cla
}
};

console.log(
`KEYS: ${Object.getOwnPropertyNames(module.exports.StateTransitionMixin)} ${module.exports.StateTransitionMixin}`
);

function rejectUnlessResolvedWithin(promise, timeout) {
if (timeout === 0) return promise;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "statetransition-mixin",
"description": "mixin to declare state transition methots like start & stop",
"main": "StatesTransitionMixin.js",
"main": "StateTransitionMixin.js",
"scripts": {
"cover": "node --harmony ./node_modules/istanbul/lib/cli.js cover --hook-run-in-context ./node_modules/mocha/bin/_mocha -- --R spec --U exports tests",
"doc": "./node_modules/.bin/jsdoc index.js",
Expand Down

0 comments on commit 369027c

Please sign in to comment.