Build: Upgrade to jquery-mousewheel 3.1.12

This commit is contained in:
Scott González 2014-07-22 12:13:59 -04:00
parent acfda4be52
commit 1071346aea
4 changed files with 27 additions and 5 deletions

View File

@ -230,6 +230,7 @@ grunt.initConfig({
"qunit/MIT-LICENSE.txt": "qunit/MIT-LICENSE.txt",
"jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
"jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt",
"jshint/jshint.js": "jshint/dist/jshint.js",
"jshint/LICENSE": "jshint/LICENSE",

View File

@ -11,7 +11,7 @@
"jquery": ">=1.6"
},
"devDependencies": {
"jquery-mousewheel": "3.1.11",
"jquery-mousewheel": "3.1.12",
"jshint": "2.4.4",
"qunit": "1.14.0",

20
external/jquery-mousewheel/LICENSE.txt vendored Normal file
View File

@ -0,0 +1,20 @@
Copyright (c) 2013, Brandon Aaron (http://brandon.aaron.sh)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,7 +1,7 @@
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 3.1.11
* Version: 3.1.12
*
* Requires: jQuery 1.2.2+
*/
@ -32,7 +32,7 @@
}
var special = $.event.special.mousewheel = {
version: '3.1.11',
version: '3.1.12',
setup: function() {
if ( this.addEventListener ) {
@ -61,11 +61,12 @@
},
getLineHeight: function(elem) {
var $parent = $(elem)['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
var $elem = $(elem),
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
if (!$parent.length) {
$parent = $('body');
}
return parseInt($parent.css('fontSize'), 10);
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
},
getPageHeight: function(elem) {