Skip to content

Commit

Permalink
Replaced jQuery shorthand methods with on() in anticipation of jQuery…
Browse files Browse the repository at this point in the history
… conditional builds
  • Loading branch information
Jack Moore committed Mar 12, 2013
1 parent 11f4855 commit 4d2f47c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions autosize.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"textarea",
"ui"
],
"version": "1.16.5",
"version": "1.16.6",
"author": {
"name": "Jack Moore",
"url": "http://www.jacklmoore.com",
"email": "jack@colorpowered.com"
"email": "hello@jacklmoore.com"
},
"licenses": [
{
Expand All @@ -22,6 +22,6 @@
"homepage": "http://jacklmoore.com/autosize",
"demo": "http://jacklmoore.com/autosize",
"dependencies": {
"jquery": ">=1.4"
"jquery": ">=1.7"
}
}
4 changes: 2 additions & 2 deletions component.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jquery-autosize",
"version": "1.16.5",
"version": "1.16.6",
"main": "./jquery.autosize.js",
"dependencies": {
"jquery": ">=1.4"
"jquery": ">=1.7"
}
}
6 changes: 3 additions & 3 deletions jquery.autosize-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions jquery.autosize.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/*
jQuery Autosize v1.16.5
jQuery Autosize v1.16.6
(c) 2013 Jack Moore - jacklmoore.com
updated: 2013-02-11
updated: 2013-03-12
license: http://www.opensource.org/licenses/mit-license.php
*/



(function ($) {
var
defaults = {
Expand Down Expand Up @@ -166,13 +167,13 @@
ta[oninput] = adjust;
}

$(window).resize(function(){
$(window).on('resize', function(){
active = false;
adjust();
});

// Allow for manual triggering if needed.
$ta.bind('autosize', function(){
$ta.on('autosize', function(){
active = false;
adjust();
});
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Small jQuery plugin to allow dynamic resizing of textarea height, so that it gro

## Changelog

### v1.16.4 - 2013/2/11
### v1.16.6 - 2013/3/12
* Replaced jQuery shorthand methods with on() in anticipation of jQuery 2.0 conditional builds

### v1.16.5 - 2013/3/12
* Fixed a bug where triggering the autosize event immediately after assigning autosize had no effect.

### v1.16.4 - 2013/1/29
Expand Down

0 comments on commit 4d2f47c

Please sign in to comment.