Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
/** vim: et:ts=4:sw=4:sts=4
1
/** vim: et:ts=4:sw=4:sts=4
2
 * @license RequireJS 2.3.5 Copyright jQuery Foundation and other contributors.
2
 * @license RequireJS 2.3.7 Copyright jQuery Foundation and other contributors.
3
 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
3
 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
4
 */
4
 */
5
//Not using strict: uneven strict support in browsers, #392, and causes
5
//Not using strict: uneven strict support in browsers, #392, and causes
6
//problems with requirejs.exec()/transpiler plugins that may not be strict.
6
//problems with requirejs.exec()/transpiler plugins that may not be strict.
7
/*jslint regexp: true, nomen: true, sloppy: true */
7
/*jslint regexp: true, nomen: true, sloppy: true */
Línea 9... Línea 9...
9
 
9
 
10
var requirejs, require, define;
10
var requirejs, require, define;
11
(function (global, setTimeout) {
11
(function (global, setTimeout) {
12
    var req, s, head, baseElement, dataMain, src,
12
    var req, s, head, baseElement, dataMain, src,
13
        interactiveScript, currentlyAddingScript, mainScript, subPath,
13
        interactiveScript, currentlyAddingScript, mainScript, subPath,
14
        version = '2.3.5',
14
        version = '2.3.7',
15
        commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
15
        commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
16
        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
16
        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
17
        jsSuffixRegExp = /\.js$/,
17
        jsSuffixRegExp = /\.js$/,
18
        currDirRegExp = /^\.\//,
18
        currDirRegExp = /^\.\//,
Línea 31... Línea 31...
31
        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
31
        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
32
        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
32
        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
33
        contexts = {},
33
        contexts = {},
34
        cfg = {},
34
        cfg = {},
35
        globalDefQueue = [],
35
        globalDefQueue = [],
36
        useInteractive = false;
36
        useInteractive = false,
-
 
37
        disallowedProps = ['__proto__', 'constructor'];
Línea 37... Línea 38...
37
 
38
 
38
    //Could match something like ')//comment', do not lose the prefix to comment.
39
    //Could match something like ')//comment', do not lose the prefix to comment.
39
    function commentReplace(match, singlePrefix) {
40
    function commentReplace(match, singlePrefix) {
40
        return singlePrefix || '';
41
        return singlePrefix || '';
Línea 92... Línea 93...
92
     * iteration is stopped.
93
     * iteration is stopped.
93
     */
94
     */
94
    function eachProp(obj, func) {
95
    function eachProp(obj, func) {
95
        var prop;
96
        var prop;
96
        for (prop in obj) {
97
        for (prop in obj) {
97
            if (hasProp(obj, prop)) {
98
            if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1) {
98
                if (func(obj[prop], prop)) {
99
                if (func(obj[prop], prop)) {
99
                    break;
100
                    break;
100
                }
101
                }
101
            }
102
            }
102
        }
103
        }
Línea 163... Línea 164...
163
     * @param {Error} [err] the original error, if there is one.
164
     * @param {Error} [err] the original error, if there is one.
164
     *
165
     *
165
     * @returns {Error}
166
     * @returns {Error}
166
     */
167
     */
167
    function makeError(id, msg, err, requireModules) {
168
    function makeError(id, msg, err, requireModules) {
168
        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
169
        var e = new Error(msg + '\nhttps://requirejs.org/docs/errors.html#' + id);
169
        e.requireType = id;
170
        e.requireType = id;
170
        e.requireModules = requireModules;
171
        e.requireModules = requireModules;
171
        if (err) {
172
        if (err) {
172
            e.originalError = err;
173
            e.originalError = err;
173
        }
174
        }