Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Commit

Permalink
Remove listener leading to memory leak (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldiekmeier authored and yyx990803 committed Dec 8, 2016
1 parent 79793ef commit 6c518d5
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions plugins/extract-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@ module.exports = function (b, opts) {
})
})

b.on('reset', listen)
listen()

function listen () {
b.on('transform', function (tr, file) {
if (tr.vueify) {
tr.on('vueify-style', function (e) {
styles[e.file] = e.style
})
}
})
}
b.on('transform', function (tr, file) {
if (tr.vueify) {
tr.on('vueify-style', function (e) {
styles[e.file] = e.style
})
}
})
}

0 comments on commit 6c518d5

Please sign in to comment.