File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,9 @@ import {
77 getBindAttr ,
88 camelize ,
99 nextTick ,
10- warn ,
11- setClass
10+ warn
1211} from './util/index'
1312import Watcher from './watcher'
14- import { removeTags } from './parsers/text'
1513import { parseExpression , isSimplePath } from './parsers/expression'
1614
1715function noop ( ) { }
@@ -84,16 +82,7 @@ Directive.prototype._bind = function () {
8482 this . el && this . el . removeAttribute
8583 ) {
8684 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 )
9786 }
9887
9988 // copy def properties
Original file line number Diff line number Diff line change @@ -159,14 +159,3 @@ function inlineFilters (exp, single) {
159159 }
160160 }
161161}
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