File tree 2 files changed +2
-24
lines changed
2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,9 @@ import {
7
7
getBindAttr ,
8
8
camelize ,
9
9
nextTick ,
10
- warn ,
11
- setClass
10
+ warn
12
11
} from './util/index'
13
12
import Watcher from './watcher'
14
- import { removeTags } from './parsers/text'
15
13
import { parseExpression , isSimplePath } from './parsers/expression'
16
14
17
15
function noop ( ) { }
@@ -84,16 +82,7 @@ Directive.prototype._bind = function () {
84
82
this . el && this . el . removeAttribute
85
83
) {
86
84
var attr = descriptor . attr || ( 'v-' + name )
87
- if ( attr !== 'class' ) {
88
- this . el . removeAttribute ( attr )
89
- } else {
90
- // for class interpolations, only remove the parts that
91
- // need to be interpolated.
92
- setClass (
93
- this . el ,
94
- removeTags ( this . el . getAttribute ( 'class' ) ) . trim ( ) . replace ( / \s + / g, ' ' )
95
- )
96
- }
85
+ this . el . removeAttribute ( attr )
97
86
}
98
87
99
88
// copy def properties
Original file line number Diff line number Diff line change @@ -159,14 +159,3 @@ function inlineFilters (exp, single) {
159
159
}
160
160
}
161
161
}
162
-
163
- /**
164
- * Replace all interpolation tags in a piece of text.
165
- *
166
- * @param {String } text
167
- * @return {String }
168
- */
169
-
170
- export function removeTags ( text ) {
171
- return text . replace ( tagRE , '' )
172
- }
You can’t perform that action at this time.
0 commit comments