mankindsoftware / angular-isotope

AngularJS directives to easily work with JQuery Isotope.
http://mankindsoftware.github.io/angular-isotope
204 stars 82 forks source link

cannot call methods on isotope prior to initialization #57

Closed markdturner closed 8 years ago

markdturner commented 8 years ago

Every time I'm on a view that uses an isotope layout, and then navigate away from that view, an error for every isotope item is thrown.

For example if I have 25 items in a list laid out with isotope, I navigate to a new view and get 25 errors in the console:

'jquery.isotope.js:1360 cannot call methods on isotope prior to initialization; attempted to call method 'remove''

Obviously this error is coming from with the isotope jQuery library, but is this a symptom of something I'm doing wrong with the directive?

hartjo commented 8 years ago

i have the same error can you please tell me if you solve the problem thanks

markdturner commented 8 years ago

Sorry @hartjo, I've still not been able to solve it. It doesn't seem to break my application, its just annoying when trying to debug other things.

hartjo commented 8 years ago

yes it is just hate when errors like that appear on my console... even thou its not affecting my application.. anyway thanks :+1:

hartjo commented 8 years ago

if you want to remove the error

at isotope.pkgd.js i comment the code at line 60

var logError = typeof console === 'undefined' ? noop : function( message ) { //console.error( message ); };

that hide the error message