paint-rails 0.7.24 → 0.8.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/lib/paint-rails/version.rb +1 -1
  4. data/vendor/assets/stylesheets/bower_components/fastclick/.bower.json +1 -1
  5. data/vendor/assets/stylesheets/bower_components/fontawesome/.bower.json +1 -1
  6. data/vendor/assets/stylesheets/bower_components/foundation/.bower.json +7 -8
  7. data/vendor/assets/stylesheets/bower_components/{jquery/MIT-LICENSE.txt → foundation/LICENSE} +3 -2
  8. data/vendor/assets/stylesheets/bower_components/foundation/README.md +46 -0
  9. data/vendor/assets/stylesheets/bower_components/foundation/bower.json +2 -4
  10. data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.css +417 -162
  11. data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.css.map +1 -1
  12. data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.min.css +1 -1
  13. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation.js +386 -197
  14. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation.min.js +5 -5
  15. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.abide.js +42 -24
  16. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.accordion.js +39 -2
  17. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.alert.js +1 -1
  18. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.clearing.js +5 -5
  19. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.dropdown.js +17 -12
  20. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.equalizer.js +1 -1
  21. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.interchange.js +3 -2
  22. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.joyride.js +53 -50
  23. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.js +24 -17
  24. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.magellan.js +4 -5
  25. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.offcanvas.js +75 -2
  26. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.orbit.js +1 -1
  27. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.reveal.js +40 -16
  28. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.slider.js +21 -6
  29. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.tab.js +25 -27
  30. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.tooltip.js +24 -15
  31. data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.topbar.js +11 -11
  32. data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/jquery.js +3 -4
  33. data/vendor/assets/stylesheets/bower_components/foundation/package.json +5 -1
  34. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation.scss +0 -2
  35. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/_functions.scss +2 -2
  36. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/_settings.scss +6 -3
  37. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_accordion.scss +6 -2
  38. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +2 -1
  39. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_button-groups.scss +1 -0
  40. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_buttons.scss +18 -13
  41. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_dropdown.scss +3 -2
  42. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_forms.scss +21 -23
  43. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_global.scss +73 -9
  44. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_grid.scss +15 -15
  45. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_inline-lists.scss +2 -1
  46. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_joyride.scss +1 -1
  47. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_offcanvas.scss +92 -4
  48. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_pagination.scss +1 -0
  49. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_progress-bars.scss +6 -0
  50. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_range-slider.scss +2 -2
  51. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_reveal.scss +3 -0
  52. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tabs.scss +1 -1
  53. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tooltips.scss +1 -1
  54. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_top-bar.scss +11 -3
  55. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_type.scss +73 -12
  56. data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_visibility.scss +8 -75
  57. data/vendor/assets/stylesheets/bower_components/jquery-placeholder/.bower.json +1 -1
  58. data/vendor/assets/stylesheets/bower_components/jquery.cookie/.bower.json +1 -1
  59. data/vendor/assets/stylesheets/bower_components/jquery/.bower.json +7 -20
  60. data/vendor/assets/stylesheets/bower_components/jquery/AUTHORS.txt +278 -0
  61. data/vendor/assets/stylesheets/bower_components/jquery/LICENSE.txt +36 -0
  62. data/vendor/assets/stylesheets/bower_components/jquery/README.md +65 -0
  63. data/vendor/assets/stylesheets/bower_components/jquery/bower.json +2 -16
  64. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.js +2590 -1958
  65. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.min.js +4 -5
  66. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.min.map +1 -1
  67. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.slim.js +7877 -0
  68. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.slim.min.js +4 -0
  69. data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.slim.min.map +1 -0
  70. data/vendor/assets/stylesheets/bower_components/jquery/sizzle/LICENSE.txt +36 -0
  71. data/vendor/assets/stylesheets/bower_components/jquery/{src/sizzle → sizzle}/dist/sizzle.js +236 -160
  72. data/vendor/assets/stylesheets/bower_components/jquery/sizzle/dist/sizzle.min.js +3 -0
  73. data/vendor/assets/stylesheets/bower_components/jquery/sizzle/dist/sizzle.min.map +1 -0
  74. data/vendor/assets/stylesheets/bower_components/jquery/src/.jshintrc +29 -0
  75. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax.js +116 -57
  76. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/jsonp.js +25 -14
  77. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/load.js +20 -12
  78. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/parseJSON.js +2 -2
  79. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/parseXML.js +4 -5
  80. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/script.js +16 -12
  81. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/var/location.js +3 -0
  82. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/var/nonce.js +2 -2
  83. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/var/rquery.js +3 -3
  84. data/vendor/assets/stylesheets/bower_components/jquery/src/ajax/xhr.js +73 -42
  85. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes.js +2 -2
  86. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/attr.js +49 -48
  87. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/classes.js +86 -67
  88. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/prop.js +63 -32
  89. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/support.js +6 -5
  90. data/vendor/assets/stylesheets/bower_components/jquery/src/attributes/val.js +40 -24
  91. data/vendor/assets/stylesheets/bower_components/jquery/src/callbacks.js +114 -87
  92. data/vendor/assets/stylesheets/bower_components/jquery/src/core.js +77 -85
  93. data/vendor/assets/stylesheets/bower_components/jquery/src/core/DOMEval.js +14 -0
  94. data/vendor/assets/stylesheets/bower_components/jquery/src/core/access.js +11 -6
  95. data/vendor/assets/stylesheets/bower_components/jquery/src/core/init.js +27 -16
  96. data/vendor/assets/stylesheets/bower_components/jquery/src/core/parseHTML.js +10 -8
  97. data/vendor/assets/stylesheets/bower_components/jquery/src/core/ready.js +20 -14
  98. data/vendor/assets/stylesheets/bower_components/jquery/src/core/support.js +18 -0
  99. data/vendor/assets/stylesheets/bower_components/jquery/src/core/var/rsingleTag.js +4 -3
  100. data/vendor/assets/stylesheets/bower_components/jquery/src/css.js +120 -55
  101. data/vendor/assets/stylesheets/bower_components/jquery/src/css/addGetHookIf.js +5 -3
  102. data/vendor/assets/stylesheets/bower_components/jquery/src/css/adjustCSS.js +65 -0
  103. data/vendor/assets/stylesheets/bower_components/jquery/src/css/curCSS.js +20 -17
  104. data/vendor/assets/stylesheets/bower_components/jquery/src/css/defaultDisplay.js +16 -14
  105. data/vendor/assets/stylesheets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +9 -6
  106. data/vendor/assets/stylesheets/bower_components/jquery/src/css/showHide.js +48 -0
  107. data/vendor/assets/stylesheets/bower_components/jquery/src/css/support.js +86 -61
  108. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/cssExpand.js +2 -2
  109. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/getStyles.js +8 -5
  110. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/isHidden.js +6 -3
  111. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/rmargin.js +3 -3
  112. data/vendor/assets/stylesheets/bower_components/jquery/src/css/var/rnumnonpx.js +2 -2
  113. data/vendor/assets/stylesheets/bower_components/jquery/src/css/{swap.js → var/swap.js} +3 -7
  114. data/vendor/assets/stylesheets/bower_components/jquery/src/data.js +49 -40
  115. data/vendor/assets/stylesheets/bower_components/jquery/src/data/Data.js +93 -74
  116. data/vendor/assets/stylesheets/bower_components/jquery/src/data/support.js +23 -0
  117. data/vendor/assets/stylesheets/bower_components/jquery/src/data/var/acceptData.js +18 -0
  118. data/vendor/assets/stylesheets/bower_components/jquery/src/data/var/{data_priv.js → dataPriv.js} +2 -2
  119. data/vendor/assets/stylesheets/bower_components/jquery/src/data/var/{data_user.js → dataUser.js} +2 -2
  120. data/vendor/assets/stylesheets/bower_components/jquery/src/deferred.js +34 -25
  121. data/vendor/assets/stylesheets/bower_components/jquery/src/deferred/exceptionHook.js +19 -0
  122. data/vendor/assets/stylesheets/bower_components/jquery/src/deprecated.js +27 -8
  123. data/vendor/assets/stylesheets/bower_components/jquery/src/dimensions.js +9 -5
  124. data/vendor/assets/stylesheets/bower_components/jquery/src/effects.js +96 -115
  125. data/vendor/assets/stylesheets/bower_components/jquery/src/effects/Tween.js +14 -7
  126. data/vendor/assets/stylesheets/bower_components/jquery/src/effects/animatedSelector.js +4 -4
  127. data/vendor/assets/stylesheets/bower_components/jquery/src/effects/support.js +58 -0
  128. data/vendor/assets/stylesheets/bower_components/jquery/src/event.js +167 -325
  129. data/vendor/assets/stylesheets/bower_components/jquery/src/event/ajax.js +11 -4
  130. data/vendor/assets/stylesheets/bower_components/jquery/src/event/alias.js +11 -23
  131. data/vendor/assets/stylesheets/bower_components/jquery/src/event/focusin.js +53 -0
  132. data/vendor/assets/stylesheets/bower_components/jquery/src/event/support.js +3 -3
  133. data/vendor/assets/stylesheets/bower_components/jquery/src/event/trigger.js +199 -0
  134. data/vendor/assets/stylesheets/bower_components/jquery/src/exports/amd.js +3 -3
  135. data/vendor/assets/stylesheets/bower_components/jquery/src/exports/global.js +2 -8
  136. data/vendor/assets/stylesheets/bower_components/jquery/src/intro.js +1 -1
  137. data/vendor/assets/stylesheets/bower_components/jquery/src/jquery.js +5 -5
  138. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation.js +206 -305
  139. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/_evalUrl.js +6 -4
  140. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/buildFragment.js +102 -0
  141. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/createSafeFragment.js +20 -0
  142. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/getAll.js +21 -0
  143. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/setGlobalEval.js +20 -0
  144. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/support.js +7 -6
  145. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/var/nodeNames.js +5 -0
  146. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -3
  147. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  148. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/var/rscriptType.js +3 -0
  149. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/var/rtagName.js +3 -0
  150. data/vendor/assets/stylesheets/bower_components/jquery/src/manipulation/wrapMap.js +27 -0
  151. data/vendor/assets/stylesheets/bower_components/jquery/src/offset.js +40 -29
  152. data/vendor/assets/stylesheets/bower_components/jquery/src/outro.js +1 -0
  153. data/vendor/assets/stylesheets/bower_components/jquery/src/queue.js +23 -22
  154. data/vendor/assets/stylesheets/bower_components/jquery/src/queue/delay.js +6 -6
  155. data/vendor/assets/stylesheets/bower_components/jquery/src/selector-native.js +107 -68
  156. data/vendor/assets/stylesheets/bower_components/jquery/src/selector-sizzle.js +5 -5
  157. data/vendor/assets/stylesheets/bower_components/jquery/src/selector.js +1 -1
  158. data/vendor/assets/stylesheets/bower_components/jquery/src/serialize.js +28 -14
  159. data/vendor/assets/stylesheets/bower_components/jquery/src/support.js +63 -0
  160. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing.js +32 -56
  161. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing/findFilter.js +13 -13
  162. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing/var/dir.js +20 -0
  163. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing/var/rneedsContext.js +2 -2
  164. data/vendor/assets/stylesheets/bower_components/jquery/src/traversing/var/siblings.js +15 -0
  165. data/vendor/assets/stylesheets/bower_components/jquery/src/var/arr.js +2 -2
  166. data/vendor/assets/stylesheets/bower_components/jquery/src/var/class2type.js +3 -2
  167. data/vendor/assets/stylesheets/bower_components/jquery/src/var/concat.js +2 -2
  168. data/vendor/assets/stylesheets/bower_components/jquery/src/var/deletedIds.js +3 -0
  169. data/vendor/assets/stylesheets/bower_components/jquery/src/var/document.js +3 -0
  170. data/vendor/assets/stylesheets/bower_components/jquery/src/var/documentElement.js +5 -0
  171. data/vendor/assets/stylesheets/bower_components/jquery/src/var/hasOwn.js +2 -2
  172. data/vendor/assets/stylesheets/bower_components/jquery/src/var/indexOf.js +2 -2
  173. data/vendor/assets/stylesheets/bower_components/jquery/src/var/pnum.js +3 -3
  174. data/vendor/assets/stylesheets/bower_components/jquery/src/var/push.js +2 -2
  175. data/vendor/assets/stylesheets/bower_components/jquery/src/var/rcssNum.js +7 -0
  176. data/vendor/assets/stylesheets/bower_components/jquery/src/var/rnotwhite.js +3 -3
  177. data/vendor/assets/stylesheets/bower_components/jquery/src/var/slice.js +2 -2
  178. data/vendor/assets/stylesheets/bower_components/jquery/src/var/support.js +3 -2
  179. data/vendor/assets/stylesheets/bower_components/jquery/src/var/toString.js +2 -2
  180. data/vendor/assets/stylesheets/bower_components/jquery/src/wrap.js +19 -19
  181. data/vendor/assets/stylesheets/bower_components/modernizr/.bower.json +2 -2
  182. data/vendor/assets/stylesheets/{Brocfile.js → paint/Brocfile.js} +0 -0
  183. data/vendor/assets/stylesheets/{Gemfile → paint/Gemfile} +0 -0
  184. data/vendor/assets/stylesheets/{Gemfile.lock → paint/Gemfile.lock} +0 -0
  185. data/vendor/assets/stylesheets/paint/bin/ci +6 -0
  186. data/vendor/assets/stylesheets/paint/bin/docs +8 -0
  187. data/vendor/assets/stylesheets/{bin → paint/bin}/lint +0 -0
  188. data/vendor/assets/stylesheets/{bin → paint/bin}/setup +0 -0
  189. data/vendor/assets/stylesheets/{circle.yml → paint/circle.yml} +0 -0
  190. data/vendor/assets/stylesheets/{components → paint/components}/_button.scss +111 -35
  191. data/vendor/assets/stylesheets/paint/components/_color.scss +162 -0
  192. data/vendor/assets/stylesheets/{components → paint/components}/_dropdown.scss +12 -6
  193. data/vendor/assets/stylesheets/{components → paint/components}/_flip-panel.scss +68 -7
  194. data/vendor/assets/stylesheets/paint/components/_form.scss +882 -0
  195. data/vendor/assets/stylesheets/{components → paint/components}/_grid.scss +34 -1
  196. data/vendor/assets/stylesheets/paint/components/_icon.scss +100 -0
  197. data/vendor/assets/stylesheets/paint/components/_label.scss +125 -0
  198. data/vendor/assets/stylesheets/{components → paint/components}/_layout.scss +61 -15
  199. data/vendor/assets/stylesheets/paint/components/_modal.scss +165 -0
  200. data/vendor/assets/stylesheets/paint/components/_navigation.scss +572 -0
  201. data/vendor/assets/stylesheets/paint/components/_notification.scss +124 -0
  202. data/vendor/assets/stylesheets/{components → paint/components}/_panel.scss +51 -16
  203. data/vendor/assets/stylesheets/{components → paint/components}/_progress-bar.scss +0 -0
  204. data/vendor/assets/stylesheets/{components → paint/components}/_quick-jump.scss +11 -13
  205. data/vendor/assets/stylesheets/paint/components/_side-panel.scss +248 -0
  206. data/vendor/assets/stylesheets/paint/components/_tab.scss +164 -0
  207. data/vendor/assets/stylesheets/{components → paint/components}/_table.scss +10 -10
  208. data/vendor/assets/stylesheets/{components → paint/components}/_typography.scss +4 -7
  209. data/vendor/assets/stylesheets/{components → paint/components}/_vertical-align.scss +0 -0
  210. data/vendor/assets/stylesheets/{globals → paint/globals}/_functions.scss +3 -3
  211. data/vendor/assets/stylesheets/{globals → paint/globals}/_mixins.scss +3 -2
  212. data/vendor/assets/stylesheets/{globals → paint/globals}/_settings.scss +15 -1
  213. data/vendor/assets/stylesheets/{paint.scss → paint/paint.scss} +11 -0
  214. metadata +78 -39
  215. data/vendor/assets/images/logo.png +0 -0
  216. data/vendor/assets/stylesheets/bin/ci +0 -6
  217. data/vendor/assets/stylesheets/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  218. data/vendor/assets/stylesheets/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  219. data/vendor/assets/stylesheets/bower_components/jquery/src/var/strundefined.js +0 -3
  220. data/vendor/assets/stylesheets/components/_form.scss +0 -346
  221. data/vendor/assets/stylesheets/components/_icon.scss +0 -4
  222. data/vendor/assets/stylesheets/components/_label.scss +0 -3
  223. data/vendor/assets/stylesheets/components/_side-panel.scss +0 -154
