Skip to content

Commit 5d60781

Browse files
Fix for Jade borking the compressor value
1 parent 34f4353 commit 5d60781

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngFitText",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"main": [
55
"dist/ng-FitText.min.js"
66
],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-fittext",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "An AngularJS directive for inflating web type",
55
"homepage": "https://github.com/patrickmarabeas/ng-FitText.js",
66
"bugs": "https://github.com/patrickmarabeas/ng-FitText.js/issues",

src/ng-FitText.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* ng-FitText.js v4.2.0
2+
* ng-FitText.js v4.2.1
33
* https://github.com/patrickmarabeas/ng-FitText.js
44
*
55
* Original jQuery project: https://github.com/davatron5000/FitText.js
@@ -8,7 +8,7 @@
88
* Released under the MIT license
99
* http://opensource.org/licenses/mit-license.php
1010
*
11-
* Date: 27/04/2016
11+
* Date: 12/06/2016
1212
*/
1313

1414
(function(window, document, angular, undefined) {
@@ -44,7 +44,7 @@
4444
, computed = window.getComputedStyle(element[0], null)
4545
, newlines = element.children().length || 1
4646
, loadDelay = attrs.fittextLoadDelay || config.loadDelay
47-
, compressor = attrs.fittext || config.compressor
47+
, compressor = isNaN(attrs.fittext) ? config.compressor : attrs.fittext
4848
, min = attrs.fittextMin || config.min
4949
, max = attrs.fittextMax || config.max
5050
, minFontSize = min ==='inherit'? computed['font-size'] : min

0 commit comments

Comments
 (0)