Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// JSBeautify adds itself to the exports object if one exists.
2
// Define exports here and it will work as if by magic.
3
// This is safe to put in a function and will not be exported to the global
4
// namespace. Note, we'll have to remove this when YUI supports, and we move to ES6.
5
var exports = {};
6
 
7
var define = null; // Remove require.js support in this context.
8
 
9
// JSBeautify calls require() in order to get the existing exported modules.
10
var require = function() {
11
    return exports;
12
};
13
require();
14
 
15
// Actually define beautify in our namespace.
16
Y.namespace('M.atto_html').beautify = exports;