Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,13 @@ export default {
}

function proxyData () {
const initData = this.$_meteorInitData = {}
let meteor = this.$options.meteor
const meteor = this.$options.meteor

if (meteor) {
// Reactive data
for (let key in meteor) {
if (key.charAt(0) !== '$') {
proxyKey.call(this, key)

const func = meteor[key]

if (meteor.$lazy && typeof func === 'function') {
initData[key] = getResult(func.call(this))
}
}
}
}
Expand Down Expand Up @@ -139,7 +132,7 @@ export default {
data () {
return {
$meteor: {
data: this.$_meteorInitData,
data: {},
subs: {},
},
}
Expand Down