Skip to content
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

initializeMyPlugin() is not a function error when reinitializing plugins after a pjax request. #694

Open
reservedprem opened this issue Dec 30, 2017 · 1 comment

Comments

@reservedprem
Copy link

reservedprem commented Dec 30, 2017

Uncaught TypeError: $(...).initializeMyPlugin is not a function
at HTMLDocument. (2:132)
at HTMLDocument.dispatch (VM4611 app.js:1)
at HTMLDocument.g.handle (VM4611 app.js:1)
at Object.trigger (VM4611 app.js:1)
at HTMLDivElement. (VM4611 app.js:1)
at Function.each (VM4611 app.js:1)
at yt.fn.init.each (VM4611 app.js:1)
at yt.fn.init.trigger (VM4611 app.js:1)
at fire (VM4614 jquery.pjax.js:199)
at yt.fn.init.options.complete (VM4614 jquery.pjax.js:239)
(anonymous) @ 2:132
dispatch @ VM4611 app.js:1
g.handle @ VM4611 app.js:1
trigger @ VM4611 app.js:1
(anonymous) @ VM4611 app.js:1
each @ VM4611 app.js:1
each @ VM4611 app.js:1
trigger @ VM4611 app.js:1
fire @ VM4614 jquery.pjax.js:199
options.complete @ VM4614 jquery.pjax.js:239
u @ VM4611 app.js:1
fireWith @ VM4611 app.js:1
r @ VM4611 app.js:1
(anonymous) @ VM4611 app.js:1
XMLHttpRequest.send (async)
send @ VM4611 app.js:1
ajax @ VM4611 app.js:1
pjax @ VM4614 jquery.pjax.js:360
handleClick @ VM4614 jquery.pjax.js:93
(anonymous) @ VM4614 jquery.pjax.js:38
dispatch @ VM4611 app.js:1
g.handle @ VM4611 app.js:1
23:17:21.332

@razh
Copy link

razh commented Feb 9, 2018

initializeMyPlugin is an example function name. You need to replace it with the jQuery plugins that you are using.

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

2 participants