2012-12-09 06:27:27 +08:00
|
|
|
requirejs.config({
|
|
|
|
baseUrl: 'js/lib',
|
|
|
|
shim: {
|
|
|
|
'colorwheel': ['raphael'],
|
|
|
|
'jquery.form': ['jquery'],
|
|
|
|
'jquery.mousewheel': ['jquery'],
|
|
|
|
'jquery.autosize': ['jquery'],
|
|
|
|
'jquery.ui': ['jquery']
|
|
|
|
},
|
|
|
|
paths: {
|
2012-12-09 08:44:03 +08:00
|
|
|
'jquery': [
|
|
|
|
'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min',
|
|
|
|
'jquery-1.8.3.min'
|
|
|
|
],
|
|
|
|
'jquery.ui': [
|
|
|
|
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min',
|
|
|
|
'jquery-ui-1.9.2.min'
|
|
|
|
],
|
2012-12-09 06:27:27 +08:00
|
|
|
'raphael': 'raphael.amd',
|
|
|
|
'jquery.mousewheel': 'jquery.mousewheel.min',
|
|
|
|
'jquery.autosize': 'jquery.autosize-min',
|
|
|
|
'socket.io': '/socket.io/socket.io',
|
|
|
|
'chat': '../chat'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
require([
|
2012-12-09 08:26:58 +08:00
|
|
|
'coffee-script',
|
2012-12-09 06:27:27 +08:00
|
|
|
'jquery',
|
|
|
|
'jquery.mousewheel',
|
|
|
|
'jquery.autosize',
|
|
|
|
'jquery.form',
|
|
|
|
'jquery.ui',
|
|
|
|
'socket.io',
|
|
|
|
'raphael',
|
|
|
|
'colorwheel',
|
|
|
|
'textflow',
|
|
|
|
'textflow-helper',
|
2012-12-09 08:26:58 +08:00
|
|
|
'cs!chat/connection',
|
|
|
|
'cs!chat/whiteboard',
|
|
|
|
'cs!chat/chat',
|
|
|
|
'cs!chat/behaviour'
|
2012-12-09 06:27:27 +08:00
|
|
|
]);
|