kanpachi 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +3 -0
  3. data/.travis.yml +3 -1
  4. data/bower.json +22 -0
  5. data/kanpachi.gemspec +6 -6
  6. data/lib/kanpachi/doc/template/components/html5shiv/.bower.json +26 -0
  7. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.js +11 -0
  8. data/lib/kanpachi/doc/template/{source/javascripts → components/html5shiv/dist}/html5shiv.js +4 -5
  9. data/lib/kanpachi/doc/template/components/html5shiv/readme.md +143 -0
  10. data/lib/kanpachi/doc/template/components/jquery/.bower.json +37 -0
  11. data/lib/kanpachi/doc/template/components/jquery/MIT-LICENSE.txt +21 -0
  12. data/lib/kanpachi/doc/template/components/jquery/bower.json +27 -0
  13. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.js +10337 -0
  14. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.min.js +5 -0
  15. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.min.map +1 -0
  16. data/lib/kanpachi/doc/template/components/jquery/src/ajax.js +807 -0
  17. data/lib/kanpachi/doc/template/components/jquery/src/ajax/jsonp.js +89 -0
  18. data/lib/kanpachi/doc/template/components/jquery/src/ajax/load.js +75 -0
  19. data/lib/kanpachi/doc/template/components/jquery/src/ajax/parseJSON.js +51 -0
  20. data/lib/kanpachi/doc/template/components/jquery/src/ajax/parseXML.js +31 -0
  21. data/lib/kanpachi/doc/template/components/jquery/src/ajax/script.js +93 -0
  22. data/lib/kanpachi/doc/template/components/jquery/src/ajax/var/nonce.js +5 -0
  23. data/lib/kanpachi/doc/template/components/jquery/src/ajax/var/rquery.js +3 -0
  24. data/lib/kanpachi/doc/template/components/jquery/src/ajax/xhr.js +196 -0
  25. data/lib/kanpachi/doc/template/components/jquery/src/attributes.js +11 -0
  26. data/lib/kanpachi/doc/template/components/jquery/src/attributes/attr.js +271 -0
  27. data/lib/kanpachi/doc/template/components/jquery/src/attributes/classes.js +157 -0
  28. data/lib/kanpachi/doc/template/components/jquery/src/attributes/prop.js +134 -0
  29. data/lib/kanpachi/doc/template/components/jquery/src/attributes/support.js +64 -0
  30. data/lib/kanpachi/doc/template/components/jquery/src/attributes/val.js +176 -0
  31. data/lib/kanpachi/doc/template/components/jquery/src/callbacks.js +205 -0
  32. data/lib/kanpachi/doc/template/components/jquery/src/core.js +542 -0
  33. data/lib/kanpachi/doc/template/components/jquery/src/core/access.js +60 -0
  34. data/lib/kanpachi/doc/template/components/jquery/src/core/init.js +132 -0
  35. data/lib/kanpachi/doc/template/components/jquery/src/core/parseHTML.js +39 -0
  36. data/lib/kanpachi/doc/template/components/jquery/src/core/ready.js +151 -0
  37. data/lib/kanpachi/doc/template/components/jquery/src/core/var/rsingleTag.js +4 -0
  38. data/lib/kanpachi/doc/template/components/jquery/src/css.js +508 -0
  39. data/lib/kanpachi/doc/template/components/jquery/src/css/addGetHookIf.js +32 -0
  40. data/lib/kanpachi/doc/template/components/jquery/src/css/curCSS.js +117 -0
  41. data/lib/kanpachi/doc/template/components/jquery/src/css/defaultDisplay.js +68 -0
  42. data/lib/kanpachi/doc/template/components/jquery/src/css/hiddenVisibleSelectors.js +20 -0
  43. data/lib/kanpachi/doc/template/components/jquery/src/css/support.js +193 -0
  44. data/lib/kanpachi/doc/template/components/jquery/src/css/swap.js +28 -0
  45. data/lib/kanpachi/doc/template/components/jquery/src/css/var/cssExpand.js +3 -0
  46. data/lib/kanpachi/doc/template/components/jquery/src/css/var/isHidden.js +13 -0
  47. data/lib/kanpachi/doc/template/components/jquery/src/css/var/rmargin.js +3 -0
  48. data/lib/kanpachi/doc/template/components/jquery/src/css/var/rnumnonpx.js +5 -0
  49. data/lib/kanpachi/doc/template/components/jquery/src/data.js +332 -0
  50. data/lib/kanpachi/doc/template/components/jquery/src/data/accepts.js +21 -0
  51. data/lib/kanpachi/doc/template/components/jquery/src/data/support.js +25 -0
  52. data/lib/kanpachi/doc/template/components/jquery/src/deferred.js +150 -0
  53. data/lib/kanpachi/doc/template/components/jquery/src/deprecated.js +13 -0
  54. data/lib/kanpachi/doc/template/components/jquery/src/dimensions.js +50 -0
  55. data/lib/kanpachi/doc/template/components/jquery/src/effects.js +648 -0
  56. data/lib/kanpachi/doc/template/components/jquery/src/effects/Tween.js +114 -0
  57. data/lib/kanpachi/doc/template/components/jquery/src/effects/animatedSelector.js +13 -0
  58. data/lib/kanpachi/doc/template/components/jquery/src/effects/support.js +76 -0
  59. data/lib/kanpachi/doc/template/components/jquery/src/event.js +1029 -0
  60. data/lib/kanpachi/doc/template/components/jquery/src/event/alias.js +39 -0
  61. data/lib/kanpachi/doc/template/components/jquery/src/event/support.js +26 -0
  62. data/lib/kanpachi/doc/template/components/jquery/src/exports/amd.js +18 -0
  63. data/lib/kanpachi/doc/template/components/jquery/src/exports/global.js +32 -0
  64. data/lib/kanpachi/doc/template/components/jquery/src/intro.js +44 -0
  65. data/lib/kanpachi/doc/template/components/jquery/src/jquery.js +37 -0
  66. data/lib/kanpachi/doc/template/components/jquery/src/manipulation.js +744 -0
  67. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/_evalUrl.js +18 -0
  68. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/support.js +79 -0
  69. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  70. data/lib/kanpachi/doc/template/components/jquery/src/offset.js +211 -0
  71. data/lib/kanpachi/doc/template/components/jquery/src/outro.js +1 -0
  72. data/lib/kanpachi/doc/template/components/jquery/src/queue.js +142 -0
  73. data/lib/kanpachi/doc/template/components/jquery/src/queue/delay.js +22 -0
  74. data/lib/kanpachi/doc/template/components/jquery/src/selector-sizzle.js +14 -0
  75. data/lib/kanpachi/doc/template/components/jquery/src/selector.js +1 -0
  76. data/lib/kanpachi/doc/template/components/jquery/src/serialize.js +110 -0
  77. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.js +2015 -0
  78. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  79. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  80. data/lib/kanpachi/doc/template/components/jquery/src/support.js +62 -0
  81. data/lib/kanpachi/doc/template/components/jquery/src/traversing.js +200 -0
  82. data/lib/kanpachi/doc/template/components/jquery/src/traversing/findFilter.js +100 -0
  83. data/lib/kanpachi/doc/template/components/jquery/src/traversing/var/rneedsContext.js +6 -0
  84. data/lib/kanpachi/doc/template/components/jquery/src/var/class2type.js +4 -0
  85. data/lib/kanpachi/doc/template/components/jquery/src/var/concat.js +5 -0
  86. data/lib/kanpachi/doc/template/components/jquery/src/var/deletedIds.js +3 -0
  87. data/lib/kanpachi/doc/template/components/jquery/src/var/hasOwn.js +5 -0
  88. data/lib/kanpachi/doc/template/components/jquery/src/var/indexOf.js +5 -0
  89. data/lib/kanpachi/doc/template/components/jquery/src/var/pnum.js +3 -0
  90. data/lib/kanpachi/doc/template/components/jquery/src/var/push.js +5 -0
  91. data/lib/kanpachi/doc/template/components/jquery/src/var/rnotwhite.js +3 -0
  92. data/lib/kanpachi/doc/template/components/jquery/src/var/slice.js +5 -0
  93. data/lib/kanpachi/doc/template/components/jquery/src/var/strundefined.js +3 -0
  94. data/lib/kanpachi/doc/template/components/jquery/src/var/support.js +4 -0
  95. data/lib/kanpachi/doc/template/components/jquery/src/var/toString.js +5 -0
  96. data/lib/kanpachi/doc/template/components/jquery/src/var/trim.js +3 -0
  97. data/lib/kanpachi/doc/template/components/jquery/src/wrap.js +75 -0
  98. data/lib/kanpachi/doc/template/components/respond/.bower.json +20 -0
  99. data/lib/kanpachi/doc/template/components/respond/Gruntfile.js +90 -0
  100. data/lib/kanpachi/doc/template/components/respond/LICENSE-MIT +22 -0
  101. data/lib/kanpachi/doc/template/components/respond/README.md +114 -0
  102. data/lib/kanpachi/doc/template/components/respond/bower.json +10 -0
  103. data/lib/kanpachi/doc/template/components/respond/cross-domain/example.html +24 -0
  104. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond-proxy.html +96 -0
  105. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond.proxy.gif +0 -0
  106. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond.proxy.js +127 -0
  107. data/lib/kanpachi/doc/template/components/respond/dest/respond.matchmedia.addListener.min.js +5 -0
  108. data/lib/kanpachi/doc/template/components/respond/dest/respond.matchmedia.addListener.src.js +273 -0
  109. data/lib/kanpachi/doc/template/components/respond/dest/respond.min.js +5 -0
  110. data/lib/kanpachi/doc/template/components/respond/dest/respond.src.js +224 -0
  111. data/lib/kanpachi/doc/template/components/respond/package.json +32 -0
  112. data/lib/kanpachi/doc/template/components/respond/src/matchmedia.addListener.js +76 -0
  113. data/lib/kanpachi/doc/template/components/respond/src/matchmedia.polyfill.js +36 -0
  114. data/lib/kanpachi/doc/template/components/respond/src/respond.js +341 -0
  115. data/lib/kanpachi/doc/template/config.rb +4 -0
  116. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.eot +0 -0
  117. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.svg +201 -200
  118. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.ttf +0 -0
  119. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.woff +0 -0
  120. data/lib/kanpachi/doc/template/source/javascripts/all.coffee +2 -0
  121. data/lib/kanpachi/doc/template/source/javascripts/bootstrap.js +271 -319
  122. data/lib/kanpachi/doc/template/source/javascripts/bootstrap.min.js +6 -6
  123. data/lib/kanpachi/doc/template/source/javascripts/ie.coffee +2 -0
  124. data/lib/kanpachi/doc/template/source/layouts/layout.slim +4 -6
  125. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.css +192 -229
  126. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.css.map +1 -0
  127. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.min.css +7 -1
  128. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.css +2036 -3056
  129. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.css.map +1 -0
  130. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.min.css +6 -8
  131. data/lib/kanpachi/version.rb +1 -1
  132. data/wercker.yml +27 -0
  133. metadata +143 -31
  134. data/lib/kanpachi/doc/template/source/javascripts/all.js +0 -1
  135. data/lib/kanpachi/doc/template/source/javascripts/jquery-1.10.2.min.js +0 -6
  136. data/lib/kanpachi/doc/template/source/javascripts/respond.min.js +0 -7
