(jqxhr, textStatus)
| 451 | type: 'GET', |
| 452 | cache: false, |
| 453 | complete (jqxhr, textStatus) { |
| 454 | if (textStatus !== 'success') { |
| 455 | return cb('error', jqxhr.statusText) // eslint-disable-line n/no-callback-literal |
| 456 | } else { |
| 457 | return cb(null, $.parseJSON(jqxhr.responseText)) |
| 458 | } |
| 459 | } |
| 460 | }) |
| 461 | } |
| 462 |