Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce7b61 commit 3fdd7f4Copy full SHA for 3fdd7f4
jquery.fittext.js
@@ -19,17 +19,15 @@
19
var compressor = kompressor || 1; // set the compressor
20
21
// Resizer() resizes items based on the object width divided by the compressor * 10
22
- var resizer = function ( obj ) {
23
- obj.css('font-size', Math.min(obj.width() / (compressor*10), origFontSize));
24
- }
+ var resizer = function () {
+ $this.css('font-size', Math.min(obj.width() / (compressor*10), origFontSize));
+ };
25
26
// Call once to set.
27
- resizer($this);
+ resizer();
28
29
// Call on resize. Opera debounces their resize by default.
30
- $(window).resize(function() {
31
32
- });
+ $(window).resize(resizer);
33
34
});
35
0 commit comments