h2ocube_rails_assets 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/h2ocube_rails_assets.gemspec +1 -1
  4. data/vendor/assets/images/jasny-bootstrap/glyphicons-halflings-white.png +0 -0
  5. data/vendor/assets/images/jasny-bootstrap/glyphicons-halflings.png +0 -0
  6. data/vendor/assets/images/jquery.ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  7. data/vendor/assets/images/jquery.ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  8. data/vendor/assets/images/jquery.ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  9. data/vendor/assets/images/jquery.ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  10. data/vendor/assets/images/jquery.ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  11. data/vendor/assets/images/jquery.ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  12. data/vendor/assets/images/jquery.ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  13. data/vendor/assets/images/jquery.ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  14. data/vendor/assets/images/jquery.ui/ui-icons_222222_256x240.png +0 -0
  15. data/vendor/assets/images/jquery.ui/ui-icons_2e83ff_256x240.png +0 -0
  16. data/vendor/assets/images/jquery.ui/ui-icons_454545_256x240.png +0 -0
  17. data/vendor/assets/images/jquery.ui/ui-icons_888888_256x240.png +0 -0
  18. data/vendor/assets/images/jquery.ui/ui-icons_cd0a0a_256x240.png +0 -0
  19. data/vendor/assets/javascripts/_jasny-bootstrap.js +3060 -0
  20. data/vendor/assets/javascripts/_jquery.Jcrop.js +1694 -0
  21. data/vendor/assets/javascripts/bootstrap.js +2 -1
  22. data/vendor/assets/javascripts/jasny-bootstrap.js +2 -0
  23. data/vendor/assets/javascripts/jquery.Jcrop.js +2 -1695
  24. data/vendor/assets/javascripts/jquery.ui/jquery.ui.accordion.js +2 -2
  25. data/vendor/assets/javascripts/jquery.ui/jquery.ui.autocomplete.js +5 -3
  26. data/vendor/assets/javascripts/jquery.ui/jquery.ui.button.js +3 -3
  27. data/vendor/assets/javascripts/jquery.ui/jquery.ui.core.js +18 -22
  28. data/vendor/assets/javascripts/jquery.ui/jquery.ui.datepicker.js +3 -3
  29. data/vendor/assets/javascripts/jquery.ui/jquery.ui.dialog.js +16 -7
  30. data/vendor/assets/javascripts/jquery.ui/jquery.ui.draggable.js +8 -18
  31. data/vendor/assets/javascripts/jquery.ui/jquery.ui.droppable.js +4 -3
  32. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-blind.js +1 -1
  33. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-bounce.js +1 -1
  34. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-clip.js +1 -1
  35. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-drop.js +1 -1
  36. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-explode.js +1 -1
  37. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-fade.js +1 -1
  38. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-fold.js +1 -1
  39. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-highlight.js +1 -1
  40. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-pulsate.js +1 -1
  41. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-scale.js +1 -1
  42. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-shake.js +1 -1
  43. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-slide.js +1 -1
  44. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect-transfer.js +1 -1
  45. data/vendor/assets/javascripts/jquery.ui/jquery.ui.effect.js +93 -72
  46. data/vendor/assets/javascripts/jquery.ui/jquery.ui.menu.js +2 -2
  47. data/vendor/assets/javascripts/jquery.ui/jquery.ui.mouse.js +2 -2
  48. data/vendor/assets/javascripts/jquery.ui/jquery.ui.position.js +3 -3
  49. data/vendor/assets/javascripts/jquery.ui/jquery.ui.progressbar.js +2 -2
  50. data/vendor/assets/javascripts/jquery.ui/jquery.ui.resizable.js +2 -2
  51. data/vendor/assets/javascripts/jquery.ui/jquery.ui.selectable.js +2 -2
  52. data/vendor/assets/javascripts/jquery.ui/jquery.ui.slider.js +2 -2
  53. data/vendor/assets/javascripts/jquery.ui/jquery.ui.sortable.js +61 -29
  54. data/vendor/assets/javascripts/jquery.ui/jquery.ui.spinner.js +3 -2
  55. data/vendor/assets/javascripts/jquery.ui/jquery.ui.tabs.js +2 -2
  56. data/vendor/assets/javascripts/jquery.ui/jquery.ui.tooltip.js +2 -2
  57. data/vendor/assets/javascripts/jquery.ui/jquery.ui.widget.js +1 -1
  58. data/vendor/assets/stylesheets/jasny-bootstrap.responsive.css +1279 -0
  59. data/vendor/assets/stylesheets/jasny-bootstrap.scss +7607 -0
  60. data/vendor/assets/stylesheets/jquery.Jcrop.scss +145 -66
  61. data/vendor/assets/stylesheets/jquery.ui.scss +75 -64
  62. metadata +10 -3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Accordion 1.10.1
