소스 검색

Merge pull request #312 from richardwillars/updateAll

updateAll method uses iteratePlugins method
Renée Kooi 7 년 전
부모
커밋
fb5a7fb5cf
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/core/Core.js

+ 2 - 4
src/core/Core.js

@@ -116,10 +116,8 @@ class Uppy {
    *
    */
   updateAll (state) {
-    Object.keys(this.plugins).forEach((pluginType) => {
-      this.plugins[pluginType].forEach((plugin) => {
-        plugin.update(state)
-      })
+    this.iteratePlugins(plugin => {
+      plugin.update(state)
     })
   }