Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Variable element is not a jquery object #164

Closed
@giuseppegalano

Description

@giuseppegalano

I followed the guide in the README and got this error:

TypeError: undefined is not a function
    at link (http://localhost:8000/app/libs/angular-ui/sortable.js:206:19)
    at nodeLinkFn (http://localhost:8000/bower_components/angular/angular.js:6579:13)
    at compositeLinkFn (http://localhost:8000/bower_components/angular/angular.js:5986:15)
    at compositeLinkFn (http://localhost:8000/bower_components/angular/angular.js:5989:13)
    at publicLinkFn (http://localhost:8000/bower_components/angular/angular.js:5891:30)
    at link (http://localhost:8000/bower_components/angular-route/angular-route.js:921:7)
    at nodeLinkFn (http://localhost:8000/bower_components/angular/angular.js:6579:13)
    at compositeLinkFn (http://localhost:8000/bower_components/angular/angular.js:5986:15)
    at publicLinkFn (http://localhost:8000/bower_components/angular/angular.js:5891:30)
    at boundTranscludeFn (http://localhost:8000/bower_components/angular/angular.js:6005:21) <ul ui-sortable="sortableOptions" ng-model="addresses" class="ng-pristine ng-valid"> 

So I added the following line at the beginning of the link function:

element = $(element);

and everything worked fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions