|
@@ -52,7 +52,10 @@ var p = Directive.prototype
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
p._bind = function (def) {
|
|
p._bind = function (def) {
|
|
|
- if (this.name !== 'cloak' && this.el && this.el.removeAttribute) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ (this.name !== 'cloak' || this.vm._isCompiled) &&
|
|
|
|
|
+ this.el && this.el.removeAttribute
|
|
|
|
|
+ ) {
|
|
|
this.el.removeAttribute(config.prefix + this.name)
|
|
this.el.removeAttribute(config.prefix + this.name)
|
|
|
}
|
|
}
|
|
|
if (typeof def === 'function') {
|
|
if (typeof def === 'function') {
|