Skip to content
This repository
Browse code

annotations

  • Loading branch information...
commit 9d81cfb7a9f673d03bd943bf5a1b5726e6a8d34f 1 parent 240606d
Josh Perez goatslacker authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 fixmyjs.js
8 fixmyjs.js
@@ -142,6 +142,7 @@
142 142
143 143 // Converts assignments from Object to Literal form.
144 144 //+ arrayLiteral :: String -> String
  145 +// FIXME r10 JSHINT
145 146 arrayLiteral: function (str, o) {
146 147 return str.replace(/new Array(\(\))?(?!.*new Array(\(\))?)/, '[]');
147 148 },
@@ -151,6 +152,7 @@
151 152 // Example:
152 153 //
153 154 // `person['name']` -> `person.name`
  155 +// FIXME r10 JSHINT
154 156 dotNotation: function (str, o) {
155 157 var dot = o.a;
156 158 var rx = new RegExp('\\[[\'"]' +
@@ -281,6 +283,7 @@
281 283 //
282 284 // Example: `delete foo;` -> `foo = undefined;`
283 285 //+ noDeleteVar :: String -> String
  286 +// XXX
284 287 noDeleteVar: function (str, o) {
285 288 var rx = /delete ([\w$_]+)(?!.*delete [\w$_]+)/;
286 289 return str.replace(rx, function (a, b) {
@@ -293,6 +296,7 @@
293 296 //
294 297 // Example: `new Ajax()` -> `Ajax()`
295 298 //+ noNew :: String -> String
  299 +// FIXME r10 JSHINT
296 300 noNew: function (str, o) {
297 301 var rx = /new ([\w$_]+)(?!.*new [\w$_]+)/;
298 302 return str.replace(rx, function (a, b) {
@@ -302,6 +306,7 @@
302 306
303 307 // Converts assignments from Object to Literal form.
304 308 //+ objectLiteral :: String -> String
  309 +// XXX
305 310 objectLiteral: function (str) {
306 311 return str.replace(/new Object(\(\))?(?!.*new Object(\(\))?)/, '{}');
307 312 },
@@ -315,7 +320,7 @@
315 320 //
316 321 // Example: `new Number(16)` -> `Number(16)`
317 322 //+ objNoConstruct :: String -> String
318   -// XXX
  323 +// FIXME r10 JSHINT
319 324 objNoConstruct: function (str) {
320 325 var rx = /new (Number|String|Boolean|Math|JSON)/;
321 326 var exec;
@@ -363,6 +368,7 @@
363 368 //
364 369 // `parseInt('0420')` -> `parseInt('0420', 10)`
365 370 //+ radix :: String -> String
  371 +// FIXME r10 JSHINT
366 372 radix: function (str) {
367 373 var rx = /parseInt\(([^,\)\(]+)\)/;
368 374 var offset = 0;

0 comments on commit 9d81cfb

Please sign in to comment.
Something went wrong with that request. Please try again.