I tried this:
require.config({
paths: {
jquery: '../lib/zepto/zepto-1.1.3',
"jquery.parsley": '../lib/parsley/parsley-2.0.2'
},
shim: {
'jquery.parsley': ['jquery'] // I also tried without this
}
});
define(['jquery', 'jquery.parsley'], function( $ ) {
$("#signup-form").parsley('validate'); // "signup-form" is the form id
});
but I get this error:
TypeError: $(...).parsley is not a function
What am I doing wrong? Could you help me to make it work? Thanks