Я использую «define» в своем проекте. Мой js-код будет, когда я не использую оптимизатор. Когда я бег оптимизатора всех файлы включены как таковой нижеrequirejs optimizer создает код, который не работает
require(["jquery", "modals", "registermodule", "bootstrap", "personsmodule", "datemodule", "./jquery-ui-1.8.18.custom.min"], function($) {});
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/main-built.js
----------------
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/jquery.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/modals.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/ajaxmodule.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/jquery-ui-1.8.18.custom.min.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/datemodule.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/validationmodule.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/guimodule.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/registration_util.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/registermodule.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/bootstrap.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/tablesort.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/personsmodule.js
C:/Users/pethel/checkout/src/main/webapp/resources/scripts/main.js
Когда я загружаю мою страницу с обезображенным сценарием я получаю DatePicker не определенно. Как это может произойти, когда файл включен здесь jquery-ui-1.8.18.custom.min.js?
Soultion 1: Это невозможно сделать вручную? Мне нужно что-то вроде http://tagneto.blogspot.no/2011/01/jqueryu-ui-as-amd-modules-for-use-in.html Решение 2: что вы имеете в виду? Еще один тег Этот apporach работает в chrome, но IE все еще жалуется на datepicker. – pethel