@@ -0,0 +1,23 @@
1
+ define( [
2
+ "../var/document",
3
+ "../var/support"
4
+ ], function( document, support ) {
5
+
6
+ ( function() {
7
+ var div = document.createElement( "div" );
8
+
9
+ // Support: IE<9
10
+ support.deleteExpando = true;
11
+ try {
12
+ delete div.test;
13
+ } catch ( e ) {
14
+ support.deleteExpando = false;
15
+ }
16
+
17
+ // Null elements to avoid leaks in IE.
18
+ div = null;
19
+ } )();
20
+
21
+ return support;
22
+
23
+ } );
@@ -0,0 +1,18 @@
1
+ define( function() {
2
+
3
+ /**
4
+ * Determines whether an object can have data
5
+ */
6
+ return function( owner ) {
7
+
8
+ // Accepts only:
9
+ // - Node
10
+ // - Node.ELEMENT_NODE
11
+ // - Node.DOCUMENT_NODE
12
+ // - Object
13
+ // - Any
14
+ /* jshint -W018 */
15
+ return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
16
+ };
17
+
18
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "../Data"
3
3
  ], function( Data ) {
4
4
  return new Data();
5
- });
5
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "../Data"
3
3
  ], function( Data ) {
4
4
  return new Data();
5
- });
5
+ } );
@@ -1,17 +1,18 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
3
  "./var/slice",
