Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit cd540b8

Browse files
committedMay 20, 2020
fix _errorLog undefined error
1 parent 2108346 commit cd540b8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-svg-filler",
33
"description": "Vue component for custom your svg file.",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"author": "Pongsatorn Nitithammawoot <biig_pongsatorn@hotmail.com>",
66
"license": "MIT",
77
"main": "dist/vue-svg-filler.min.js",

Diff for: ‎src/vue-svg-filler.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,24 @@ export default {
8080
const tagSvg = elementSvg.getElementsByTagName('svg')[0]
8181
const pathOfSvg = elementSvg.getElementsByTagName('path')[0]
8282
if (!pathOfSvg) {
83-
_errorLog(`No svg path element in your svg file.\nPath : ${source}`)
83+
this._errorLog(`No svg path element in your svg file.\nPath : ${source}`)
8484
return
8585
}
8686
this.viewBox = tagSvg.getAttribute('viewBox')
8787
this.updateSrcSvgElement(pathOfSvg.getAttribute('d'))
8888
this.updateFillColor(this.fill)
8989
this.updateStrokeColor(this.stroke)
9090
} else {
91-
_errorLog(`Can't load element from this path.\nPath : ${source}`)
91+
this._errorLog(`Can't load element from this path.\nPath : ${source}`)
9292
}
9393
}
9494
request.onerror = () => {
95-
_errorLog(`Can't load element from this path.\nPath : ${source}`)
95+
this._errorLog(`Can't load element from this path.\nPath : ${source}`)
9696
}
9797
request.send()
9898
},
9999
updateSrcSvgElement (val) {
100-
val ? this.dataOfPath = val : _errorLog(`Can't get attribute 'd' from your SVG file.`)
100+
val ? this.dataOfPath = val : this._errorLog(`Can't get attribute 'd' from your SVG file.`)
101101
},
102102
updateFillColor (val) {
103103
this.fillColor = val

0 commit comments

Comments
 (0)