2
+ * jQuery UI Accordion 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -24,7 +24,7 @@ showProps.height = showProps.paddingTop = showProps.paddingBottom =
24
24
  showProps.borderTopWidth = showProps.borderBottomWidth = "show";
25
25
 
26
26
  $.widget( "ui.accordion", {
27
- version: "1.10.1",
27
+ version: "1.10.2",
28
28
  options: {
29
29
  active: 0,
30
30
  animate: {},
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Autocomplete 1.10.1
2
+ * jQuery UI Autocomplete 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -20,7 +20,7 @@
20
20
  var requestIndex = 0;
21
21
 
22
22
  $.widget( "ui.autocomplete", {
23
- version: "1.10.1",
23
+ version: "1.10.2",
24
24
  defaultElement: "<input>",
25
25
  options: {
26
26
  appendTo: null,
@@ -234,7 +234,8 @@ $.widget( "ui.autocomplete", {
234
234
  }
235
235
  },
236
236
  menufocus: function( event, ui ) {
237
- // #7024 - Prevent accidental activation of menu items in Firefox
237
+ // support: Firefox
238
+ // Prevent accidental activation of menu items in Firefox (#7024 #9118)
238
239
  if ( this.isNewMenu ) {
239
240
  this.isNewMenu = false;
240
241
  if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {
@@ -490,6 +491,7 @@ $.widget( "ui.autocomplete", {
490
491
  _suggest: function( items ) {
491
492
  var ul = this.menu.element.empty();
492
493
  this._renderMenu( ul, items );
494
+ this.isNewMenu = true;
493
495
  this.menu.refresh();
494
496
 
495
497
  // size and position menu
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Button 1.10.1
2
+ * jQuery UI Button 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -43,7 +43,7 @@ var lastActive, startXPos, startYPos, clickDragged,
43
43
  };
44
44
 
45
45
  $.widget( "ui.button", {
46
- version: "1.10.1",
46
+ version: "1.10.2",
47
47
  defaultElement: "<button>",
48
48
  options: {
49
49
  disabled: null,
@@ -360,7 +360,7 @@ $.widget( "ui.button", {
360
360
  });
361
361
 
362
362
  $.widget( "ui.buttonset", {
363
- version: "1.10.1",
363
+ version: "1.10.2",
364
364
  options: {
365
365
  items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
366
366
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Core 1.10.1
2
+ * jQuery UI Core 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -13,16 +13,11 @@
13
13
  var uuid = 0,
14
14
  runiqueId = /^ui-id-\d+$/;
15
15
 
16
- // prevent duplicate loading
17
- // this is only a problem because we proxy existing functions
18
- // and we don't want to double proxy them
16
+ // $.ui might exist from components with no dependencies, e.g., $.ui.position
19
17
  $.ui = $.ui || {};
20
- if ( $.ui.version ) {
21
- return;
22
- }
23
18
 
24
19
  $.extend( $.ui, {
25
- version: "1.10.1",
20
+ version: "1.10.2",
26
21
 
27
22
  keyCode: {
28
23
  BACKSPACE: 8,
@@ -52,20 +47,21 @@ $.extend( $.ui, {
52
47
 
53
48
  // plugins
54
49
  $.fn.extend({
55
- _focus: $.fn.focus,
56
- focus: function( delay, fn ) {
57
- return typeof delay === "number" ?
58
- this.each(function() {
59
- var elem = this;
60
- setTimeout(function() {
61
- $( elem ).focus();
62
- if ( fn ) {
63
- fn.call( elem );
64
- }
65
- }, delay );
66
- }) :
67
- this._focus.apply( this, arguments );
68
- },
50
+ focus: (function( orig ) {
51
+ return function( delay, fn ) {
52
+ return typeof delay === "number" ?
53
+ this.each(function() {
54
+ var elem = this;
55
+ setTimeout(function() {
56
+ $( elem ).focus();
57
+ if ( fn ) {
58
+ fn.call( elem );
59
+ }
60
+ }, delay );
61
+ }) :
62
+ orig.apply( this, arguments );
63
+ };
64
+ })( $.fn.focus ),
69
65
 
70
66
  scrollParent: function() {
71
67
  var scrollParent;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Datepicker 1.10.1
2
+ * jQuery UI Datepicker 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -13,7 +13,7 @@
13
13
  */
14
14
  (function( $, undefined ) {
15
15
 
16
- $.extend($.ui, { datepicker: { version: "1.10.1" } });
16
+ $.extend($.ui, { datepicker: { version: "1.10.2" } });
17
17
 
18
18
  var PROP_NAME = "datepicker",
19
19
  dpuuid = new Date().getTime(),
@@ -2041,7 +2041,7 @@ $.fn.datepicker = function(options){
2041
2041
  $.datepicker = new Datepicker(); // singleton instance
2042
2042
  $.datepicker.initialized = false;
2043
2043
  $.datepicker.uuid = new Date().getTime();
2044
- $.datepicker.version = "1.10.1";
2044
+ $.datepicker.version = "1.10.2";
2045
2045
 
2046
2046
  // Workaround for #4055
2047
2047
  // Add another global to avoid noConflict issues with inline event handlers
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Dialog 1.10.1
2
+ * jQuery UI Dialog 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -36,7 +36,7 @@ var sizeRelatedOptions = {
36
36
  };
37
37
 
38
38
  $.widget( "ui.dialog", {
39
- version: "1.10.1",
39
+ version: "1.10.2",
40
40
  options: {
41
41
  appendTo: "body",
42
42
  autoOpen: true,
@@ -692,11 +692,23 @@ $.widget( "ui.dialog", {
692
692
  }
693
693
  },
694
694
 
695
+ _allowInteraction: function( event ) {
696
+ if ( $( event.target ).closest(".ui-dialog").length ) {
697
+ return true;
698
+ }
699
+
700
+ // TODO: Remove hack when datepicker implements
701
+ // the .ui-front logic (#8989)
702
+ return !!$( event.target ).closest(".ui-datepicker").length;
703
+ },
704
+
695
705
  _createOverlay: function() {
696
706
  if ( !this.options.modal ) {
697
707
  return;
698
708
  }
699
709
 
710
+ var that = this,
711
+ widgetFullName = this.widgetFullName;
700
712
  if ( !$.ui.dialog.overlayInstances ) {
701
713
  // Prevent use of anchors and inputs.
702
714
  // We use a delay in case the overlay is created from an
@@ -705,13 +717,10 @@ $.widget( "ui.dialog", {
705
717
  // Handle .dialog().dialog("close") (#4065)
706
718
  if ( $.ui.dialog.overlayInstances ) {
707
719
  this.document.bind( "focusin.dialog", function( event ) {
708
- if ( !$( event.target ).closest(".ui-dialog").length &&
709
- // TODO: Remove hack when datepicker implements
710
- // the .ui-front logic (#8989)
711
- !$( event.target ).closest(".ui-datepicker").length ) {
720
+ if ( !that._allowInteraction( event ) ) {
712
721
  event.preventDefault();
713
722
  $(".ui-dialog:visible:last .ui-dialog-content")
714
- .data("ui-dialog")._focusTabbable();
723
+ .data( widgetFullName )._focusTabbable();
715
724
  }
716
725
  });
717
726
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Draggable 1.10.1
2
+ * jQuery UI Draggable 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -16,7 +16,7 @@
16
16
  (function( $, undefined ) {
17
17
 
18
18
  $.widget("ui.draggable", $.ui.mouse, {
19
- version: "1.10.1",
19
+ version: "1.10.2",
20
20
  widgetEventPrefix: "drag",
21
21
  options: {
22
22
  addClasses: true,
@@ -281,19 +281,9 @@ $.widget("ui.draggable", $.ui.mouse, {
281
281
  },
282
282
 
283
283
  _getHandle: function(event) {
284
-
285
- var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
286
- $(this.options.handle, this.element)
287
- .find("*")
288
- .addBack()
289
- .each(function() {
290
- if(this === event.target) {
291
- handle = true;
292
- }
293
- });
294
-
295
- return handle;
296
-
284
+ return this.options.handle ?
285
+ !!$( event.target ).closest( this.element.find( this.options.handle ) ).length :
286
+ true;
297
287
  },
298
288
 
299
289
  _createHelper: function(event) {
@@ -423,8 +413,8 @@ $.widget("ui.draggable", $.ui.mouse, {
423
413
  this.containment = [
424
414
  (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0),
425
415
  (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0),
426
- (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right,
427
- (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom
416
+ (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderRightWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right,
417
+ (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderBottomWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom
428
418
  ];
429
419
  this.relative_container = c;
430
420
 
@@ -600,7 +590,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
600
590
 
601
591
  //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: "valid/invalid"
602
592
  if(this.shouldRevert) {
603
- this.instance.options.revert = true;
593
+ this.instance.options.revert = this.shouldRevert;
604
594
  }
605
595
 
606
596
  //Trigger the stop of the sortable
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Droppable 1.10.1
2
+ * jQuery UI Droppable 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -21,7 +21,7 @@ function isOverAxis( x, reference, size ) {
21
21
  }
22
22
 
23
23
  $.widget("ui.droppable", {
24
- version: "1.10.1",
24
+ version: "1.10.2",
25
25
  widgetEventPrefix: "drop",
26
26
  options: {
27
27
  accept: "*",
@@ -278,7 +278,8 @@ $.ui.ddmanager = {
278
278
  drop: function(draggable, event) {
279
279
 
280
280
  var dropped = false;
281
- $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {
281
+ // Create a copy of the droppables in case the list changes during the drop (#9116)
282
+ $.each(($.ui.ddmanager.droppables[draggable.options.scope] || []).slice(), function() {
282
283
 
283
284
  if(!this.options) {
284
285
  return;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Blind 1.10.1
2
+ * jQuery UI Effects Blind 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Bounce 1.10.1
2
+ * jQuery UI Effects Bounce 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Clip 1.10.1
2
+ * jQuery UI Effects Clip 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Drop 1.10.1
2
+ * jQuery UI Effects Drop 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Explode 1.10.1
2
+ * jQuery UI Effects Explode 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Fade 1.10.1
2
+ * jQuery UI Effects Fade 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Fold 1.10.1
2
+ * jQuery UI Effects Fold 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Highlight 1.10.1
2
+ * jQuery UI Effects Highlight 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Pulsate 1.10.1
2
+ * jQuery UI Effects Pulsate 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Scale 1.10.1
2
+ * jQuery UI Effects Scale 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Shake 1.10.1
2
+ * jQuery UI Effects Shake 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Slide 1.10.1
2
+ * jQuery UI Effects Slide 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects Transfer 1.10.1
2
+ * jQuery UI Effects Transfer 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects 1.10.1
2
+ * jQuery UI Effects 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * http://api.jqueryui.com/category/effects-core/
10
10
  */
11
- ;(jQuery.effects || (function($, undefined) {
11
+ (function($, undefined) {
12
12
 
13
13
  var dataSpace = "ui-effects-";
14
14
 
@@ -839,39 +839,42 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
839
839
  };
840
840
 
841
841
  $.fn.extend({
842
- _addClass: $.fn.addClass,
843
- addClass: function( classNames, speed, easing, callback ) {
844
- return speed ?
845
- $.effects.animateClass.call( this,
846
- { add: classNames }, speed, easing, callback ) :
847
- this._addClass( classNames );
848
- },
849
-
850
- _removeClass: $.fn.removeClass,
851
- removeClass: function( classNames, speed, easing, callback ) {
852
- return arguments.length > 1 ?
853
- $.effects.animateClass.call( this,
854
- { remove: classNames }, speed, easing, callback ) :
855
- this._removeClass.apply( this, arguments );
856
- },
857
-
858
- _toggleClass: $.fn.toggleClass,
859
- toggleClass: function( classNames, force, speed, easing, callback ) {
860
- if ( typeof force === "boolean" || force === undefined ) {
861
- if ( !speed ) {
862
- // without speed parameter
863
- return this._toggleClass( classNames, force );
842
+ addClass: (function( orig ) {
843
+ return function( classNames, speed, easing, callback ) {
844
+ return speed ?
845
+ $.effects.animateClass.call( this,
846
+ { add: classNames }, speed, easing, callback ) :
847
+ orig.apply( this, arguments );
848
+ };
849
+ })( $.fn.addClass ),
850
+
851
+ removeClass: (function( orig ) {
852
+ return function( classNames, speed, easing, callback ) {
853
+ return arguments.length > 1 ?
854
+ $.effects.animateClass.call( this,
855
+ { remove: classNames }, speed, easing, callback ) :
856
+ orig.apply( this, arguments );
857
+ };
858
+ })( $.fn.removeClass ),
859
+
860
+ toggleClass: (function( orig ) {
861
+ return function( classNames, force, speed, easing, callback ) {
862
+ if ( typeof force === "boolean" || force === undefined ) {
863
+ if ( !speed ) {
864
+ // without speed parameter
865
+ return orig.apply( this, arguments );
866
+ } else {
867
+ return $.effects.animateClass.call( this,
868
+ (force ? { add: classNames } : { remove: classNames }),
869
+ speed, easing, callback );
870
+ }
864
871
  } else {
872
+ // without force parameter
865
873
  return $.effects.animateClass.call( this,
866
- (force ? { add: classNames } : { remove: classNames }),
867
- speed, easing, callback );
874
+ { toggle: classNames }, force, speed, easing );
868
875
  }
869
- } else {
870
- // without force parameter
871
- return $.effects.animateClass.call( this,
872
- { toggle: classNames }, force, speed, easing );
873
- }
874
- },
876
+ };
877
+ })( $.fn.toggleClass ),
875
878
 
876
879
  switchClass: function( remove, add, speed, easing, callback) {
877
880
  return $.effects.animateClass.call( this, {
@@ -890,7 +893,7 @@ $.fn.extend({
890
893
  (function() {
891
894
 
892
895
  $.extend( $.effects, {
893
- version: "1.10.1",
896
+ version: "1.10.2",
894
897
 
895
898
  // Saves a set of properties in a data storage
896
899
  save: function( element, set ) {
@@ -1106,14 +1109,29 @@ function _normalizeArguments( effect, options, speed, callback ) {
1106
1109
  return effect;
1107
1110
  }
1108
1111
 
1109
- function standardSpeed( speed ) {
1110
- // valid standard speeds
1111
- if ( !speed || typeof speed === "number" || $.fx.speeds[ speed ] ) {
1112
+ function standardAnimationOption( option ) {
1113
+ // Valid standard speeds (nothing, number, named speed)
1114
+ if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
1115
+ return true;
1116
+ }
1117
+
1118
+ // Invalid strings - treat as "normal" speed
1119
+ if ( typeof option === "string" && !$.effects.effect[ option ] ) {
1120
+ return true;
1121
+ }
1122
+
1123
+ // Complete callback
1124
+ if ( $.isFunction( option ) ) {
1125
+ return true;
1126
+ }
1127
+
1128
+ // Options hash (but not naming an effect)
1129
+ if ( typeof option === "object" && !option.effect ) {
1112
1130
  return true;
1113
1131
  }
1114
1132
 
1115
- // invalid strings - treat as "normal" speed
1116
- return typeof speed === "string" && !$.effects.effect[ speed ];
1133
+ // Didn't match any standard API
1134
+ return false;
1117
1135
  }
1118
1136
 
1119
1137
  $.fn.extend({
@@ -1150,9 +1168,10 @@ $.fn.extend({
1150
1168
  }
1151
1169
  }
1152
1170
 
1153
- // if the element is hiddden and mode is hide,
1154
- // or element is visible and mode is show
1171
+ // If the element already has the correct final state, delegate to
1172
+ // the core methods so the internal tracking of "olddisplay" works.
1155
1173
  if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
1174
+ elem[ mode ]();
1156
1175
  done();
1157
1176
  } else {
1158
1177
  effectMethod.call( elem[0], args, done );
@@ -1162,39 +1181,41 @@ $.fn.extend({
1162
1181
  return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
1163
1182
  },
1164
1183
 
1165
- _show: $.fn.show,
1166
- show: function( speed ) {
1167
- if ( standardSpeed( speed ) ) {
1168
- return this._show.apply( this, arguments );
1169
- } else {
1170
- var args = _normalizeArguments.apply( this, arguments );
1171
- args.mode = "show";
1172
- return this.effect.call( this, args );
1173
- }
1174
- },
1184
+ show: (function( orig ) {
1185
+ return function( option ) {
1186
+ if ( standardAnimationOption( option ) ) {
1187
+ return orig.apply( this, arguments );
1188
+ } else {
1189
+ var args = _normalizeArguments.apply( this, arguments );
1190
+ args.mode = "show";
1191
+ return this.effect.call( this, args );
1192
+ }
1193
+ };
1194
+ })( $.fn.show ),
1175
1195
 
1176
- _hide: $.fn.hide,
1177
- hide: function( speed ) {
1178
- if ( standardSpeed( speed ) ) {
1179
- return this._hide.apply( this, arguments );
1180
- } else {
1181
- var args = _normalizeArguments.apply( this, arguments );
1182
- args.mode = "hide";
1183
- return this.effect.call( this, args );
1184
- }
1185
- },
1196
+ hide: (function( orig ) {
1197
+ return function( option ) {
1198
+ if ( standardAnimationOption( option ) ) {
1199
+ return orig.apply( this, arguments );
1200
+ } else {
1201
+ var args = _normalizeArguments.apply( this, arguments );
1202
+ args.mode = "hide";
1203
+ return this.effect.call( this, args );
1204
+ }
1205
+ };
1206
+ })( $.fn.hide ),
1186
1207
 
1187
- // jQuery core overloads toggle and creates _toggle
1188
- __toggle: $.fn.toggle,
1189
- toggle: function( speed ) {
1190
- if ( standardSpeed( speed ) || typeof speed === "boolean" || $.isFunction( speed ) ) {
1191
- return this.__toggle.apply( this, arguments );
1192
- } else {
1193
- var args = _normalizeArguments.apply( this, arguments );
1194
- args.mode = "toggle";
1195
- return this.effect.call( this, args );
1196
- }
1197
- },
1208
+ toggle: (function( orig ) {
1209
+ return function( option ) {
1210
+ if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
1211
+ return orig.apply( this, arguments );
1212
+ } else {
1213
+ var args = _normalizeArguments.apply( this, arguments );
1214
+ args.mode = "toggle";
1215
+ return this.effect.call( this, args );
1216
+ }
1217
+ };
1218
+ })( $.fn.toggle ),
1198
1219
 
1199
1220
  // helper functions
1200
1221
  cssUnit: function(key) {
@@ -1265,4 +1286,4 @@ $.each( baseEasings, function( name, easeIn ) {
1265
1286
 
1266
1287
  })();
1267
1288
 
1268
- })(jQuery));
1289
+ })(jQuery);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Menu 1.10.1
2
+ * jQuery UI Menu 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -16,7 +16,7 @@
16
16
  (function( $, undefined ) {
17
17
 
18
18
  $.widget( "ui.menu", {
19
- version: "1.10.1",
19
+ version: "1.10.2",
20
20
  defaultElement: "<ul>",
21
21
  delay: 300,
22
22
  options: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Mouse 1.10.1
2
+ * jQuery UI Mouse 1.10.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2013 jQuery Foundation and other contributors
@@ -19,7 +19,7 @@ $( document ).mouseup( function() {
19
19
  });
20
20
 
21
21
  $.widget("ui.mouse", {
22
- version: "1.10.1",
22
+ version: "1.10.2",
23
23
  options: {
24
24
  cancel: "input,textarea,button,select,option",
25
25
  distance: 1,