Update jQuery plugins
This commit is contained in:
parent
ab671bd1e1
commit
557dcd8614
2 changed files with 14 additions and 9 deletions
13
vendor/assets/jquery/jquery.cookie.js
vendored
13
vendor/assets/jquery/jquery.cookie.js
vendored
|
@ -1,16 +1,19 @@
|
|||
/*!
|
||||
* jQuery Cookie Plugin v1.4.0
|
||||
* jQuery Cookie Plugin v1.4.1
|
||||
* https://github.com/carhartl/jquery-cookie
|
||||
*
|
||||
* Copyright 2013 Klaus Hartl
|
||||
* Copyright 2006, 2014 Klaus Hartl
|
||||
* Released under the MIT license
|
||||
*/
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as anonymous module.
|
||||
// AMD
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// CommonJS
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
// Browser globals.
|
||||
// Browser globals
|
||||
factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
|
@ -53,7 +56,7 @@
|
|||
|
||||
// Write
|
||||
|
||||
if (value !== undefined && !$.isFunction(value)) {
|
||||
if (arguments.length > 1 && !$.isFunction(value)) {
|
||||
options = $.extend({}, config.defaults, options);
|
||||
|
||||
if (typeof options.expires === 'number') {
|
||||
|
|
10
vendor/assets/jquery/jquery.simulate.js
vendored
10
vendor/assets/jquery/jquery.simulate.js
vendored
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* jQuery Simulate v0.0.1 - simulate browser mouse and keyboard events
|
||||
* jQuery Simulate v1.0.0 - simulate browser mouse and keyboard events
|
||||
* https://github.com/jquery/jquery-simulate
|
||||
*
|
||||
* Copyright 2012 jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: Sun Dec 9 12:15:33 2012 -0500
|
||||
* Date: 2014-08-22
|
||||
*/
|
||||
|
||||
;(function( $, undefined ) {
|
||||
|
@ -144,7 +144,7 @@ $.extend( $.simulate.prototype, {
|
|||
0: 1,
|
||||
1: 4,
|
||||
2: 2
|
||||
}[ event.button ] || event.button;
|
||||
}[ event.button ] || ( event.button === -1 ? 0 : event.button );
|
||||
}
|
||||
|
||||
return event;
|
||||
|
@ -201,7 +201,9 @@ $.extend( $.simulate.prototype, {
|
|||
},
|
||||
|
||||
dispatchEvent: function( elem, type, event ) {
|
||||
if ( elem.dispatchEvent ) {
|
||||
if ( elem[ type ] ) {
|
||||
elem[ type ]();
|
||||
} else if ( elem.dispatchEvent ) {
|
||||
elem.dispatchEvent( event );
|
||||
} else if ( elem.fireEvent ) {
|
||||
elem.fireEvent( "on" + type, event );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue