Skip to content

Commit

Permalink
fix AEntity.is for when state is 0th index
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Jan 21, 2016
1 parent bc51285 commit 8ee9942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/a-entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ var proto = Object.create(ANode.prototype, {
value: function (state) {
var is = false;
this.states.forEach(function (elState, index) {
if (elState === state) { is = index; }
if (elState === state) { is = true; }
});
return is;
}
Expand Down

0 comments on commit 8ee9942

Please sign in to comment.