From f2b169ec03d7923d149efd033cb0106674698644 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Tue, 4 Oct 2016 16:05:41 +0800 Subject: [PATCH] MDL-56010 libraries: remove jshint changes and update comment block --- lib/amd/src/loglevel.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/amd/src/loglevel.js b/lib/amd/src/loglevel.js index 7e8077925c2..734eb80e7f6 100644 --- a/lib/amd/src/loglevel.js +++ b/lib/amd/src/loglevel.js @@ -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 */ +})); \ No newline at end of file