Skip to content

Commit

Permalink
Adding the textOverride option to the OverText behavior api
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Feb 5, 2013
1 parent daf36ea commit e5d6284
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Forms/Behavior.OverText.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ name: Behavior.OverText
Behavior.addGlobalFilter('OverText', function(element, api){

//create the overtext instance
var ot = new OverText(element);
var ot = new OverText(element, {
textOverride: api.get('textOverride')
});
if (element.get('class')) {
element.get('class').split(' ').each(function(cls) {
if (cls) ot.text.addClass('overText-'+cls);
Expand Down

0 comments on commit e5d6284

Please sign in to comment.