Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added bitwise operator compatible state values.

Fixed unscoped iterator variable.
  • Loading branch information...
commit 424c8fa40ab515cd861a8ffdc8789ced42af2c9d 1 parent d8af74b
@xdissent authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 symbols.js
View
7 symbols.js
@@ -29,13 +29,12 @@ ig.Symbols = ig.Class.extend({
var nameArray = names.split(" ");
- for(i =0; i < classes.length; i++){
+ for(var i = 0; i < classes.length; i++){
var currentClass = classes[i];
- var j = 0;
- for(j = 0; j < nameArray.length; j++){
+ for(var j = 0; j < nameArray.length; j++){
nameArray[j].replace(/^\s+|\s+$/g,"");
if (nameArray[j] != "")
- currentClass[nameArray[j]] = j;
+ currentClass[nameArray[j]] = 0x1 << j;
}
}
ig.Symbols.instance = this;
Please sign in to comment.
Something went wrong with that request. Please try again.