Skip to content

Commit 15c0752

Browse files
author
Evan You
committed
remove legacy event delegation code
1 parent d740e0e commit 15c0752

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/directives/if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111

1212
update: function (value) {
1313

14-
var el = this.el
14+
var el = this.el
1515

1616
if (!this.parent) { // the node was detached when bound
1717
if (!el.parentNode) {

src/directives/repeat.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ module.exports = {
175175
}
176176

177177
this.reset()
178-
// attach an object to container to hold handlers
179-
this.container.vue_dHandlers = utils.hash()
180178
// if initiating with an empty collection, we need to
181179
// force a compile so that we get all the bindings for
182180
// dependency extraction.
@@ -311,8 +309,7 @@ module.exports = {
311309
data: data,
312310
compilerOptions: {
313311
repeat: true,
314-
parentCompiler: this.compiler,
315-
delegator: ctn
312+
parentCompiler: this.compiler
316313
}
317314
})
318315
item.$index = index
@@ -410,12 +407,6 @@ module.exports = {
410407
}
411408
}
412409
}
413-
var ctn = this.container,
414-
handlers = ctn.vue_dHandlers
415-
for (var key in handlers) {
416-
ctn.removeEventListener(handlers[key].event, handlers[key])
417-
}
418-
ctn.vue_dHandlers = null
419410
},
420411

421412
unbind: function () {

0 commit comments

Comments
 (0)