@@ -89,36 +89,3 @@ func (d *Directive) SetUpdater(fnCallback interface{}) *Directive {
89
89
func (d * Directive ) Register (name string ) {
90
90
js .Global .Get ("Vue" ).Call ("directive" , name , d .Object )
91
91
}
92
-
93
- // In some cases, we may want our directive to be used in the form of
94
- // a custom element rather than as an attribute.
95
- // This is very similar to Angular’s notion of “E” mode directives.
96
- // Element directives provide a lighter-weight alternative to
97
- // full-blown components (which are explained later in the guide).
98
- //
99
- // Element directives cannot accept arguments or
100
- // expressions, but it can read the element’s attributes to
101
- // determine its behavior.
102
- //
103
- // A big difference from normal directives is that
104
- // element directives are terminal, which means once Vue encounters
105
- // an element directive, it will completely skip that element
106
- // - only the element directive itself will be
107
- // able to manipulate that element and its children.
108
- type ElementDirective struct {
109
- * Directive
110
- }
111
-
112
- func NewElementDirective (updaterCallBack ... interface {}) * ElementDirective {
113
- d := & ElementDirective {
114
- Directive : NewDirective (updaterCallBack ... ),
115
- }
116
- if len (updaterCallBack ) > 0 {
117
- d .SetUpdater (updaterCallBack [0 ])
118
- }
119
- return d
120
- }
121
-
122
- func (d * ElementDirective ) Register (name string ) {
123
- js .Global .Get ("Vue" ).Call ("elementDirective" , name , d .Object )
124
- }
0 commit comments