Skip to content

Commit

Permalink
Version 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Feb 28, 2015
1 parent 886042f commit 166131d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "bigtext",
"version": "0.1.7",
"version": "0.1.8",
"main": ["dist/bigtext.js"],
"ignore": [
"**/.*"
Expand Down
17 changes: 7 additions & 10 deletions dist/bigtext.js
@@ -1,4 +1,4 @@
/*! BigText - v0.1.7 - 2015-02-27
/*! BigText - v0.1.8 - 2015-02-28
* https://github.com/zachleat/bigtext
* Copyright (c) 2015 Zach Leatherman (@zachleat)
* MIT License */
Expand Down Expand Up @@ -49,16 +49,13 @@
}
},
bindResize: function(eventName, resizeFunction) {
if($.throttle) {
// https://github.com/cowboy/jquery-throttle-debounce
$(window).unbind(eventName).bind(eventName, $.throttle(100, resizeFunction));
} else {
if($.fn.smartresize) {
// https://github.com/lrbabe/jquery-smartresize/
eventName = 'smartresize.' + eventName;
var timeoutId;
$(window).unbind(eventName).bind(eventName, function() {
if( timeoutId ) {
clearTimeout( timeoutId );
}
$(window).unbind(eventName).bind(eventName, resizeFunction);
}
timeoutId = setTimeout( resizeFunction, 100 );
});
},
getStyleId: function(id)
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "bigtext",
"title": "BigText",
"version": "0.1.7",
"version": "0.1.8",
"description": "Calculates the font-size and word-spacing needed to match a line of text to a specific width. (jQuery plugin)",
"keywords": [
"grunt",
Expand Down

0 comments on commit 166131d

Please sign in to comment.