Skip to content

Commit

Permalink
update() method, which updates tooltip content with actual content of…
Browse files Browse the repository at this point in the history
… title attribute (minified file too)
  • Loading branch information
elwin013 committed Jan 7, 2016
1 parent 4ebe05e commit 8dce15f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tooltipsy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tooltipsy.source.js
Expand Up @@ -197,6 +197,14 @@
}
},

update: function() {
this.title = this.$el.attr('title');
if(this.$tipsy) {
this.$tipsy.remove();
}
this.ready = false;
},

defaults: {
alignTo: 'element',
offset: [0, -1],
Expand Down

0 comments on commit 8dce15f

Please sign in to comment.