Skip to content

Instantly share code, notes, and snippets.

@aj07mm
Last active November 17, 2015 15:20
Show Gist options
  • Save aj07mm/ced48a900cbb91745168 to your computer and use it in GitHub Desktop.
Save aj07mm/ced48a900cbb91745168 to your computer and use it in GitHub Desktop.
closure forinforin
//agora vai
for(id_pontoreferencia in obj_diff){
for(id_linha in obj_diff[id_pontoreferencia]){
diff = this.getDiff(obj_diff[id_pontoreferencia][id_linha]);
this.update(id_pontoreferencia, id_linha, diff.max()/60);
//zera diff de cada linha do ponto
diff = [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment