Skip to content

Commit

Permalink
Fix for Jade borking the compressor value
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmarabeas committed Jun 12, 2016
1 parent 34f4353 commit 5d60781
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngFitText",
"version": "4.2.0",
"version": "4.2.1",
"main": [
"dist/ng-FitText.min.js"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-fittext",
"version": "4.2.0",
"version": "4.2.1",
"description": "An AngularJS directive for inflating web type",
"homepage": "https://github.com/patrickmarabeas/ng-FitText.js",
"bugs": "https://github.com/patrickmarabeas/ng-FitText.js/issues",
Expand Down
6 changes: 3 additions & 3 deletions src/ng-FitText.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* ng-FitText.js v4.2.0
* ng-FitText.js v4.2.1
* https://github.com/patrickmarabeas/ng-FitText.js
*
* Original jQuery project: https://github.com/davatron5000/FitText.js
Expand All @@ -8,7 +8,7 @@
* Released under the MIT license
* http://opensource.org/licenses/mit-license.php
*
* Date: 27/04/2016
* Date: 12/06/2016
*/

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

0 comments on commit 5d60781

Please sign in to comment.