Skip to content

Error on variable changing if not removing DOM elements #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TheLand opened this issue Jul 14, 2014 · 0 comments
Closed

Error on variable changing if not removing DOM elements #117

TheLand opened this issue Jul 14, 2014 · 0 comments

Comments

@TheLand
Copy link

TheLand commented Jul 14, 2014

I call in my index page an external html page with the DragAndDrop semantic.
The HTML page is contained in a $scope.page.html variable of Angular.

When i press a button and i change the $scope.page.html variable value, an error is thrown:

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

Also for draggable items.

Removing DOM elements with data-drag and data-drop attributes no error is thrown.

codef0rmer pushed a commit that referenced this issue Oct 1, 2014
  - Closes #125, #121, #99 - Fix paradox of choice ($ vs jQuery)
  - Closes #122 - Update jQueryUI depedency in demos and tests
  - Closes #130 - Restore display value if set, else use block
  - Closes #128, #36, #30 - Restore zIndex value always
  - Closes #117, #110 - Fix destroying widgets prior to initialization
  - Closes #111 - Allow dropping without ngModel similar to dragging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant