From 61ed5a33ace82af3a9dc5968c7262f99904ed2ae Mon Sep 17 00:00:00 2001 From: "yuanxiang.yang" Date: Mon, 29 Aug 2016 17:44:31 +0800 Subject: [PATCH] fix call repeating when use vue.extend --- package.json | 2 +- vue-async-data.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 26418e8..943602c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-async-data", - "version": "1.0.2", + "version": "1.0.3", "description": "async data loading plugin for Vue.js", "main": "vue-async-data.js", "repository": { diff --git a/vue-async-data.js b/vue-async-data.js index e407ac3..95cc26f 100644 --- a/vue-async-data.js +++ b/vue-async-data.js @@ -18,7 +18,10 @@ } }, compiled: function () { - this.reloadAsyncData() + if(!this.__loadingAsyncData){ + this.__loadingAsyncData = true; + this.reloadAsyncData() + } }, methods: { reloadAsyncData: function () {