Skip to content

Commit

Permalink
Remove unnecessary arguments in splice
Browse files Browse the repository at this point in the history
  • Loading branch information
ClassicOldSong committed Aug 13, 2017
1 parent d9934f0 commit aea5b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils/dom-arr-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const DOMARR = {
exec()
return this
},
splice({state, key, anchor}, ...args) {
splice(...args) {
if (this.length === 0) return this
const spliced = ARR.splice(ARR.copy(this), ...args)
inform()
Expand Down Expand Up @@ -98,7 +98,7 @@ const defineArr = (arr, info) => {
reverse: {value: DOMARR.reverse.bind(arr, info)},
shift: {value: DOMARR.shift},
sort: {value: DOMARR.sort.bind(arr, info)},
splice: {value: DOMARR.splice.bind(arr, info)},
splice: {value: DOMARR.splice},
unshift: {value: DOMARR.unshift.bind(arr, info)}
})
return arr
Expand Down

0 comments on commit aea5b1f

Please sign in to comment.