nessthehero/Lazy.js — Issue #1: Cannot lazy-load multiple scripts in one selector
Author: nessthehero
Created: 2012-03-02 13:20:18+00:00
State: open
Labels: bug

The following should work:

```javascript
$.lazy([{
src: 'js/mylibs/jquery.tabs.min.js',
name: 'accessibleTabs',
dependencies: {
js: ['js/mylibs/jquery.cookie.js', 'js/mylibs/jquery.syncheight.js']
}
}, {
src: 'js/mylibs/jquery.cookie.js',
name: 'cookie'
}]);
```

It returns an error related to jquery's `each` method, giving me the idea that it is not correctly receiving the array of objects.