4
4
  "./callbacks"
5
5
  ], function( jQuery, slice ) {
6
6
 
7
- jQuery.extend({
7
+ jQuery.extend( {
8
8
 
9
9
  Deferred: function( func ) {
10
10
  var tuples = [
11
+
11
12
  // action, add listener, listener list, final state
12
- [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
13
- [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
14
- [ "notify", "progress", jQuery.Callbacks("memory") ]
13
+ [ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
14
+ [ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
15
+ [ "notify", "progress", jQuery.Callbacks( "memory" ) ]
15
16
  ],
16
17
  state = "pending",
17
18
  promise = {
@@ -24,25 +25,30 @@ jQuery.extend({
24
25
  },
25
26
  then: function( /* fnDone, fnFail, fnProgress */ ) {
26
27
  var fns = arguments;
27
- return jQuery.Deferred(function( newDefer ) {
28
+ return jQuery.Deferred( function( newDefer ) {
28
29
  jQuery.each( tuples, function( i, tuple ) {
29
30
  var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
31
+
30
32
  // deferred[ done | fail | progress ] for forwarding actions to newDefer
31
- deferred[ tuple[1] ](function() {
33
+ deferred[ tuple[ 1 ] ]( function() {
32
34
  var returned = fn && fn.apply( this, arguments );
33
35
  if ( returned && jQuery.isFunction( returned.promise ) ) {
34
36
  returned.promise()
37
+ .progress( newDefer.notify )
35
38
  .done( newDefer.resolve )
36
- .fail( newDefer.reject )
37
- .progress( newDefer.notify );
39
+ .fail( newDefer.reject );
38
40
  } else {
39
- newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
41
+ newDefer[ tuple[ 0 ] + "With" ](
42
+ this === promise ? newDefer.promise() : this,
43
+ fn ? [ returned ] : arguments
44
+ );
40
45
  }
41
- });
42
- });
46
+ } );
47
+ } );
43
48
  fns = null;
44
- }).promise();
49
+ } ).promise();
45
50
  },
51
+
46
52
  // Get a promise for this deferred
47
53
  // If obj is provided, the promise aspect is added to the object
48
54
  promise: function( obj ) {
@@ -60,11 +66,12 @@ jQuery.extend({
60
66
  stateString = tuple[ 3 ];
61
67
 
62
68
  // promise[ done | fail | progress ] = list.add
63
- promise[ tuple[1] ] = list.add;
69
+ promise[ tuple[ 1 ] ] = list.add;
64
70
 
65
71
  // Handle state
66
72
  if ( stateString ) {
67
- list.add(function() {
73
+ list.add( function() {
74
+
68
75
  // state = [ resolved | rejected ]
69
76
  state = stateString;
70
77
 
@@ -73,12 +80,12 @@ jQuery.extend({
73
80
  }
74
81
 
75
82
  // deferred[ resolve | reject | notify ]
76
- deferred[ tuple[0] ] = function() {
77
- deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
83
+ deferred[ tuple[ 0 ] ] = function() {
84
+ deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
78
85
  return this;
79
86
  };
80
- deferred[ tuple[0] + "With" ] = list.fireWith;
81
- });
87
+ deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
88
+ } );
82
89
 
83
90
  // Make the deferred a promise
84
91
  promise.promise( deferred );
@@ -99,9 +106,11 @@ jQuery.extend({
99
106
  length = resolveValues.length,
100
107
 
101
108
  // the count of uncompleted subordinates
102
- remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
109
+ remaining = length !== 1 ||
110
+ ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
103
111
 
104
- // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
112
+ // the master Deferred.
113
+ // If resolveValues consist of only a single Deferred, just use that.
105
114
  deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
106
115
 
107
116
  // Update function for both resolve and progress values
@@ -127,9 +136,9 @@ jQuery.extend({
127
136
  for ( ; i < length; i++ ) {
128
137
  if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
129
138
  resolveValues[ i ].promise()
139
+ .progress( updateFunc( i, progressContexts, progressValues ) )
130
140
  .done( updateFunc( i, resolveContexts, resolveValues ) )
131
- .fail( deferred.reject )
132
- .progress( updateFunc( i, progressContexts, progressValues ) );
141
+ .fail( deferred.reject );
133
142
  } else {
134
143
  --remaining;
135
144
  }
@@ -143,7 +152,7 @@ jQuery.extend({
143
152
 
144
153
  return deferred.promise();
145
154
  }
146
- });
155
+ } );
147
156
 
148
157
  return jQuery;
149
- });
158
+ } );
@@ -0,0 +1,19 @@
1
+ define( [
2
+ "../core",
3
+ "../deferred"
4
+ ], function( jQuery ) {
5
+
6
+ // These usually indicate a programmer mistake during development,
7
+ // warn about them ASAP rather than swallowing them by default.
8
+ var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
9
+
10
+ jQuery.Deferred.exceptionHook = function( error, stack ) {
11
+
12
+ // Support: IE9
13
+ // Console exists when dev tools are open, which can happen at any time
14
+ if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
15
+ window.console.warn( "jQuery.Deferred exception: " + error.message, stack );
16
+ }
17
+ };
18
+
19
+ } );
@@ -1,13 +1,32 @@
1
- define([
2
- "./core",
3
- "./traversing"
1
+ define( [
2
+ "./core"
4
3
  ], function( jQuery ) {
5
4
 
6
- // The number of elements contained in the matched element set
7
- jQuery.fn.size = function() {
8
- return this.length;
9
- };
5
+ jQuery.fn.extend( {
6
+
7
+ bind: function( types, data, fn ) {
8
+ return this.on( types, null, data, fn );
9
+ },
10
+ unbind: function( types, fn ) {
11
+ return this.off( types, null, fn );
12
+ },
13
+
14
+ delegate: function( selector, types, data, fn ) {
15
+ return this.on( types, selector, data, fn );
16
+ },
17
+ undelegate: function( selector, types, fn ) {
18
+
19
+ // ( namespace ) or ( selector, types [, fn] )
20
+ return arguments.length === 1 ?
21
+ this.off( selector, "**" ) :
22
+ this.off( types, selector || "**", fn );
23
+ },
24
+ size: function() {
25
+ return this.length;
26
+ }
27
+ } );
10
28
 
11
29
  jQuery.fn.andSelf = jQuery.fn.addBack;
12
30
 
13
- });
31
+ } );
32
+
@@ -1,4 +1,4 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
3
  "./core/access",
4
4
  "./css"
@@ -6,7 +6,9 @@ define([
6
6
 
7
7
  // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
8
8
  jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
9
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
9
+ jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
10
+ function( defaultExtra, funcName ) {
11
+
10
12
  // Margin is only for outerHeight, outerWidth
11
13
  jQuery.fn[ funcName ] = function( margin, value ) {
12
14
  var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
@@ -16,6 +18,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
16
18
  var doc;
17
19
 
18
20
  if ( jQuery.isWindow( elem ) ) {
21
+
19
22
  // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
20
23
  // isn't a whole lot we can do. See pull request at this URL for discussion:
21
24
  // https://github.com/jquery/jquery/pull/764
@@ -36,6 +39,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
36
39
  }
37
40
 
38
41
  return value === undefined ?
42
+
39
43
  // Get width or height on the element, requesting but not forcing parseFloat
40
44
  jQuery.css( elem, type, extra ) :
41
45
 
@@ -43,8 +47,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
43
47
  jQuery.style( elem, type, value, extra );
44
48
  }, type, chainable ? margin : undefined, chainable, null );
45
49
  };
46
- });
47
- });
50
+ } );
51
+ } );
48
52
 
49
53
  return jQuery;
50
- });
54
+ } );
@@ -1,10 +1,13 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
- "./var/pnum",
3
+ "./var/document",
4
+ "./var/rcssNum",
4
5
  "./css/var/cssExpand",
6
+ "./var/rnotwhite",
5
7
  "./css/var/isHidden",
8
+ "./css/adjustCSS",
6
9
  "./css/defaultDisplay",
7
- "./data/var/data_priv",
10
+ "./data/var/dataPriv",
8
11
 
9
12
  "./core/init",
10
13
  "./effects/Tween",
@@ -12,70 +15,19 @@ define([
12
15
  "./css",
13
16
  "./deferred",
14
17
  "./traversing"
15
- ], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay, data_priv ) {
18
+ ], function( jQuery, document, rcssNum, cssExpand, rnotwhite,
19
+ isHidden, adjustCSS, defaultDisplay, dataPriv ) {
16
20
 
17
21
  var
18
22
  fxNow, timerId,
19
23
  rfxtypes = /^(?:toggle|show|hide)$/,
20
- rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),
21
- rrun = /queueHooks$/,
22
- animationPrefilters = [ defaultPrefilter ],
23
- tweeners = {
24
- "*": [ function( prop, value ) {
25
- var tween = this.createTween( prop, value ),
26
- target = tween.cur(),
27
- parts = rfxnum.exec( value ),
28
- unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
29
-
30
- // Starting value computation is required for potential unit mismatches
31
- start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
32
- rfxnum.exec( jQuery.css( tween.elem, prop ) ),
33
- scale = 1,
34
- maxIterations = 20;
35
-
36
- if ( start && start[ 3 ] !== unit ) {
37
- // Trust units reported by jQuery.css
38
- unit = unit || start[ 3 ];
39
-
40
- // Make sure we update the tween properties later on
41
- parts = parts || [];
42
-
43
- // Iteratively approximate from a nonzero starting point
44
- start = +target || 1;
45
-
46
- do {
47
- // If previous iteration zeroed out, double until we get *something*.
48
- // Use string for doubling so we don't accidentally see scale as unchanged below
49
- scale = scale || ".5";
50
-
51
- // Adjust and apply
52
- start = start / scale;
53
- jQuery.style( tween.elem, prop, start + unit );
54
-
55
- // Update scale, tolerating zero or NaN from tween.cur(),
56
- // break the loop if scale is unchanged or perfect, or if we've just had enough
57
- } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
58
- }
59
-
60
- // Update tween properties
61
- if ( parts ) {
62
- start = tween.start = +start || +target || 0;
63
- tween.unit = unit;
64
- // If a +=/-= token was provided, we're doing a relative animation
65
- tween.end = parts[ 1 ] ?
66
- start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
67
- +parts[ 2 ];
68
- }
69
-
70
- return tween;
71
- } ]
72
- };
24
+ rrun = /queueHooks$/;
73
25
 
74
26
  // Animations created synchronously will run synchronously
75
27
  function createFxNow() {
76
- setTimeout(function() {
28
+ window.setTimeout( function() {
77
29
  fxNow = undefined;
78
- });
30
+ } );
79
31
  return ( fxNow = jQuery.now() );
80
32
  }
81
33
 
@@ -102,11 +54,11 @@ function genFx( type, includeWidth ) {
102
54
 
103
55
  function createTween( value, prop, animation ) {
104
56
  var tween,
105
- collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
57
+ collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
106
58
  index = 0,
107
59
  length = collection.length;
108
60
  for ( ; index < length; index++ ) {
109
- if ( (tween = collection[ index ].call( animation, prop, value )) ) {
61
+ if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
110
62
 
111
63
  // We're done with this property
112
64
  return tween;
@@ -121,7 +73,7 @@ function defaultPrefilter( elem, props, opts ) {
121
73
  orig = {},
122
74
  style = elem.style,
123
75
  hidden = elem.nodeType && isHidden( elem ),
124
- dataShow = data_priv.get( elem, "fxshow" );
76
+ dataShow = dataPriv.get( elem, "fxshow" );
125
77
 
126
78
  // Handle queue: false promises
127
79
  if ( !opts.queue ) {
@@ -137,19 +89,21 @@ function defaultPrefilter( elem, props, opts ) {
137
89
  }
138
90
  hooks.unqueued++;
139
91
 
140
- anim.always(function() {
92
+ anim.always( function() {
93
+
141
94
  // Ensure the complete handler is called before this completes
142
- anim.always(function() {
95
+ anim.always( function() {
143
96
  hooks.unqueued--;
144
97
  if ( !jQuery.queue( elem, "fx" ).length ) {
145
98
  hooks.empty.fire();
146
99
  }
147
- });
148
- });
100
+ } );
101
+ } );
149
102
  }
150
103
 
151
104
  // Height/width overflow pass
152
105
  if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
106
+
153
107
  // Make sure that nothing sneaks out
154
108
  // Record all 3 overflow attributes because IE9-10 do not
155
109
  // change the overflow attribute when overflowX and
@@ -162,7 +116,7 @@ function defaultPrefilter( elem, props, opts ) {
162
116
 
163
117
  // Test default display if display is currently "none"
164
118
  checkDisplay = display === "none" ?
165
- data_priv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
119
+ dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
166
120
 
167
121
  if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
168
122
  style.display = "inline-block";
@@ -171,11 +125,11 @@ function defaultPrefilter( elem, props, opts ) {
171
125
 
172
126
  if ( opts.overflow ) {
173
127
  style.overflow = "hidden";
174
- anim.always(function() {
128
+ anim.always( function() {
175
129
  style.overflow = opts.overflow[ 0 ];
176
130
  style.overflowX = opts.overflow[ 1 ];
177
131
  style.overflowY = opts.overflow[ 2 ];
178
- });
132
+ } );
179
133
  }
180
134
 
181
135
  // show/hide pass
@@ -186,7 +140,8 @@ function defaultPrefilter( elem, props, opts ) {
186
140
  toggle = toggle || value === "toggle";
187
141
  if ( value === ( hidden ? "hide" : "show" ) ) {
188
142
 
189
- // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
143
+ // If there is dataShow left over from a stopped hide or show
144
+ // and we are going to proceed with show, we should pretend to be hidden
190
145
  if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
191
146
  hidden = true;
192
147
  } else {
@@ -207,7 +162,7 @@ function defaultPrefilter( elem, props, opts ) {
207
162
  hidden = dataShow.hidden;
208
163
  }
209
164
  } else {
210
- dataShow = data_priv.access( elem, "fxshow", {} );
165
+ dataShow = dataPriv.access( elem, "fxshow", {} );
211
166
  }
212
167
 
213
168
  // Store state if its toggle - enables .stop().toggle() to "reverse"
@@ -217,18 +172,18 @@ function defaultPrefilter( elem, props, opts ) {
217
172
  if ( hidden ) {
218
173
  jQuery( elem ).show();
219
174
  } else {
220
- anim.done(function() {
175
+ anim.done( function() {
221
176
  jQuery( elem ).hide();
222
- });
177
+ } );
223
178
  }
224
- anim.done(function() {
179
+ anim.done( function() {
225
180
  var prop;
226
181
 
227
- data_priv.remove( elem, "fxshow" );
182
+ dataPriv.remove( elem, "fxshow" );
228
183
  for ( prop in orig ) {
229
184
  jQuery.style( elem, prop, orig[ prop ] );
230
185
  }
231
- });
186
+ } );
232
187
  for ( prop in orig ) {
233
188
  tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
234
189
 
@@ -242,7 +197,7 @@ function defaultPrefilter( elem, props, opts ) {
242
197
  }
243
198
 
244
199
  // If this is a noop like .hide().hide(), restore an overwritten display value
245
- } else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
200
+ } else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
246
201
  style.display = display;
247
202
  }
248
203
  }
@@ -288,17 +243,19 @@ function Animation( elem, properties, options ) {
288
243
  var result,
289
244
  stopped,
290
245
  index = 0,
291
- length = animationPrefilters.length,
246
+ length = Animation.prefilters.length,
292
247
  deferred = jQuery.Deferred().always( function() {
248
+
293
249
  // Don't match elem in the :animated selector
294
250
  delete tick.elem;
295
- }),
251
+ } ),
296
252
  tick = function() {
297
253
  if ( stopped ) {
298
254
  return false;
299
255
  }
300
256
  var currentTime = fxNow || createFxNow(),
301
257
  remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
258
+
302
259
  // Support: Android 2.3
303
260
  // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
304
261
  temp = remaining / animation.duration || 0,
@@ -310,7 +267,7 @@ function Animation( elem, properties, options ) {
310
267
  animation.tweens[ index ].run( percent );
311
268
  }
312
269
 
313
- deferred.notifyWith( elem, [ animation, percent, remaining ]);
270
+ deferred.notifyWith( elem, [ animation, percent, remaining ] );
314
271
 
315
272
  if ( percent < 1 && length ) {
316
273
  return remaining;
@@ -319,10 +276,13 @@ function Animation( elem, properties, options ) {
319
276
  return false;
320
277
  }
321
278
  },
322
- animation = deferred.promise({
279
+ animation = deferred.promise( {
323
280
  elem: elem,
324
281
  props: jQuery.extend( {}, properties ),
325
- opts: jQuery.extend( true, { specialEasing: {} }, options ),
282
+ opts: jQuery.extend( true, {
283
+ specialEasing: {},
284
+ easing: jQuery.easing._default
285
+ }, options ),
326
286
  originalProperties: properties,
327
287
  originalOptions: options,
328
288
  startTime: fxNow || createFxNow(),
@@ -336,6 +296,7 @@ function Animation( elem, properties, options ) {
336
296
  },
337
297
  stop: function( gotoEnd ) {
338
298
  var index = 0,
299
+
339
300
  // If we are going to the end, we want to run all the tweens
340
301
  // otherwise we skip this part
341
302
  length = gotoEnd ? animation.tweens.length : 0;
@@ -349,20 +310,25 @@ function Animation( elem, properties, options ) {
349
310
 
350
311
  // Resolve when we played the last frame; otherwise, reject
351
312
  if ( gotoEnd ) {
313
+ deferred.notifyWith( elem, [ animation, 1, 0 ] );
352
314
  deferred.resolveWith( elem, [ animation, gotoEnd ] );
353
315
  } else {
354
316
  deferred.rejectWith( elem, [ animation, gotoEnd ] );
355
317
  }
356
318
  return this;
357
319
  }
358
- }),
320
+ } ),
359
321
  props = animation.props;
360
322
 
361
323
  propFilter( props, animation.opts.specialEasing );
362
324
 
363
325
  for ( ; index < length ; index++ ) {
364
- result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
326
+ result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
365
327
  if ( result ) {
328
+ if ( jQuery.isFunction( result.stop ) ) {
329
+ jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
330
+ jQuery.proxy( result.stop, result );
331
+ }
366
332
  return result;
367
333
  }
368
334
  }
@@ -378,7 +344,7 @@ function Animation( elem, properties, options ) {
378
344
  elem: elem,
379
345
  anim: animation,
380
346
  queue: animation.opts.queue
381
- })
347
+ } )
382
348
  );
383
349
 
384
350
  // attach callbacks from options
@@ -389,13 +355,20 @@ function Animation( elem, properties, options ) {
389
355
  }
390
356
 
391
357
  jQuery.Animation = jQuery.extend( Animation, {
358
+ tweeners: {
359
+ "*": [ function( prop, value ) {
360
+ var tween = this.createTween( prop, value );
361
+ adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
362
+ return tween;
363
+ } ]
364
+ },
392
365
 
393
366
  tweener: function( props, callback ) {
394
367
  if ( jQuery.isFunction( props ) ) {
395
368
  callback = props;
396
369
  props = [ "*" ];
397
370
  } else {
398
- props = props.split(" ");
371
+ props = props.match( rnotwhite );
399
372
  }
400
373
 
401
374
  var prop,
@@ -404,19 +377,21 @@ jQuery.Animation = jQuery.extend( Animation, {
404
377
 
405
378
  for ( ; index < length ; index++ ) {
406
379
  prop = props[ index ];
407
- tweeners[ prop ] = tweeners[ prop ] || [];
408
- tweeners[ prop ].unshift( callback );
380
+ Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
381
+ Animation.tweeners[ prop ].unshift( callback );
409
382
  }
410
383
  },
411
384
 
385
+ prefilters: [ defaultPrefilter ],
386
+
412
387
  prefilter: function( callback, prepend ) {
413
388
  if ( prepend ) {
414
- animationPrefilters.unshift( callback );
389
+ Animation.prefilters.unshift( callback );
415
390
  } else {
416
- animationPrefilters.push( callback );
391
+ Animation.prefilters.push( callback );
417
392
  }
418
393
  }
419
- });
394
+ } );
420
395
 
421
396
  jQuery.speed = function( speed, easing, fn ) {
422
397
  var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
@@ -426,8 +401,9 @@ jQuery.speed = function( speed, easing, fn ) {
426
401
  easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
427
402
  };
428
403
 
429
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
430
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
404
+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
405
+ opt.duration : opt.duration in jQuery.fx.speeds ?
406
+ jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
431
407
 
432
408
  // Normalize opt.queue - true/undefined/null -> "fx"
433
409
  if ( opt.queue == null || opt.queue === true ) {
@@ -450,24 +426,25 @@ jQuery.speed = function( speed, easing, fn ) {
450
426
  return opt;
451
427
  };
452
428
 
453
- jQuery.fn.extend({
429
+ jQuery.fn.extend( {
454
430
  fadeTo: function( speed, to, easing, callback ) {
455
431
 
456
432
  // Show any hidden elements after setting opacity to 0
457
433
  return this.filter( isHidden ).css( "opacity", 0 ).show()
458
434
 
459
435
  // Animate to the value specified
460
- .end().animate({ opacity: to }, speed, easing, callback );
436
+ .end().animate( { opacity: to }, speed, easing, callback );
461
437
  },
462
438
  animate: function( prop, speed, easing, callback ) {
463
439
  var empty = jQuery.isEmptyObject( prop ),
464
440
  optall = jQuery.speed( speed, easing, callback ),
465
441
  doAnimation = function() {
442
+
466
443
  // Operate on a copy of prop so per-property easing won't be lost
467
444
  var anim = Animation( this, jQuery.extend( {}, prop ), optall );
468
445
 
469
446
  // Empty animations, or finishing resolves immediately
470
- if ( empty || data_priv.get( this, "finish" ) ) {
447
+ if ( empty || dataPriv.get( this, "finish" ) ) {
471
448
  anim.stop( true );
472
449
  }
473
450
  };
@@ -493,11 +470,11 @@ jQuery.fn.extend({
493
470
  this.queue( type || "fx", [] );
494
471
  }
495
472
 
496
- return this.each(function() {
473
+ return this.each( function() {
497
474
  var dequeue = true,
498
475
  index = type != null && type + "queueHooks",
499
476
  timers = jQuery.timers,
500
- data = data_priv.get( this );
477
+ data = dataPriv.get( this );
501
478
 
502
479
  if ( index ) {
503
480
  if ( data[ index ] && data[ index ].stop ) {
@@ -512,7 +489,9 @@ jQuery.fn.extend({
512
489
  }
513
490
 
514
491
  for ( index = timers.length; index--; ) {
515
- if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
492
+ if ( timers[ index ].elem === this &&
493
+ ( type == null || timers[ index ].queue === type ) ) {
494
+
516
495
  timers[ index ].anim.stop( gotoEnd );
517
496
  dequeue = false;
518
497
  timers.splice( index, 1 );
@@ -525,15 +504,15 @@ jQuery.fn.extend({
525
504
  if ( dequeue || !gotoEnd ) {
526
505
  jQuery.dequeue( this, type );
527
506
  }
528
- });
507
+ } );
529
508
  },
530
509
  finish: function( type ) {
531
510
  if ( type !== false ) {
532
511
  type = type || "fx";
533
512
  }
534
- return this.each(function() {
513
+ return this.each( function() {
535
514
  var index,
536
- data = data_priv.get( this ),
515
+ data = dataPriv.get( this ),
537
516
  queue = data[ type + "queue" ],
538
517
  hooks = data[ type + "queueHooks" ],
539
518
  timers = jQuery.timers,
@@ -566,24 +545,24 @@ jQuery.fn.extend({
566
545
 
567
546
  // Turn off finishing flag
568
547
  delete data.finish;
569
- });
548
+ } );
570
549
  }
571
- });
550
+ } );
572
551
 
573
- jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
552
+ jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
574
553
  var cssFn = jQuery.fn[ name ];
575
554
  jQuery.fn[ name ] = function( speed, easing, callback ) {
576
555
  return speed == null || typeof speed === "boolean" ?
577
556
  cssFn.apply( this, arguments ) :
578
557
  this.animate( genFx( name, true ), speed, easing, callback );
579
558
  };
580
- });
559
+ } );
581
560
 
582
561
  // Generate shortcuts for custom animations
583
- jQuery.each({
584
- slideDown: genFx("show"),
585
- slideUp: genFx("hide"),
586
- slideToggle: genFx("toggle"),
562
+ jQuery.each( {
563
+ slideDown: genFx( "show" ),
564
+ slideUp: genFx( "hide" ),
565
+ slideToggle: genFx( "toggle" ),
587
566
  fadeIn: { opacity: "show" },
588
567
  fadeOut: { opacity: "hide" },
589
568
  fadeToggle: { opacity: "toggle" }
@@ -591,7 +570,7 @@ jQuery.each({
591
570
  jQuery.fn[ name ] = function( speed, easing, callback ) {
592
571
  return this.animate( props, speed, easing, callback );
593
572
  };
594
- });
573
+ } );
595
574
 
596
575
  jQuery.timers = [];
597
576
  jQuery.fx.tick = function() {
@@ -603,6 +582,7 @@ jQuery.fx.tick = function() {
603
582
 
604
583
  for ( ; i < timers.length; i++ ) {
605
584
  timer = timers[ i ];
585
+
606
586
  // Checks the timer has not already been removed
607
587
  if ( !timer() && timers[ i ] === timer ) {
608
588
  timers.splice( i--, 1 );
@@ -625,24 +605,25 @@ jQuery.fx.timer = function( timer ) {
625
605
  };
626
606
 
627
607
  jQuery.fx.interval = 13;
628
-
629
608
  jQuery.fx.start = function() {
630
609
  if ( !timerId ) {
631
- timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
610
+ timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
632
611
  }
633
612
  };
634
613
 
635
614
  jQuery.fx.stop = function() {
636
- clearInterval( timerId );
615
+ window.clearInterval( timerId );
616
+
637
617
  timerId = null;
638
618
  };
639
619
 
640
620
  jQuery.fx.speeds = {
641
621
  slow: 600,
642
622
  fast: 200,
623
+
643
624
  // Default speed
644
625
  _default: 400
645
626
  };
646
627
 
647
628
  return jQuery;
648
- });
629
+ } );