germanysbestkeptsecret / Wookmark-jQuery

A jQuery plugin to create a dynamic, multi-column layout.
MIT License
2.63k stars 759 forks source link

L52 bulkUpdateCSS js error #133

Closed srphcr closed 10 years ago

srphcr commented 10 years ago

Uncaught TypeError: Cannot call method 'css' of undefined jquery.wookmark.js:52

There are codes like below between L50 and L53.

for (i in data) {
  item = data[i];
  item.obj.css(item.css);
}

However, the problem of prototype with for-in sentence. I think this should be like below.

for (i = 0; i < data.length; i++) {
  item = data[i];
  item.obj.css(item.css);
}