requirejs.config({
baseUrl: '/static/editor',
+ map: {
+ '*':
+ {
+ 'libs/jquery': 'libs/jquery-1.9.1.min',
+ 'libs/underscore': 'libs/underscore-min',
+ 'libs/bootstrap': 'libs/bootstrap/js/bootstrap.min',
+ 'libs/backbone': 'libs/backbone-min'
+ }
+ },
+
shim: {
'libs/jquery-1.9.1.min': {
exports: '$',
exports: '_'
},
'libs/bootstrap/js/bootstrap.min': {
- deps: ['libs/jquery-1.9.1.min']
+ deps: ['libs/jquery']
},
'libs/backbone-min': {
exports: 'Backbone',
- deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min']
+ deps: ['libs/jquery', 'libs/underscore']
}
}
});
requirejs([
- 'libs/jquery-1.9.1.min',
+ 'libs/jquery',
'fnpjs/runner',
'rng',
'./modules',
- 'libs/bootstrap/js/bootstrap.min'
+ 'libs/bootstrap'
], function($, runner, rng, modules) {
$(function() {
var app = new runner.Runner(rng, modules);
-define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($ ,_) {
+define(['libs/jquery', 'libs/underscore'], function($ ,_) {
'use strict';
var Layout = function(template) {
-define(['libs/jquery-1.9.1.min', 'libs/underscore-min'], function($, _) {
+define(['libs/jquery', 'libs/underscore'], function($, _) {
var Runner = function(app, modules) {
-define(['libs/jquery-1.9.1.min', './layout'], function($, layout) {
+define(['libs/jquery', './layout'], function($, layout) {
var VBox = function() {};
define([
'libs/text!./saveDialog.html',
-'libs/underscore-min',
-'libs/backbone-min',
-'libs/jquery-1.9.1.min'
+'libs/underscore',
+'libs/backbone',
+'libs/jquery'
], function(saveDialogTemplate, _, Backbone, $) {
var DialogView = Backbone.View.extend({
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'views/tabs/tabs',
'libs/text!./diff.html'
], function($, _, tabs, diffTemplateSrc) {
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
-'libs/backbone-min',
+'libs/jquery',
+'libs/underscore',
+'libs/backbone',
'modules/documentCanvas/canvas/documentElement',
'modules/documentCanvas/canvas/keyboard',
'modules/documentCanvas/canvas/utils'
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'modules/documentCanvas/classAttributes',
'modules/documentCanvas/canvas/utils',
'modules/documentCanvas/canvas/widgets',
define([
-'libs/jquery-1.9.1.min',
+'libs/jquery',
], function($) {
'use strict';
define([
-'libs/jquery-1.9.1.min',
+'libs/jquery',
'utils/wlxml'
], function($, wlxmlUtils) {
define([
-'libs/jquery-1.9.1.min',
+'libs/jquery',
'modules/documentCanvas/canvas/widgets'
], function($, widgets) {
// Module that implements main WYSIWIG edit area
define([
-'libs/underscore-min',
+'libs/underscore',
'./canvas/canvas',
'./commands',
'libs/text!./template.html'], function(_, canvas3, commands, template) {
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'./restoreDialog',
'libs/text!./templates/main.html',
'libs/text!./templates/item.html'
define([
'libs/text!./templates/restoreDialog.html',
-'libs/underscore-min',
-'libs/backbone-min',
-'libs/jquery-1.9.1.min'
+'libs/underscore',
+'libs/backbone',
+'libs/jquery'
], function(restoreDialogTemplate, _, Backbone, $) {
var DialogView = Backbone.View.extend({
-define(['libs/jquery-1.9.1.min', 'libs/underscore-min', 'utils/wlxml', 'libs/text!./template.html'], function($, _, wlxmlUtils, template) {
+define(['libs/jquery', 'libs/underscore', 'utils/wlxml', 'libs/text!./template.html'], function($, _, wlxmlUtils, template) {
'use strict';
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'libs/text!./template.html'
], function($, _, template) {
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'libs/text!./template.html'], function($, _, template) {
'use strict';
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'./transformations',
'libs/text!./templates/main.html',
'libs/text!./templates/item.html'
-define(['libs/jquery-1.9.1.min'], function($) {
+define(['libs/jquery'], function($) {
'use strict';
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'utils/wlxml',
'libs/text!./template.html'], function($, _, wlxmlUtils, templateSrc) {
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'utils/wlxml',
'libs/text!./template.html'
], function($, _, wlxmlUtils, templateSrc) {
define([
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
-'libs/backbone-min',
+'libs/jquery',
+'libs/underscore',
+'libs/backbone',
'libs/text!./stringField.html'
], function($, _, Backbone, stringFieldTpl) {
define([
'libs/text!./template.html',
-'libs/jquery-1.9.1.min',
-'libs/underscore-min',
+'libs/jquery',
+'libs/underscore',
'modules/nodePane/metaWidget/metaWidget',
'utils/wlxml'
], function(templateSrc, $, _, metaWidget, wlxmlUtils) {
'libs/jquery-1.9.1.min': {
exports: '$',
},
- 'libs/underscore-min': {
+ 'libs/underscore': {
exports: '_'
},
'libs/bootstrap/js/bootstrap.min': {
deps: ['libs/jquery-1.9.1.min']
},
- 'libs/backbone-min': {
+ 'libs/backbone': {
exports: 'Backbone',
- deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min']
+ deps: ['libs/jquery-1.9.1.min', 'libs/underscore']
},
'libs/sinon-1.7.3': {
exports: 'sinon'
define([
'libs/text!./templates/main.html',
'libs/text!./templates/handle.html',
-'libs/underscore-min',
-'libs/backbone-min',
+'libs/underscore',
+'libs/backbone'
], function(mainTemplate, handleTemplate, _, Backbone) {
'use strict';