You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2018. It is now read-only.
If you click in any tagit input are then try to visit another page you get:
Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'close' jquery.min.js:2
Problem is that in input blur timer is set for 400ms, which then calls _addTag.
When we visit another page DOM changes autocomplete instance is removed, so attempt to all this.input.autocomplete('close').val(""); results in an error.
Solution would be to bind window.blur or hashchange and add clearTimeout and all 'destructor' routine of the plugin.
I will implement local workaround for now.
The text was updated successfully, but these errors were encountered:
nwm.
adding clearTimeout(self.timer) to destroy function solves the problem completely.
I'll commit the fix to my fork and maybe make another pull request, which probably wouldn't be merged for along time=)
I'm hoping to get them merged this week. Just busy with paid work atm and I
like to review all changes before Imerge properly!
On Nov 16, 2012 7:19 PM, "AAverin" [email protected] wrote:
nwm.
adding clearTimeout(self.timer) to destroy function solves the problem
completely.
I'll commit the fix to my fork and maybe make another pull request, which
probably wouldn't be merged for along time=)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-10437788.
Great, thanks.
I'm not sure how to edit pull request and add commits to them on github (new here), so I'll probably delete the current one and make a new with all fixes implemented.
Feel free to make any changes you may find appropriate to my code=)
If you click in any tagit input are then try to visit another page you get:
Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'close' jquery.min.js:2
Problem is that in input blur timer is set for 400ms, which then calls _addTag.
When we visit another page DOM changes autocomplete instance is removed, so attempt to all this.input.autocomplete('close').val(""); results in an error.
Solution would be to bind window.blur or hashchange and add clearTimeout and all 'destructor' routine of the plugin.
I will implement local workaround for now.
The text was updated successfully, but these errors were encountered: