Skip to content

error when attempting to destroy #10

@ncavanagh

Description

@ncavanagh

when attempting to call$('.miHolder').each(function(){$(this).hoverdir('destroy'); } ); gives an error "cannot call methods on hoverdir prior to initialization; attempted to call method 'destroy'"

The reason for the .each is the hoverdiv() only gets applied to the first .miHolder, even when using $("#miTHumbs > li").hoverdiv(). So my initialization line is: $('.miHolder').each(function(){$(this).hoverdir(); } ); And this line is call long before I try to run the destroy. and even if I run the line in an inspector console I still get the error. Even If I use a non .each() initialization I still get the same error when trying a 'destroy'

why is this error occurring, what would prevent the elements from being recognized as initialized?

Thank you,
-N8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions