-
Notifications
You must be signed in to change notification settings - Fork 248
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
Error on Plugin Jquery - Autocomplete #65
Comments
Hi @globsecure, in your module you're referring to a jQuery global Something like: // module-a.js
module.exports = function(jQuery) {
return {
globServiceAutocomplete: function() {
// Do some things with jQuery
jQuery('.some-class').val();
}
};
}
// app.js
events: {
'app.created': 'init'
},
init: function() {
var modA = require('module-a.js')(this.$);
} It is important to note here that the version of jQuery you would pass from the app would be scoped to the app's own DOM. |
Perfect! I was not calling the Jquery! Another question is how to get the DOM of an input in the PLUGIN.
Thank you! |
I am very noob! Problem was the calling function before loading the template! Very very thanks!!!! [close] 👍 |
I'm creating an autocomplete in my app, however I am having difficulty with the integration of jQuery.
Error on:
[App "Portodesign"] TypeError: undefined is not a function
at Object.module.exports.globServiceAutoComplete (http://localhost:4567/app.js:44:38)
at AppSubclass.source.principalController (http://localhost:4567/app.js:196:31)
at AppSubclass.
The text was updated successfully, but these errors were encountered: