(path)
| 7 | } |
| 8 | |
| 9 | function getAbsolutePath(path) { |
| 10 | var isAbsolute = /^https?:/.test(path); |
| 11 | if (isAbsolute) { return path; }; |
| 12 | var imgEl = _createImageElement(); |
| 13 | imgEl.src = path; |
| 14 | var src = imgEl.src; |
| 15 | imgEl = null; |
| 16 | return src; |
| 17 | } |
| 18 | |
| 19 | function basename(path) { |
| 20 | return path.slice(Math.max(path.lastIndexOf('\\'), path.lastIndexOf('/')) + 1); |
no test coverage detected