message: feat(bscroll): remove duplicate plugin warn
diff: @@ -7,7 +7,7 @@ import {
  isUndef,
  propertiesProxy,
  ApplyOrder,
  - EventEmitter,
  + EventEmitter
  } from '@better-scroll/shared-utils'
  import { bubbling } from './utils/bubbling'
  import { UnionToIntersection } from './utils/typesHelper'
  @@ -51,7 +51,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  static use(ctor: PluginCtor) {
  const name = ctor.pluginName
  const installed = BScrollConstructor.plugins.some(
  - (plugin) => ctor === plugin.ctor
  + plugin => ctor === plugin.ctor
  )
  if (installed) return BScrollConstructor
  if (isUndef(name)) {
  @@ -60,17 +60,11 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  )
  return BScrollConstructor
  }
  - if (BScrollConstructor.pluginsMap[name]) {
  - warn(
  - `This plugin has been registered, maybe you need change plugin's name`
  - )
  - return BScrollConstructor
  - }
  BScrollConstructor.pluginsMap[name] = true
  BScrollConstructor.plugins.push({
  name,
  applyOrder: ctor.applyOrder,
  - ctor,
  + ctor
  })
  return BScrollConstructor
  }
  @@ -88,7 +82,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  'scrollCancel',
  'touchEnd',
  'flick',
  - 'destroy',
  + 'destroy'
  ])
  const wrapper = getElement(el)
  @@ -111,7 +105,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  'disable',
  'destroy',
  'beforeInitialScrollTo',
  - 'contentChanged',
  + 'contentChanged'
  ])
  this.init(wrapper)
  }
  @@ -135,7 +129,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  }
  return {
  valid,
  - contentChanged,
  + contentChanged
  }
  }
  @@ -161,7 +155,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  const { startX, startY } = this.options
  const position = {
  x: startX,
  - y: startY,
  + y: startY
  }
  // maybe plugins want to control scroll position
  if (
  @@ -178,7 +172,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  .sort((a, b) => {
  const applyOrderMap = {
  [ApplyOrder.Pre]: -1,
  - [ApplyOrder.Post]: 1,
  + [ApplyOrder.Post]: 1
  }
  const aOrder = a.applyOrder ? applyOrderMap[a.applyOrder] : 0
  const bOrder = b.applyOrder ? applyOrderMap[b.applyOrder] : 0
  @@ -216,7 +210,7 @@ export class BScrollConstructor<O = {}> extends EventEmitter {
  this.eventTypes.scrollEnd,
  this.eventTypes.scrollCancel,
  this.eventTypes.touchEnd,
  - this.eventTypes.flick,
  + this.eventTypes.flick
  ])
  }
  