Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Angular module non working with jquery UI 1.10.4 #2904

Closed
chatellier opened this issue Jan 27, 2014 · 6 comments
Closed

Angular module non working with jquery UI 1.10.4 #2904

chatellier opened this issue Jan 27, 2014 · 6 comments

Comments

@chatellier
Copy link

Since jquery 1.10.4 update, angular module is not working anymore:
Uncaught TypeError: Property 'scope' of object # is not a function

On line L89: https://github.com/blueimp/jQuery-File-Upload/blob/master/js/jquery.fileupload-angular.js#L89,
var scope = data.scope(), fails now.

In jquery 1.10.3, it's a function
In jquery 1.10.4, it's an array

@blueimp
Copy link
Owner

blueimp commented Jan 27, 2014

I'm not aware of a jQuery version 1.10.4, but I just checked the Angular JS version of this file upload library with the latest 1 branch (1.11.0) and everything worked as expected.

@blueimp blueimp closed this as completed Jan 27, 2014
@chatellier
Copy link
Author

Sorry, i mean jquery UI instead of jquery

@blueimp
Copy link
Owner

blueimp commented Jan 27, 2014

Confirmed, will look into it.

@blueimp blueimp reopened this Jan 27, 2014
@CommitSoftware
Copy link

Just downloaded the new version but now the angular module does not work anymore with jquery UI 1.10.2 and Angular 1.0.6.

The error I get in Chrome 32.0.1700.102 m is:

RangeError: Maximum call stack size exceeded
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:445:20)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16)
at Function.$.widget.extend (http://localhost:3988/Scripts/jquery-ui-1.10.2.js:459:16) angular.js:5704

@blueimp
Copy link
Owner

blueimp commented Feb 5, 2014

Well, if you need to support an older jQuery UI version, simply use an older release of this library.

dougdomeny pushed a commit to dougdomeny/jQuery-File-Upload that referenced this issue Feb 5, 2014
GerHobbelt added a commit to GerHobbelt/jQuery-File-Upload that referenced this issue Mar 11, 2014
Updated jQuery UI Widget Factory and fixed AngularJS widget options handling. Closes blueimp#2904
@benmj
Copy link

benmj commented Jun 8, 2014

I ran into the same error message. I tried changing versions of jQuery-ui without success.

In my case, I am storing the fileinfo in the fileuploaddone event and uploading this to my server. I found that when I had the image-preview plugin for the fileuploader enabled, it would store this issue. I believe this is because the fileinfo can no longer be stringified when it has the preview property (which is an html canvas representation of the uploaded image).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants