Browse Source

fix reorder benchmark

dev
Evan You 9 years ago
parent
commit
45b4b3164a
  1. 2
      benchmarks/reorder-list/index.html
  2. 3
      src/runtime/global-api/index.js

2
benchmarks/reorder-list/index.html

@ -74,7 +74,7 @@ var vm = new Vue({
this.selected = item.id
}),
remove: monitor('remove', function (item) {
this.items.$remove(item)
this.items.splice(this.items.indexOf(item), 1)
})
},
components: {

3
src/runtime/global-api/index.js

@ -4,7 +4,7 @@ import { initUse } from './use'
import { initMixin } from './mixin'
import { initExtend } from './extend'
import { initAssetRegisters } from './assets'
import { remove, nextTick } from '../util/index'
import { nextTick } from '../util/index'
import { set, del } from '../observer/index'
import directives from '../directives/index'
@ -13,7 +13,6 @@ export function initGlobalAPI (Vue) {
Vue.util = util
Vue.set = set
Vue.delete = del
Vue.remove = remove
Vue.nextTick = nextTick
Vue.options = {

Loading…
Cancel
Save