add program.index.

This commit is contained in:
Christopher Jeffrey 2015-08-05 04:39:48 -07:00
parent 7351c8a716
commit a9fb228f23
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ Program.bind = function(program) {
if (!~Program.instances.indexOf(program)) {
Program.instances.push(program);
program.index = Program.total;
Program.total++;
}