@@ -67,12 +67,19 @@ Directive.prototype._bind = function () {
6767 // TODO simplify this
6868 if ( name === 'attr' ) {
6969 this . el . removeAttribute ( 'bind-' + this . arg )
70+ this . el . removeAttribute ( ':' + this . arg )
7071 } else if ( name === 'class' || name === 'style' ) {
7172 this . el . removeAttribute ( 'bind-' + name )
73+ this . el . removeAttribute ( ':' + name )
7274 } else if ( name === 'on' ) {
7375 this . el . removeAttribute ( 'on-' + this . arg )
7476 } else if ( name === 'transition' || name === 'el' ) {
75- this . el . removeAttribute ( this . arg ? 'bind-' + name : name )
77+ if ( this . arg ) {
78+ this . el . removeAttribute ( 'bind-' + name )
79+ this . el . removeAttribute ( ':' + name )
80+ } else {
81+ this . el . removeAttribute ( name )
82+ }
7683 }
7784 }
7885 if ( typeof def === 'function' ) {
@@ -197,9 +204,8 @@ Directive.prototype.param = function (name) {
197204 this . el . removeAttribute ( name )
198205 param = ( this . _scope || this . vm ) . $interpolate ( param )
199206 } else {
200- param = this . el . getAttribute ( 'bind-' + name )
207+ param = _ . getBindAttr ( this . el , name )
201208 if ( param != null ) {
202- this . el . removeAttribute ( 'bind-' + name )
203209 param = ( this . _scope || this . vm ) . $eval ( param )
204210 process . env . NODE_ENV !== 'production' && _ . log (
205211 'You are using bind- syntax on "' + name + '", which ' +
0 commit comments