Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Support terminal directive with new API #4

Merged
merged 1 commit into from
Mar 22, 2016
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vue-transfer-dom
> requires Vue v1.0.14+
> requires Vue v1.0.19+

Transfer DOM to another place (eg. `<body>`).

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ var remove = Vue.util.remove
var createAnchor = Vue.util.createAnchor

// register as terminal directive
Vue.compiler.terminalDirectives.push(name)
Vue.directive(name, {
priority: 2000,
terminal: true,
bind: function () {
var el = this.el
if (!el.__vue__) {
Expand Down