Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OR-14693 tooltip once set is not removed if cleared

  • Loading branch information...
commit c8c75d0f80b90aa28ec307884391a481016d8eaa 1 parent 5ed3404
@acroyear acroyear authored
View
3  frameworks/desktop/views/button.js
@@ -263,6 +263,9 @@ SC.ButtonView = SC.View.extend(SC.Control, SC.Button, SC.StaticLayout,
if (this.get('localize')) toolTip = toolTip.loc() ;
context.attr('title', toolTip) ;
context.attr('alt', toolTip) ;
+ } else {
+ context.attr('title', '') ;
+ context.attr('alt', '') ;
}
// add some standard attributes & classes.
View
3  frameworks/foundation/views/image.js
@@ -121,6 +121,9 @@ SC.ImageView = SC.View.extend(SC.Control,
if (this.get('localize')) toolTip = toolTip.loc() ;
context.attr('title', toolTip) ;
context.attr('alt', toolTip) ;
+ } else {
+ context.attr('title', '') ;
+ context.attr('alt', '') ;
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.