yano-jquery-rails 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e78922272ab4930923fca28a90fa720c27109ce1
4
- data.tar.gz: 93a9f6e78008e190480b77f2b35a770a30fcea07
3
+ metadata.gz: d6c7b0b407183ef7a152dc10f4cc537d37474c7a
4
+ data.tar.gz: 6ebbf3b9d3b249d9275fc378b1fce81e40ac498b
5
5
  SHA512:
6
- metadata.gz: b8151a4116b2b6a72fc3cdb82c94cb750c435e3e3baa95d7fc9904342f67006fabcc26a2aae313e6384dced285105daadc4c500c0f3d40cfb73d4a9cc5678876
7
- data.tar.gz: f29493897cf477eec05ce60f3472b8f38e3822cfd20f998f8b397d8d52f9767f07cfd2687c5ecefbd00e669811555694c3ca6919db78de4567fc7565300ffcd2
6
+ metadata.gz: a81d027bfd2b69202348e8524019736da8d368bd671b59fd5ea66513dc6fbf8e09faf6feaf2009d2a3dd9b99f432ee512a9d04f8d09f448ef968802f42820df7
7
+ data.tar.gz: 5b416087c4db47a398ee17a812522a9088a7c46da03f4c1f825a0b8e2e71e751d0625a39d4ca19bc319b2a638a635ce6d96424a37ec9b6a631fe5385313701d7
@@ -1,8 +1,8 @@
1
1
  module Yano
2
2
  module Jquery
3
3
  module Rails
4
- VERSION = "2.0.0"
5
- JQUERY_VERSION = "3.0.0"
4
+ VERSION = "2.1.0"
5
+ JQUERY_VERSION = "3.1.0"
6
6
  JQUERY_UI_VERSION = "1.11.4"
7
7
  JQUERY_UJS_VERSION = "1.2.1"
8
8
  end
@@ -1,5 +1,6 @@
1
+ /*eslint-disable no-unused-vars*/
1
2
  /*!
2
- * jQuery JavaScript Library v3.0.0
3
+ * jQuery JavaScript Library v3.1.0
3
4
  * https://jquery.com/
4
5
  *
5
6
  * Includes Sizzle.js
@@ -9,7 +10,7 @@
9
10
  * Released under the MIT license
10
11
  * https://jquery.org/license
11
12
  *
12
- * Date: 2016-06-09T18:02Z
13
+ * Date: 2016-07-07T21:44Z
13
14
  */
14
15
  ( function( global, factory ) {
15
16
 
@@ -37,7 +38,7 @@
37
38
  }
38
39
 
39
40
  // Pass this if window is not defined yet
40
- }( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
41
+ } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
41
42
 
42
43
  // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
43
44
  // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
@@ -81,10 +82,14 @@ var support = {};
81
82
  script.text = code;
82
83
  doc.head.appendChild( script ).parentNode.removeChild( script );
83
84
  }
85
+ /* global Symbol */
86
+ // Defining this global in .eslintrc would create a danger of using the global
87
+ // unguarded in another place, it seems safer to define global only for this module
88
+
84
89
 
85
90
 
86
91
  var
87
- version = "3.0.0",
92
+ version = "3.1.0",
88
93
 
89
94
  // Define a local copy of jQuery
