8000 fix eslint · macroxing/vue@9edaa9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9edaa9c

Browse files
committed
fix eslint
1 parent 59e2d1c commit 9edaa9c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/directives/model/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ function checkInitialValue () {
193193
*/
194194

195195
function getValue (el, multi) {
196-
var i = el.options.length
197196
var res = multi ? [] : null
198197
var op, val
199198
for (var i = 0, l = el.options.length; i < l; i++) {
@@ -237,5 +236,7 @@ function indexOf (arr, val) {
237236
*/
238237

239238
function equals (a, b) {
239+
/* eslint-disable eqeqeq */
240240
return a == b || JSON.stringify(a) == JSON.stringify(b)
241+
/* eslint-enable eqeqeq */
241242
}

src/observer/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ Observer.create = function (value, vm) {
7878
Observer.prototype.walk = function (obj) {
7979
var keys = Object.keys(obj)
8080
var i = keys.length
81-
var key, prefix
8281
while (i--) {
83-
key = keys[i]
84-
prefix = key.charCodeAt(0)
85-
this.convert(key, obj[key])
82+
this.convert(keys[i], obj[keys[i]])
8683
}
8784
}
8885

0 commit comments

Comments
 (0)
0