mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build: Upgrade to jquery-mousewheel 3.1.12
This commit is contained in:
parent
acfda4be52
commit
1071346aea
@ -230,6 +230,7 @@ grunt.initConfig({
|
|||||||
"qunit/MIT-LICENSE.txt": "qunit/MIT-LICENSE.txt",
|
"qunit/MIT-LICENSE.txt": "qunit/MIT-LICENSE.txt",
|
||||||
|
|
||||||
"jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
|
"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/jshint.js": "jshint/dist/jshint.js",
|
||||||
"jshint/LICENSE": "jshint/LICENSE",
|
"jshint/LICENSE": "jshint/LICENSE",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"jquery": ">=1.6"
|
"jquery": ">=1.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jquery-mousewheel": "3.1.11",
|
"jquery-mousewheel": "3.1.12",
|
||||||
"jshint": "2.4.4",
|
"jshint": "2.4.4",
|
||||||
"qunit": "1.14.0",
|
"qunit": "1.14.0",
|
||||||
|
|
||||||
|
20
external/jquery-mousewheel/LICENSE.txt
vendored
Normal file
20
external/jquery-mousewheel/LICENSE.txt
vendored
Normal 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.
|
@ -1,7 +1,7 @@
|
|||||||
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
||||||
* Licensed under the MIT License (LICENSE.txt).
|
* Licensed under the MIT License (LICENSE.txt).
|
||||||
*
|
*
|
||||||
* Version: 3.1.11
|
* Version: 3.1.12
|
||||||
*
|
*
|
||||||
* Requires: jQuery 1.2.2+
|
* Requires: jQuery 1.2.2+
|
||||||
*/
|
*/
|
||||||
@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var special = $.event.special.mousewheel = {
|
var special = $.event.special.mousewheel = {
|
||||||
version: '3.1.11',
|
version: '3.1.12',
|
||||||
|
|
||||||
setup: function() {
|
setup: function() {
|
||||||
if ( this.addEventListener ) {
|
if ( this.addEventListener ) {
|
||||||
@ -61,11 +61,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getLineHeight: function(elem) {
|
getLineHeight: function(elem) {
|
||||||
var $parent = $(elem)['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
|
var $elem = $(elem),
|
||||||
|
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
|
||||||
if (!$parent.length) {
|
if (!$parent.length) {
|
||||||
$parent = $('body');
|
$parent = $('body');
|
||||||
}
|
}
|
||||||
return parseInt($parent.css('fontSize'), 10);
|
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
|
||||||
},
|
},
|
||||||
|
|
||||||
getPageHeight: function(elem) {
|
getPageHeight: function(elem) {
|
||||||
|
Loading…
Reference in New Issue
Block a user