djvirgen / virgen-acl

A simple ACL for node.js
MIT License
74 stars 19 forks source link

removing unneeded clojuers #2

Closed oren closed 11 years ago

oren commented 11 years ago

I noticed undeeded overhead in allow, deny and query - there is a clojure there for no good reason. for example, in Acl.prototype.allow - you create a clojure and capture the value of actions[i] even though there is no async function in that loop. I removed those clojures.