Browse Source

This is a WAT.

Piotrek Koszuliński 10 years ago
parent
commit
72164b70a9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dev/tasks/docs/plugins/comment-fixer.js

+ 2 - 2
dev/tasks/docs/plugins/comment-fixer.js

@@ -9,8 +9,8 @@ module.exports = {
 		 * @see http://usejsdoc.org/about-plugins.html#event-beforeparse
 		 * @param evt
 		 */
-		beforeParse: function( evt ) {
-			'use strict';
+		beforeParse( evt ) {
+			'use strict'; // WAT... JSDoc fails when you move it to the top of the file.
 
 			let className;
 			let foundClassName = /export default class ([A-Za-z]+)/.exec( evt.source );