MDL-56010 libraries: remove jshint changes and update comment block

This commit is contained in:
Simey Lameze
2016-10-04 16:05:41 +08:00
parent d5553254e9
commit f2b169ec03
+9 -7
View File
@@ -25,12 +25,13 @@
// Description of import into Moodle:
// Download from https://github.com/pimterry/loglevel/releases
// Copy loglevel.js into lib/amd/src/ in Moodle folder.
// Add the license as a comment to the file and these instructions.
// Add the jshint ignore:start and ignore:end comments.
// Delete the jshint validthis:true comments.
/* jshint ignore:start */
/*! loglevel - v1.4.1 - https://github.com/pimterry/loglevel - (c) 2013 Tim Perry - licensed MIT */
/*
* loglevel - https://github.com/pimterry/loglevel
*
* Copyright (c) 2013 Tim Perry
* Licensed under the MIT license.
*/
(function (root, definition) {
"use strict";
if (typeof define === 'function' && define.amd) {
@@ -92,6 +93,7 @@
}
function replaceLoggingMethods(level, loggerName) {
/*jshint validthis:true */
for (var i = 0; i < logMethods.length; i++) {
var methodName = logMethods[i];
this[methodName] = (i < level) ?
@@ -103,6 +105,7 @@
// By default, we use closely bound real methods wherever possible, and
// otherwise we wait for a console to appear, and then try again.
function defaultMethodFactory(methodName, level, loggerName) {
/*jshint validthis:true */
return realMethod(methodName) ||
enableLoggingWhenConsoleArrives.apply(this, arguments);
}
@@ -255,5 +258,4 @@
};
return defaultLogger;
}));
/* jshint ignore:end */
}));