Just a heads up, I get this:
Uncaught ReferenceError: jQuery is not defined can.custom.js:417
Uncaught TypeError: Cannot call method 'extend' of undefined
return can;
#417: })(jQuery, __m5, __m6, __m7, __m8);
and my config is:
- require.config({
- baseUrl: '../images/js/mn',
- paths: {
- jquery: 'libs/jquery-1.11.0',
- can: 'libs/can.custom'
- }
- });
- require(['jquery', 'can', 'modules/base'], function($, can, base) {
- new base('body', {
- tpl: 'tpls/pages/h.mustache'
- })
- });
- // Module file is
- define(['jquery', 'can'], function() {
- return can.Control.extend({
- init: function(element, options) {
- var frag = can.view(options.tpl, options.viewData || {});
- element.html(frag);
- }
- });
- });