90
95
  jQuery = function( selector, context ) {
@@ -316,7 +321,11 @@ jQuery.extend( {
316
321
  },
317
322
 
318
323
  isEmptyObject: function( obj ) {
324
+
325
+ /* eslint-disable no-unused-vars */
326
+ // See https://github.com/eslint/eslint/issues/6125
319
327
  var name;
328
+
320
329
  for ( name in obj ) {
321
330
  return false;
322
331
  }
@@ -506,15 +515,9 @@ jQuery.extend( {
506
515
  support: support
507
516
  } );
508
517
 
509
- // JSHint would error on this code due to the Symbol not being defined in ES5.
510
- // Defining this global in .jshintrc would create a danger of using the global
511
- // unguarded in another place, it seems safer to just disable JSHint for these
512
- // three lines.
513
- /* jshint ignore: start */
514
518
  if ( typeof Symbol === "function" ) {
515
519
  jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
516
520
  }
517
- /* jshint ignore: end */
518
521
 
519
522
  // Populate the class2type map
520
523
  jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
@@ -2753,6 +2756,7 @@ jQuery.escapeSelector = Sizzle.escape;
2753
2756
 
2754
2757
 
2755
2758
 
2759
+
2756
2760
  var dir = function( elem, dir, until ) {
2757
2761
  var matched = [],
2758
2762
  truncate = until !== undefined;
@@ -2794,7 +2798,6 @@ var risSimple = /^.[^:#\[\.,]*$/;
2794
2798
  function winnow( elements, qualifier, not ) {
2795
2799
  if ( jQuery.isFunction( qualifier ) ) {
2796
2800
  return jQuery.grep( elements, function( elem, i ) {
2797
- /* jshint -W018 */
2798
2801
  return !!qualifier.call( elem, i, elem ) !== not;
2799
2802
  } );
2800
2803
 
@@ -3420,7 +3423,7 @@ function adoptValue( value, resolve, reject ) {
3420
3423
  // For Promises/A+, convert exceptions into rejections
3421
3424
  // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
3422
3425
  // Deferred#then to conditionally suppress rejection.
3423
- } catch ( /*jshint -W002 */ value ) {
3426
+ } catch ( value ) {
3424
3427
 
3425
3428
  // Support: Android 4.0 only
3426
3429
  // Strict mode functions invoked without .call/.apply get global-object context
@@ -3785,12 +3788,29 @@ jQuery.Deferred.exceptionHook = function( error, stack ) {
3785
3788
 
3786
3789
 
3787
3790
 
3791
+ jQuery.readyException = function( error ) {
3792
+ window.setTimeout( function() {
3793
+ throw error;
3794
+ } );
3795
+ };
3796
+
3797
+
3798
+
3799
+
3788
3800
  // The deferred used on DOM ready
3789
3801
  var readyList = jQuery.Deferred();
3790
3802
 
3791
3803
  jQuery.fn.ready = function( fn ) {
3792
3804
 
3793
- readyList.then( fn );
3805
+ readyList
3806
+ .then( fn )
3807
+
3808
+ // Wrap jQuery.readyException in a function so that the lookup
3809
+ // happens at the time of error handling instead of callback
3810
+ // registration.
3811
+ .catch( function( error ) {
3812
+ jQuery.readyException( error );
3813
+ } );
3794
3814
 
3795
3815
  return this;
3796
3816
  };
@@ -3930,7 +3950,6 @@ var acceptData = function( owner ) {
3930
3950
  // - Node.DOCUMENT_NODE
3931
3951
  // - Object
3932
3952
  // - Any
3933
- /* jshint -W018 */
3934
3953
  return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
3935
3954
  };
3936
3955
 
@@ -4431,8 +4450,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
4431
4450
  scale = 1,
4432
4451
  maxIterations = 20,
4433
4452
  currentValue = tween ?
4434
- function() { return tween.cur(); } :
4435
- function() { return jQuery.css( elem, prop, "" ); },
4453
+ function() {
4454
+ return tween.cur();
4455
+ } :
4456
+ function() {
4457
+ return jQuery.css( elem, prop, "" );
4458
+ },
4436
4459
  initial = currentValue(),
4437
4460
  unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
4438
4461
 
@@ -5474,8 +5497,14 @@ jQuery.fn.extend( {
5474
5497
 
5475
5498
 
5476
5499
  var
5500
+
5501
+ /* eslint-disable max-len */
5502
+
5503
+ // See https://github.com/eslint/eslint/issues/3229
5477
5504
  rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
5478
5505
 
5506
+ /* eslint-enable */
5507
+
5479
5508
  // Support: IE <=10 - 11, Edge 12 - 13
5480
5509
  // In IE/Edge using regex groups here causes severe slowdowns.
5481
5510
  // See https://connect.microsoft.com/IE/feedback/details/1736512/
@@ -6631,7 +6660,7 @@ function genFx( type, includeWidth ) {
6631
6660
  // If we include width, step value is 1 to do all cssExpand values,
6632
6661
  // otherwise step value is 2 to skip over Left and Right
6633
6662
  includeWidth = includeWidth ? 1 : 0;
6634
- for ( ; i < 4 ; i += 2 - includeWidth ) {
6663
+ for ( ; i < 4; i += 2 - includeWidth ) {
6635
6664
  which = cssExpand[ i ];
6636
6665
  attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
6637
6666
  }
@@ -6658,7 +6687,6 @@ function createTween( value, prop, animation ) {
6658
6687
  }
6659
6688
 
6660
6689
  function defaultPrefilter( elem, props, opts ) {
6661
- /* jshint validthis: true */
6662
6690
  var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
6663
6691
  isBox = "width" in props || "height" in props,
6664
6692
  anim = this,
@@ -6800,9 +6828,12 @@ function defaultPrefilter( elem, props, opts ) {
6800
6828
  showHide( [ elem ], true );
6801
6829
  }
6802
6830
 
6803
- /* jshint -W083 */
6831
+ /* eslint-disable no-loop-func */
6832
+
6804
6833
  anim.done( function() {
6805
6834
 
6835
+ /* eslint-enable no-loop-func */
6836
+
6806
6837
  // The final step of a "hide" animation is actually hiding the element
6807
6838
  if ( !hidden ) {
6808
6839
  showHide( [ elem ] );
@@ -6887,7 +6918,7 @@ function Animation( elem, properties, options ) {
6887
6918
  index = 0,
6888
6919
  length = animation.tweens.length;
6889
6920
 
6890
- for ( ; index < length ; index++ ) {
6921
+ for ( ; index < length; index++ ) {
6891
6922
  animation.tweens[ index ].run( percent );
6892
6923
  }
6893
6924
 
@@ -6928,7 +6959,7 @@ function Animation( elem, properties, options ) {
6928
6959
  return this;
6929
6960
  }
6930
6961
  stopped = true;
6931
- for ( ; index < length ; index++ ) {
6962
+ for ( ; index < length; index++ ) {
6932
6963
  animation.tweens[ index ].run( 1 );
6933
6964
  }
6934
6965
 
@@ -6946,7 +6977,7 @@ function Animation( elem, properties, options ) {
6946
6977
 
6947
6978
  propFilter( props, animation.opts.specialEasing );
6948
6979
 
6949
- for ( ; index < length ; index++ ) {
6980
+ for ( ; index < length; index++ ) {
6950
6981
  result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
6951
6982
  if ( result ) {
6952
6983
  if ( jQuery.isFunction( result.stop ) ) {
@@ -7000,7 +7031,7 @@ jQuery.Animation = jQuery.extend( Animation, {
7000
7031
  index = 0,
7001
7032
  length = props.length;
7002
7033
 
7003
- for ( ; index < length ; index++ ) {
7034
+ for ( ; index < length; index++ ) {
7004
7035
  prop = props[ index ];
7005
7036
  Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
7006
7037
  Animation.tweeners[ prop ].unshift( callback );
@@ -7861,11 +7892,16 @@ jQuery.extend( {
7861
7892
 
7862
7893
  while ( i-- ) {
7863
7894
  option = options[ i ];
7895
+
7896
+ /* eslint-disable no-cond-assign */
7897
+
7864
7898
  if ( option.selected =
7865
7899
  jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
7866
7900
  ) {
7867
7901
  optionSet = true;
7868
7902
  }
7903
+
7904
+ /* eslint-enable no-cond-assign */
7869
7905
  }
7870
7906
 
7871
7907
  // Force browsers to behave consistently when non-matching value is set
@@ -8574,6 +8610,7 @@ jQuery.extend( {
8574
8610
  processData: true,
8575
8611
  async: true,
8576
8612
  contentType: "application/x-www-form-urlencoded; charset=UTF-8",
8613
+
8577
8614
  /*
8578
8615
  timeout: 0,
8579
8616
  data: null,
@@ -10034,4 +10071,4 @@ if ( !noGlobal ) {
10034
10071
 
10035
10072
 
10036
10073
  return jQuery;
10037
- } ) );
10074
+ } );