Skip to content

Commit

Permalink
Remove callback from function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML committed Jul 27, 2015
1 parent 9ba161e commit 3dea451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions textFit.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@
widthOnly: false // if true, textFit will fit text to element width, regardless of text height
};

return function textFit(els, options, callback) {
return function textFit(els, options) {

if (!options) options = {};

if (typeof callback !== 'function') callback = function() {};

// Extend options.
var settings = {};
for(var key in defaultSettings){
Expand Down
2 changes: 1 addition & 1 deletion textFit.min.js

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

0 comments on commit 3dea451

Please sign in to comment.