diff --git a/jquery.fittext.js b/jquery.fittext.js index 0b3ddef..f9115df 100644 --- a/jquery.fittext.js +++ b/jquery.fittext.js @@ -20,6 +20,10 @@ 'maxFontSize' : Number.POSITIVE_INFINITY }, options); + $.fn.fitText.destroy = function destroy() { + $(window).off('resize.fittext orientationchange.fittext'); + }; + return this.each(function(){ // Store the object