We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9eead1 commit db5f9c8Copy full SHA for db5f9c8
src/directive.js
@@ -301,10 +301,14 @@ Directive.prototype._teardown = function () {
301
*/
302
303
function removeBindAttr (el, name) {
304
- var attr = el.hasAttribute(':' + name)
305
- ? ':' + name
306
- : config.prefix + 'bind:' + name
307
- el.removeAttribute(attr)
+ var attr = ':' + name
+ if (el.hasAttribute(attr)) {
+ el.removeAttribute(attr)
+ }
308
+ attr = config.prefix + 'bind:' + name
309
310
311
312
}
313
314
module.exports = Directive
0 commit comments