@@ -0,0 +1,18 @@
1
+ define([
2
+ "../ajax"
3
+ ], function( jQuery ) {
4
+
5
+ jQuery._evalUrl = function( url ) {
6
+ return jQuery.ajax({
7
+ url: url,
8
+ type: "GET",
9
+ dataType: "script",
10
+ async: false,
11
+ global: false,
12
+ "throws": true
13
+ });
14
+ };
15
+
16
+ return jQuery._evalUrl;
17
+
18
+ });
@@ -0,0 +1,79 @@
1
+ define([
2
+ "../var/support"
3
+ ], function( support ) {
4
+
5
+ (function() {
6
+ var fragment = document.createDocumentFragment(),
7
+ div = document.createElement("div"),
8
+ input = document.createElement("input");
9
+
10
+ // Setup
11
+ div.setAttribute( "className", "t" );
12
+ div.innerHTML = " <link/><table></table><a href='/a'>a</a>";
13
+
14
+ // IE strips leading whitespace when .innerHTML is used
15
+ support.leadingWhitespace = div.firstChild.nodeType === 3;
16
+
17
+ // Make sure that tbody elements aren't automatically inserted
18
+ // IE will insert them into empty tables
19
+ support.tbody = !div.getElementsByTagName( "tbody" ).length;
20
+
21
+ // Make sure that link elements get serialized correctly by innerHTML
22
+ // This requires a wrapper element in IE
23
+ support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;
24
+
25
+ // Makes sure cloning an html5 element does not cause problems
26
+ // Where outerHTML is undefined, this still works
27
+ support.html5Clone =
28
+ document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";
29
+
30
+ // Check if a disconnected checkbox will retain its checked
31
+ // value of true after appended to the DOM (IE6/7)
32
+ input.type = "checkbox";
33
+ input.checked = true;
34
+ fragment.appendChild( input );
35
+ support.appendChecked = input.checked;
36
+
37
+ // Make sure textarea (and checkbox) defaultValue is properly cloned
38
+ // Support: IE6-IE11+
39
+ div.innerHTML = "<textarea>x</textarea>";
40
+ support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
41
+
42
+ // #11217 - WebKit loses check when the name is after the checked attribute
43
+ fragment.appendChild( div );
44
+ div.innerHTML = "<input type='radio' checked='checked' name='t'/>";
45
+
46
+ // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
47
+ // old WebKit doesn't clone checked state correctly in fragments
48
+ support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
49
+
50
+ // Support: IE<9
51
+ // Opera does not clone events (and typeof div.attachEvent === undefined).
52
+ // IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
53
+ support.noCloneEvent = true;
54
+ if ( div.attachEvent ) {
55
+ div.attachEvent( "onclick", function() {
56
+ support.noCloneEvent = false;
57
+ });
58
+
59
+ div.cloneNode( true ).click();
60
+ }
61
+
62
+ // Execute the test only if not already executed in another module.
63
+ if (support.deleteExpando == null) {
64
+ // Support: IE<9
65
+ support.deleteExpando = true;
66
+ try {
67
+ delete div.test;
68
+ } catch( e ) {
69
+ support.deleteExpando = false;
70
+ }
71
+ }
72
+
73
+ // Null elements to avoid leaks in IE.
74
+ fragment = div = input = null;
75
+ })();
76
+
77
+ return support;
78
+
79
+ });
@@ -0,0 +1,3 @@
1
+ define(function() {
2
+ return (/^(?:checkbox|radio)$/i);
3
+ });
@@ -0,0 +1,211 @@
1
+ define([
2
+ "./core",
3
+ "./var/strundefined",
4
+ "./core/access",
5
+ "./css/var/rnumnonpx",
6
+ "./css/curCSS",
7
+ "./css/addGetHookIf",
8
+ "./css/support",
9
+
10
+ "./core/init",
11
+ "./css",
12
+ "./selector" // contains
13
+ ], function( jQuery, strundefined, access, rnumnonpx, curCSS, addGetHookIf, support ) {
14
+
15
+ // BuildExclude
16
+ curCSS = curCSS.curCSS;
17
+
18
+ var docElem = window.document.documentElement;
19
+
20
+ /**
21
+ * Gets a window from an element
22
+ */
23
+ function getWindow( elem ) {
24
+ return jQuery.isWindow( elem ) ?
25
+ elem :
26
+ elem.nodeType === 9 ?
27
+ elem.defaultView || elem.parentWindow :
28
+ false;
29
+ }
30
+
31
+ jQuery.offset = {
32
+ setOffset: function( elem, options, i ) {
33
+ var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
34
+ position = jQuery.css( elem, "position" ),
35
+ curElem = jQuery( elem ),
36
+ props = {};
37
+
38
+ // set position first, in-case top/left are set even on static elem
39
+ if ( position === "static" ) {
40
+ elem.style.position = "relative";
41
+ }
42
+
43
+ curOffset = curElem.offset();
44
+ curCSSTop = jQuery.css( elem, "top" );
45
+ curCSSLeft = jQuery.css( elem, "left" );
46
+ calculatePosition = ( position === "absolute" || position === "fixed" ) &&
47
+ jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;
48
+
49
+ // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
50
+ if ( calculatePosition ) {
51
+ curPosition = curElem.position();
52
+ curTop = curPosition.top;
53
+ curLeft = curPosition.left;
54
+ } else {
55
+ curTop = parseFloat( curCSSTop ) || 0;
56
+ curLeft = parseFloat( curCSSLeft ) || 0;
57
+ }
58
+
59
+ if ( jQuery.isFunction( options ) ) {
60
+ options = options.call( elem, i, curOffset );
61
+ }
62
+
63
+ if ( options.top != null ) {
64
+ props.top = ( options.top - curOffset.top ) + curTop;
65
+ }
66
+ if ( options.left != null ) {
67
+ props.left = ( options.left - curOffset.left ) + curLeft;
68
+ }
69
+
70
+ if ( "using" in options ) {
71
+ options.using.call( elem, props );
72
+ } else {
73
+ curElem.css( props );
74
+ }
75
+ }
76
+ };
77
+
78
+ jQuery.fn.extend({
79
+ offset: function( options ) {
80
+ if ( arguments.length ) {
81
+ return options === undefined ?
82
+ this :
83
+ this.each(function( i ) {
84
+ jQuery.offset.setOffset( this, options, i );
85
+ });
86
+ }
87
+
88
+ var docElem, win,
89
+ box = { top: 0, left: 0 },
90
+ elem = this[ 0 ],
91
+ doc = elem && elem.ownerDocument;
92
+
93
+ if ( !doc ) {
94
+ return;
95
+ }
96
+
97
+ docElem = doc.documentElement;
98
+
99
+ // Make sure it's not a disconnected DOM node
100
+ if ( !jQuery.contains( docElem, elem ) ) {
101
+ return box;
102
+ }
103
+
104
+ // If we don't have gBCR, just use 0,0 rather than error
105
+ // BlackBerry 5, iOS 3 (original iPhone)
106
+ if ( typeof elem.getBoundingClientRect !== strundefined ) {
107
+ box = elem.getBoundingClientRect();
108
+ }
109
+ win = getWindow( doc );
110
+ return {
111
+ top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
112
+ left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
113
+ };
114
+ },
115
+
116
+ position: function() {
117
+ if ( !this[ 0 ] ) {
118
+ return;
119
+ }
120
+
121
+ var offsetParent, offset,
122
+ parentOffset = { top: 0, left: 0 },
123
+ elem = this[ 0 ];
124
+
125
+ // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
126
+ if ( jQuery.css( elem, "position" ) === "fixed" ) {
127
+ // we assume that getBoundingClientRect is available when computed position is fixed
128
+ offset = elem.getBoundingClientRect();
129
+ } else {
130
+ // Get *real* offsetParent
131
+ offsetParent = this.offsetParent();
132
+
133
+ // Get correct offsets
134
+ offset = this.offset();
135
+ if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
136
+ parentOffset = offsetParent.offset();
137
+ }
138
+
139
+ // Add offsetParent borders
140
+ parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
141
+ parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
142
+ }
143
+
144
+ // Subtract parent offsets and element margins
145
+ // note: when an element has margin: auto the offsetLeft and marginLeft
146
+ // are the same in Safari causing offset.left to incorrectly be 0
147
+ return {
148
+ top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
149
+ left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
150
+ };
151
+ },
152
+
153
+ offsetParent: function() {
154
+ return this.map(function() {
155
+ var offsetParent = this.offsetParent || docElem;
156
+
157
+ while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
158
+ offsetParent = offsetParent.offsetParent;
159
+ }
160
+ return offsetParent || docElem;
161
+ });
162
+ }
163
+ });
164
+
165
+ // Create scrollLeft and scrollTop methods
166
+ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
167
+ var top = /Y/.test( prop );
168
+
169
+ jQuery.fn[ method ] = function( val ) {
170
+ return access( this, function( elem, method, val ) {
171
+ var win = getWindow( elem );
172
+
173
+ if ( val === undefined ) {
174
+ return win ? (prop in win) ? win[ prop ] :
175
+ win.document.documentElement[ method ] :
176
+ elem[ method ];
177
+ }
178
+
179
+ if ( win ) {
180
+ win.scrollTo(
181
+ !top ? val : jQuery( win ).scrollLeft(),
182
+ top ? val : jQuery( win ).scrollTop()
183
+ );
184
+
185
+ } else {
186
+ elem[ method ] = val;
187
+ }
188
+ }, method, val, arguments.length, null );
189
+ };
190
+ });
191
+
192
+ // Add the top/left cssHooks using jQuery.fn.position
193
+ // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
194
+ // getComputedStyle returns percent when specified for top/left/bottom/right
195
+ // rather than make the css module depend on the offset module, we just check for it here
196
+ jQuery.each( [ "top", "left" ], function( i, prop ) {
197
+ jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
198
+ function( elem, computed ) {
199
+ if ( computed ) {
200
+ computed = curCSS( elem, prop );
201
+ // if curCSS returns percentage, fallback to offset
202
+ return rnumnonpx.test( computed ) ?
203
+ jQuery( elem ).position()[ prop ] + "px" :
204
+ computed;
205
+ }
206
+ }
207
+ );
208
+ });
209
+
210
+ return jQuery;
211
+ });
@@ -0,0 +1,142 @@
1
+ define([
2
+ "./core",
3
+ "./deferred",
4
+ "./callbacks"
5
+ ], function( jQuery ) {
6
+
7
+ jQuery.extend({
8
+ queue: function( elem, type, data ) {
9
+ var queue;
10
+
11
+ if ( elem ) {
12
+ type = ( type || "fx" ) + "queue";
13
+ queue = jQuery._data( elem, type );
14
+
15
+ // Speed up dequeue by getting out quickly if this is just a lookup
16
+ if ( data ) {
17
+ if ( !queue || jQuery.isArray(data) ) {
18
+ queue = jQuery._data( elem, type, jQuery.makeArray(data) );
19
+ } else {
20
+ queue.push( data );
21
+ }
22
+ }
23
+ return queue || [];
24
+ }
25
+ },
26
+
27
+ dequeue: function( elem, type ) {
28
+ type = type || "fx";
29
+
30
+ var queue = jQuery.queue( elem, type ),
31
+ startLength = queue.length,
32
+ fn = queue.shift(),
33
+ hooks = jQuery._queueHooks( elem, type ),
34
+ next = function() {
35
+ jQuery.dequeue( elem, type );
36
+ };
37
+
38
+ // If the fx queue is dequeued, always remove the progress sentinel
39
+ if ( fn === "inprogress" ) {
40
+ fn = queue.shift();
41
+ startLength--;
42
+ }
43
+
44
+ if ( fn ) {
45
+
46
+ // Add a progress sentinel to prevent the fx queue from being
47
+ // automatically dequeued
48
+ if ( type === "fx" ) {
49
+ queue.unshift( "inprogress" );
50
+ }
51
+
52
+ // clear up the last queue stop function
53
+ delete hooks.stop;
54
+ fn.call( elem, next, hooks );
55
+ }
56
+
57
+ if ( !startLength && hooks ) {
58
+ hooks.empty.fire();
59
+ }
60
+ },
61
+
62
+ // not intended for public consumption - generates a queueHooks object, or returns the current one
63
+ _queueHooks: function( elem, type ) {
64
+ var key = type + "queueHooks";
65
+ return jQuery._data( elem, key ) || jQuery._data( elem, key, {
66
+ empty: jQuery.Callbacks("once memory").add(function() {
67
+ jQuery._removeData( elem, type + "queue" );
68
+ jQuery._removeData( elem, key );
69
+ })
70
+ });
71
+ }
72
+ });
73
+
74
+ jQuery.fn.extend({
75
+ queue: function( type, data ) {
76
+ var setter = 2;
77
+
78
+ if ( typeof type !== "string" ) {
79
+ data = type;
80
+ type = "fx";
81
+ setter--;
82
+ }
83
+
84
+ if ( arguments.length < setter ) {
85
+ return jQuery.queue( this[0], type );
86
+ }
87
+
88
+ return data === undefined ?
89
+ this :
90
+ this.each(function() {
91
+ var queue = jQuery.queue( this, type, data );
92
+
93
+ // ensure a hooks for this queue
94
+ jQuery._queueHooks( this, type );
95
+
96
+ if ( type === "fx" && queue[0] !== "inprogress" ) {
97
+ jQuery.dequeue( this, type );
98
+ }
99
+ });
100
+ },
101
+ dequeue: function( type ) {
102
+ return this.each(function() {
103
+ jQuery.dequeue( this, type );
104
+ });
105
+ },
106
+ clearQueue: function( type ) {
107
+ return this.queue( type || "fx", [] );
108
+ },
109
+ // Get a promise resolved when queues of a certain type
110
+ // are emptied (fx is the type by default)
111
+ promise: function( type, obj ) {
112
+ var tmp,
113
+ count = 1,
114
+ defer = jQuery.Deferred(),
115
+ elements = this,
116
+ i = this.length,
117
+ resolve = function() {
118
+ if ( !( --count ) ) {
119
+ defer.resolveWith( elements, [ elements ] );
120
+ }
121
+ };
122
+
123
+ if ( typeof type !== "string" ) {
124
+ obj = type;
125
+ type = undefined;
126
+ }
127
+ type = type || "fx";
128
+
129
+ while ( i-- ) {
130
+ tmp = jQuery._data( elements[ i ], type + "queueHooks" );
131
+ if ( tmp && tmp.empty ) {
132
+ count++;
133
+ tmp.empty.add( resolve );
134
+ }
135
+ }
136
+ resolve();
137
+ return defer.promise( obj );
138
+ }
139
+ });
140
+
141
+ return jQuery;
142
+ });