w3c / apiary

Simple JS library to use the W3C API in a declarative way
MIT License
13 stars 8 forks source link

Removed unnecessary if statements #7

Closed tagawa closed 9 years ago

tripu commented 9 years ago

Not equivalent, I think, @tagawa: the callback has to be invoked only at the end of all executions of getDataForType() and digDownData(). That's why it's carried forward from one function to the next. I think your change would run the callback before all data is retrieved, in some cases.

tagawa commented 9 years ago

Ah, OK. Closing.