~openerp-dev/openerp-web/6.1-web-custo-tfr

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/core.js

[MERGE] fix scroll up

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *--------------------------------------------------------*/
4
4
var console;
5
5
if (!console) {
6
 
    console = {log: function () {}};
 
6
    console = {};
 
7
    var noop = function () {};
 
8
    _.each('log error debug info warn assert clear dir dirxml trace group \
 
9
            groupCollapsed groupEnd time timeEnd profile profileEnd count \
 
10
            exception'.split(/\s+/), function (property) {
 
11
        console[property] = noop;
 
12
    });
7
13
}
8
14
if (!console.debug) {
9
15
    console.debug = console.log;