aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-07-22 12:13:59 -0400
committerScott González <scott.gonzalez@gmail.com>2014-07-22 12:13:59 -0400
commit1071346aea784e0f22c85f260499135f76482f9f (patch)
treee035f555beca3451e2d0b49961cc4518337c8166
parentacfda4be521e48c6b61cc458a715ef163892ac36 (diff)
downloadjquery-ui-1071346aea784e0f22c85f260499135f76482f9f.tar.gz
jquery-ui-1071346aea784e0f22c85f260499135f76482f9f.zip
Build: Upgrade to jquery-mousewheel 3.1.12
-rw-r--r--Gruntfile.js1
-rw-r--r--bower.json2
-rw-r--r--external/jquery-mousewheel/LICENSE.txt20
-rw-r--r--external/jquery-mousewheel/jquery.mousewheel.js9
4 files changed, 27 insertions, 5 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 6a711962b..5f9efd32b 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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",
diff --git a/bower.json b/bower.json
index b3b4cd5ad..6cff526ef 100644
--- a/bower.json
+++ b/bower.json
@@ -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",
diff --git a/external/jquery-mousewheel/LICENSE.txt b/external/jquery-mousewheel/LICENSE.txt
new file mode 100644
index 000000000..ad2020df4
--- /dev/null
+++ b/external/jquery-mousewheel/LICENSE.txt
@@ -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.
diff --git a/external/jquery-mousewheel/jquery.mousewheel.js b/external/jquery-mousewheel/jquery.mousewheel.js
index 70340a57a..6756fa610 100644
--- a/external/jquery-mousewheel/jquery.mousewheel.js
+++ b/external/jquery-mousewheel/jquery.mousewheel.js
@@ -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) {