zonear / isotope-perfectmasonry

PerfectMasonry extension for Isotope
138 stars 49 forks source link

Liquid not working for newer jquery (> 1.7) #11

Closed egoentoro closed 11 years ago

egoentoro commented 11 years ago

Hi,

I tried using Jquery 1.10.2 with the perfectmasonry.js and it gives the following error:

Uncaught TypeError: Cannot read property 'smartresize' of undefined at line 60: if(isLiquid && $.data(window, 'events').smartresize) {

and

Uncaught TypeError: Cannot read property 'cols' of undefined at line 236: var oldCols = properties.cols,

However, if I use jquery 1.7 as the example folder, it's working fine. Any idea why this is?

Thanks!

mikkotikkanen commented 11 years ago

Oh. Hmm. I have to look into that. Thanks for the report!

mikkotikkanen commented 11 years ago

There, should have been fixed now. It was an issue of deprecated data function. Although, I guess it's still not the best of solutions but at least it works. :)