Skip to content

Calling destroy throws exception #110

Closed
@floydqwz

Description

@floydqwz

The following code in the jqyouiDraggable directive throws an exception:

element.on('$destroy', function() {
element.draggable('destroy');
});

The exception thrown:

Error: cannot call methods on draggable prior to initialization; attempted to call method 'destroy'

Removing the block of code above solves the problem for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions