logster 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logster/version.rb +1 -1
  3. data/logster.gemspec +1 -1
  4. metadata +1 -216
  5. data/bower_components/ember/.bower.json +0 -22
  6. data/bower_components/ember/.gitignore +0 -5
  7. data/bower_components/ember/Makefile +0 -9
  8. data/bower_components/ember/README.md +0 -12
  9. data/bower_components/ember/bower.json +0 -11
  10. data/bower_components/ember/component.json +0 -13
  11. data/bower_components/ember/composer.json +0 -27
  12. data/bower_components/ember/ember-template-compiler.js +0 -320
  13. data/bower_components/ember/ember.js +0 -44267
  14. data/bower_components/ember/ember.min.js +0 -19
  15. data/bower_components/ember/ember.prod.js +0 -42649
  16. data/bower_components/ember/package.json +0 -11
  17. data/bower_components/handlebars/.bower.json +0 -16
  18. data/bower_components/handlebars/.gitignore +0 -2
  19. data/bower_components/handlebars/README.md +0 -11
  20. data/bower_components/handlebars/bower.json +0 -6
  21. data/bower_components/handlebars/component.json +0 -9
  22. data/bower_components/handlebars/composer.json +0 -35
  23. data/bower_components/handlebars/handlebars-source.gemspec +0 -21
  24. data/bower_components/handlebars/handlebars.amd.js +0 -2719
  25. data/bower_components/handlebars/handlebars.amd.min.js +0 -28
  26. data/bower_components/handlebars/handlebars.js +0 -2746
  27. data/bower_components/handlebars/handlebars.js.nuspec +0 -17
  28. data/bower_components/handlebars/handlebars.min.js +0 -28
  29. data/bower_components/handlebars/handlebars.runtime.amd.js +0 -515
  30. data/bower_components/handlebars/handlebars.runtime.amd.min.js +0 -27
  31. data/bower_components/handlebars/handlebars.runtime.js +0 -530
  32. data/bower_components/handlebars/handlebars.runtime.min.js +0 -27
  33. data/bower_components/handlebars/lib/handlebars/source.rb +0 -11
  34. data/bower_components/jquery/.bower.json +0 -37
  35. data/bower_components/jquery/MIT-LICENSE.txt +0 -21
  36. data/bower_components/jquery/bower.json +0 -27
  37. data/bower_components/jquery/dist/jquery.js +0 -9111
  38. data/bower_components/jquery/dist/jquery.min.js +0 -5
  39. data/bower_components/jquery/dist/jquery.min.map +0 -1
  40. data/bower_components/jquery/src/ajax.js +0 -806
  41. data/bower_components/jquery/src/ajax/jsonp.js +0 -89
  42. data/bower_components/jquery/src/ajax/load.js +0 -75
  43. data/bower_components/jquery/src/ajax/parseJSON.js +0 -13
  44. data/bower_components/jquery/src/ajax/parseXML.js +0 -28
  45. data/bower_components/jquery/src/ajax/script.js +0 -64
  46. data/bower_components/jquery/src/ajax/var/nonce.js +0 -5
  47. data/bower_components/jquery/src/ajax/var/rquery.js +0 -3
  48. data/bower_components/jquery/src/ajax/xhr.js +0 -130
  49. data/bower_components/jquery/src/attributes.js +0 -11
  50. data/bower_components/jquery/src/attributes/attr.js +0 -143
  51. data/bower_components/jquery/src/attributes/classes.js +0 -158
  52. data/bower_components/jquery/src/attributes/prop.js +0 -96
  53. data/bower_components/jquery/src/attributes/support.js +0 -35
  54. data/bower_components/jquery/src/attributes/val.js +0 -153
  55. data/bower_components/jquery/src/callbacks.js +0 -205
  56. data/bower_components/jquery/src/core.js +0 -500
  57. data/bower_components/jquery/src/core/access.js +0 -60
  58. data/bower_components/jquery/src/core/init.js +0 -123
  59. data/bower_components/jquery/src/core/parseHTML.js +0 -39
  60. data/bower_components/jquery/src/core/ready.js +0 -96
  61. data/bower_components/jquery/src/core/var/rsingleTag.js +0 -4
  62. data/bower_components/jquery/src/css.js +0 -455
  63. data/bower_components/jquery/src/css/addGetHookIf.js +0 -24
  64. data/bower_components/jquery/src/css/curCSS.js +0 -57
  65. data/bower_components/jquery/src/css/defaultDisplay.js +0 -69
  66. data/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  67. data/bower_components/jquery/src/css/support.js +0 -83
  68. data/bower_components/jquery/src/css/swap.js +0 -28
  69. data/bower_components/jquery/src/css/var/cssExpand.js +0 -3
  70. data/bower_components/jquery/src/css/var/getStyles.js +0 -5
  71. data/bower_components/jquery/src/css/var/isHidden.js +0 -13
  72. data/bower_components/jquery/src/css/var/rmargin.js +0 -3
  73. data/bower_components/jquery/src/css/var/rnumnonpx.js +0 -5
  74. data/bower_components/jquery/src/data.js +0 -175
  75. data/bower_components/jquery/src/data/Data.js +0 -181
  76. data/bower_components/jquery/src/data/accepts.js +0 -20
  77. data/bower_components/jquery/src/data/var/data_priv.js +0 -5
  78. data/bower_components/jquery/src/data/var/data_user.js +0 -5
  79. data/bower_components/jquery/src/deferred.js +0 -149
  80. data/bower_components/jquery/src/deprecated.js +0 -13
  81. data/bower_components/jquery/src/dimensions.js +0 -50
  82. data/bower_components/jquery/src/effects.js +0 -642
  83. data/bower_components/jquery/src/effects/Tween.js +0 -114
  84. data/bower_components/jquery/src/effects/animatedSelector.js +0 -13
  85. data/bower_components/jquery/src/event.js +0 -859
  86. data/bower_components/jquery/src/event/alias.js +0 -39
  87. data/bower_components/jquery/src/event/support.js +0 -9
  88. data/bower_components/jquery/src/exports/amd.js +0 -18
  89. data/bower_components/jquery/src/exports/global.js +0 -32
  90. data/bower_components/jquery/src/intro.js +0 -44
  91. data/bower_components/jquery/src/jquery.js +0 -36
  92. data/bower_components/jquery/src/manipulation.js +0 -583
  93. data/bower_components/jquery/src/manipulation/_evalUrl.js +0 -18
  94. data/bower_components/jquery/src/manipulation/support.js +0 -24
  95. data/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -3
  96. data/bower_components/jquery/src/offset.js +0 -204
  97. data/bower_components/jquery/src/outro.js +0 -1
  98. data/bower_components/jquery/src/queue.js +0 -142
  99. data/bower_components/jquery/src/queue/delay.js +0 -22
  100. data/bower_components/jquery/src/selector-native.js +0 -171
  101. data/bower_components/jquery/src/selector-sizzle.js +0 -14
  102. data/bower_components/jquery/src/selector.js +0 -1
  103. data/bower_components/jquery/src/serialize.js +0 -111
  104. data/bower_components/jquery/src/sizzle/dist/sizzle.js +0 -2015
  105. data/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  106. data/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  107. data/bower_components/jquery/src/traversing.js +0 -200
  108. data/bower_components/jquery/src/traversing/findFilter.js +0 -100
  109. data/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -6
  110. data/bower_components/jquery/src/var/arr.js +0 -3
  111. data/bower_components/jquery/src/var/class2type.js +0 -4
  112. data/bower_components/jquery/src/var/concat.js +0 -5
  113. data/bower_components/jquery/src/var/hasOwn.js +0 -5
  114. data/bower_components/jquery/src/var/indexOf.js +0 -5
  115. data/bower_components/jquery/src/var/pnum.js +0 -3
  116. data/bower_components/jquery/src/var/push.js +0 -5
  117. data/bower_components/jquery/src/var/rnotwhite.js +0 -3
  118. data/bower_components/jquery/src/var/slice.js +0 -5
  119. data/bower_components/jquery/src/var/strundefined.js +0 -3
  120. data/bower_components/jquery/src/var/support.js +0 -4
  121. data/bower_components/jquery/src/var/toString.js +0 -5
  122. data/bower_components/jquery/src/var/trim.js +0 -3
  123. data/bower_components/jquery/src/wrap.js +0 -78
  124. data/bower_components/lodash/.bower.json +0 -34
  125. data/bower_components/lodash/LICENSE.txt +0 -22
  126. data/bower_components/lodash/bower.json +0 -23
  127. data/bower_components/lodash/dist/lodash.compat.js +0 -7157
  128. data/bower_components/lodash/dist/lodash.compat.min.js +0 -61
  129. data/bower_components/lodash/dist/lodash.js +0 -6785
  130. data/bower_components/lodash/dist/lodash.min.js +0 -56
  131. data/bower_components/lodash/dist/lodash.underscore.js +0 -4979
  132. data/bower_components/lodash/dist/lodash.underscore.min.js +0 -39
  133. data/bower_components/moment/.bower.json +0 -31
  134. data/bower_components/moment/LICENSE +0 -22
  135. data/bower_components/moment/bower.json +0 -20
  136. data/bower_components/moment/lang/ar-ma.js +0 -56
  137. data/bower_components/moment/lang/ar.js +0 -56
  138. data/bower_components/moment/lang/bg.js +0 -86
  139. data/bower_components/moment/lang/br.js +0 -107
  140. data/bower_components/moment/lang/bs.js +0 -139
  141. data/bower_components/moment/lang/ca.js +0 -66
  142. data/bower_components/moment/lang/cs.js +0 -155
  143. data/bower_components/moment/lang/cv.js +0 -59
  144. data/bower_components/moment/lang/cy.js +0 -77
  145. data/bower_components/moment/lang/da.js +0 -56
  146. data/bower_components/moment/lang/de.js +0 -71
  147. data/bower_components/moment/lang/el.js +0 -79
  148. data/bower_components/moment/lang/en-au.js +0 -62
  149. data/bower_components/moment/lang/en-ca.js +0 -59
  150. data/bower_components/moment/lang/en-gb.js +0 -63
  151. data/bower_components/moment/lang/eo.js +0 -65
  152. data/bower_components/moment/lang/es.js +0 -75
  153. data/bower_components/moment/lang/et.js +0 -76
  154. data/bower_components/moment/lang/eu.js +0 -60
  155. data/bower_components/moment/lang/fa.js +0 -97
  156. data/bower_components/moment/lang/fi.js +0 -103
  157. data/bower_components/moment/lang/fo.js +0 -56
  158. data/bower_components/moment/lang/fr-ca.js +0 -54
  159. data/bower_components/moment/lang/fr.js +0 -58
  160. data/bower_components/moment/lang/gl.js +0 -71
  161. data/bower_components/moment/lang/he.js +0 -77
  162. data/bower_components/moment/lang/hi.js +0 -105
  163. data/bower_components/moment/lang/hr.js +0 -140
  164. data/bower_components/moment/lang/hu.js +0 -105
  165. data/bower_components/moment/lang/hy-am.js +0 -113
  166. data/bower_components/moment/lang/id.js +0 -67
  167. data/bower_components/moment/lang/is.js +0 -124
  168. data/bower_components/moment/lang/it.js +0 -59
  169. data/bower_components/moment/lang/ja.js +0 -58
  170. data/bower_components/moment/lang/ka.js +0 -108
  171. data/bower_components/moment/lang/km.js +0 -55
  172. data/bower_components/moment/lang/ko.js +0 -63
  173. data/bower_components/moment/lang/lb.js +0 -160
  174. data/bower_components/moment/lang/lt.js +0 -118
  175. data/bower_components/moment/lang/lv.js +0 -77
  176. data/bower_components/moment/lang/mk.js +0 -86
  177. data/bower_components/moment/lang/ml.js +0 -64
  178. data/bower_components/moment/lang/mr.js +0 -104
  179. data/bower_components/moment/lang/ms-my.js +0 -66
  180. data/bower_components/moment/lang/nb.js +0 -57
  181. data/bower_components/moment/lang/ne.js +0 -105
  182. data/bower_components/moment/lang/nl.js +0 -67
  183. data/bower_components/moment/lang/nn.js +0 -56
  184. data/bower_components/moment/lang/pl.js +0 -98
  185. data/bower_components/moment/lang/pt-br.js +0 -56
  186. data/bower_components/moment/lang/pt.js +0 -60
  187. data/bower_components/moment/lang/ro.js +0 -72
  188. data/bower_components/moment/lang/ru.js +0 -163
  189. data/bower_components/moment/lang/sk.js +0 -156
  190. data/bower_components/moment/lang/sl.js +0 -144
  191. data/bower_components/moment/lang/sq.js +0 -61
  192. data/bower_components/moment/lang/sr-cyr.js +0 -106
  193. data/bower_components/moment/lang/sr.js +0 -106
  194. data/bower_components/moment/lang/sv.js +0 -63
  195. data/bower_components/moment/lang/ta.js +0 -112
  196. data/bower_components/moment/lang/th.js +0 -58
  197. data/bower_components/moment/lang/tl-ph.js +0 -58
  198. data/bower_components/moment/lang/tr.js +0 -93
  199. data/bower_components/moment/lang/tzm-la.js +0 -55
  200. data/bower_components/moment/lang/tzm.js +0 -55
  201. data/bower_components/moment/lang/uk.js +0 -157
  202. data/bower_components/moment/lang/uz.js +0 -55
  203. data/bower_components/moment/lang/vi.js +0 -62
  204. data/bower_components/moment/lang/zh-cn.js +0 -108
  205. data/bower_components/moment/lang/zh-tw.js +0 -84
  206. data/bower_components/moment/min/langs.js +0 -5991
  207. data/bower_components/moment/min/langs.min.js +0 -3
  208. data/bower_components/moment/min/moment-with-langs.js +0 -7993
  209. data/bower_components/moment/min/moment-with-langs.min.js +0 -9
  210. data/bower_components/moment/min/moment.min.js +0 -6
  211. data/bower_components/moment/moment.js +0 -2489
  212. data/bower_components/moment/readme.md +0 -368
  213. data/website/Gemfile +0 -6
  214. data/website/config.ru +0 -2
  215. data/website/data/data.json +0 -1
  216. data/website/docker_container/logster.yml +0 -95
  217. data/website/sample.rb +0 -85
  218. data/website/scripts/persist_logs.rb +0 -13
@@ -1,158 +0,0 @@
1
- define([
2
- "../core",
3
- "../var/rnotwhite",
4
- "../var/strundefined",
5
- "../data/var/data_priv",
6
- "../core/init"
7
- ], function( jQuery, rnotwhite, strundefined, data_priv ) {
8
-
9
- var rclass = /[\t\r\n\f]/g;
10
-
11
- jQuery.fn.extend({
12
- addClass: function( value ) {
13
- var classes, elem, cur, clazz, j, finalValue,
14
- proceed = typeof value === "string" && value,
15
- i = 0,
16
- len = this.length;
17
-
18
- if ( jQuery.isFunction( value ) ) {
19
- return this.each(function( j ) {
20
- jQuery( this ).addClass( value.call( this, j, this.className ) );
21
- });
22
- }
23
-
24
- if ( proceed ) {
25
- // The disjunction here is for better compressibility (see removeClass)
26
- classes = ( value || "" ).match( rnotwhite ) || [];
27
-
28
- for ( ; i < len; i++ ) {
29
- elem = this[ i ];
30
- cur = elem.nodeType === 1 && ( elem.className ?
31
- ( " " + elem.className + " " ).replace( rclass, " " ) :
32
- " "
33
- );
34
-
35
- if ( cur ) {
36
- j = 0;
37
- while ( (clazz = classes[j++]) ) {
38
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
39
- cur += clazz + " ";
40
- }
41
- }
42
-
43
- // only assign if different to avoid unneeded rendering.
44
- finalValue = jQuery.trim( cur );
45
- if ( elem.className !== finalValue ) {
46
- elem.className = finalValue;
47
- }
48
- }
49
- }
50
- }
51
-
52
- return this;
53
- },
54
-
55
- removeClass: function( value ) {
56
- var classes, elem, cur, clazz, j, finalValue,
57
- proceed = arguments.length === 0 || typeof value === "string" && value,
58
- i = 0,
59
- len = this.length;
60
-
61
- if ( jQuery.isFunction( value ) ) {
62
- return this.each(function( j ) {
63
- jQuery( this ).removeClass( value.call( this, j, this.className ) );
64
- });
65
- }
66
- if ( proceed ) {
67
- classes = ( value || "" ).match( rnotwhite ) || [];
68
-
69
- for ( ; i < len; i++ ) {
70
- elem = this[ i ];
71
- // This expression is here for better compressibility (see addClass)
72
- cur = elem.nodeType === 1 && ( elem.className ?
73
- ( " " + elem.className + " " ).replace( rclass, " " ) :
74
- ""
75
- );
76
-
77
- if ( cur ) {
78
- j = 0;
79
- while ( (clazz = classes[j++]) ) {
80
- // Remove *all* instances
81
- while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
82
- cur = cur.replace( " " + clazz + " ", " " );
83
- }
84
- }
85
-
86
- // only assign if different to avoid unneeded rendering.
87
- finalValue = value ? jQuery.trim( cur ) : "";
88
- if ( elem.className !== finalValue ) {
89
- elem.className = finalValue;
90
- }
91
- }
92
- }
93
- }
94
-
95
- return this;
96
- },
97
-
98
- toggleClass: function( value, stateVal ) {
99
- var type = typeof value;
100
-
101
- if ( typeof stateVal === "boolean" && type === "string" ) {
102
- return stateVal ? this.addClass( value ) : this.removeClass( value );
103
- }
104
-
105
- if ( jQuery.isFunction( value ) ) {
106
- return this.each(function( i ) {
107
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
108
- });
109
- }
110
-
111
- return this.each(function() {
112
- if ( type === "string" ) {
113
- // toggle individual class names
114
- var className,
115
- i = 0,
116
- self = jQuery( this ),
117
- classNames = value.match( rnotwhite ) || [];
118
-
119
- while ( (className = classNames[ i++ ]) ) {
120
- // check each className given, space separated list
121
- if ( self.hasClass( className ) ) {
122
- self.removeClass( className );
123
- } else {
124
- self.addClass( className );
125
- }
126
- }
127
-
128
- // Toggle whole class name
129
- } else if ( type === strundefined || type === "boolean" ) {
130
- if ( this.className ) {
131
- // store className if set
132
- data_priv.set( this, "__className__", this.className );
133
- }
134
-
135
- // If the element has a class name or if we're passed "false",
136
- // then remove the whole classname (if there was one, the above saved it).
137
- // Otherwise bring back whatever was previously saved (if anything),
138
- // falling back to the empty string if nothing was stored.
139
- this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || "";
140
- }
141
- });
142
- },
143
-
144
- hasClass: function( selector ) {
145
- var className = " " + selector + " ",
146
- i = 0,
147
- l = this.length;
148
- for ( ; i < l; i++ ) {
149
- if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
150
- return true;
151
- }
152
- }
153
-
154
- return false;
155
- }
156
- });
157
-
158
- });
@@ -1,96 +0,0 @@
1
- define([
2
- "../core",
3
- "../core/access",
4
- "./support"
5
- ], function( jQuery, access, support ) {
6
-
7
- var rfocusable = /^(?:input|select|textarea|button)$/i;
8
-
9
- jQuery.fn.extend({
10
- prop: function( name, value ) {
11
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
12
- },
13
-
14
- removeProp: function( name ) {
15
- return this.each(function() {
16
- delete this[ jQuery.propFix[ name ] || name ];
17
- });
18
- }
19
- });
20
-
21
- jQuery.extend({
22
- propFix: {
23
- "for": "htmlFor",
24
- "class": "className"
25
- },
26
-
27
- prop: function( elem, name, value ) {
28
- var ret, hooks, notxml,
29
- nType = elem.nodeType;
30
-
31
- // don't get/set properties on text, comment and attribute nodes
32
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
33
- return;
34
- }
35
-
36
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
37
-
38
- if ( notxml ) {
39
- // Fix name and attach hooks
40
- name = jQuery.propFix[ name ] || name;
41
- hooks = jQuery.propHooks[ name ];
42
- }
43
-
44
- if ( value !== undefined ) {
45
- return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
46
- ret :
47
- ( elem[ name ] = value );
48
-
49
- } else {
50
- return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
51
- ret :
52
- elem[ name ];
53
- }
54
- },
55
-
56
- propHooks: {
57
- tabIndex: {
58
- get: function( elem ) {
59
- return elem.hasAttribute( "tabindex" ) || rfocusable.test( elem.nodeName ) || elem.href ?
60
- elem.tabIndex :
61
- -1;
62
- }
63
- }
64
- }
65
- });
66
-
67
- // Support: IE9+
68
- // Selectedness for an option in an optgroup can be inaccurate
69
- if ( !support.optSelected ) {
70
- jQuery.propHooks.selected = {
71
- get: function( elem ) {
72
- var parent = elem.parentNode;
73
- if ( parent && parent.parentNode ) {
74
- parent.parentNode.selectedIndex;
75
- }
76
- return null;
77
- }
78
- };
79
- }
80
-
81
- jQuery.each([
82
- "tabIndex",
83
- "readOnly",
84
- "maxLength",
85
- "cellSpacing",
86
- "cellPadding",
87
- "rowSpan",
88
- "colSpan",
89
- "useMap",
90
- "frameBorder",
91
- "contentEditable"
92
- ], function() {
93
- jQuery.propFix[ this.toLowerCase() ] = this;
94
- });
95
-
96
- });
@@ -1,35 +0,0 @@
1
- define([
2
- "../var/support"
3
- ], function( support ) {
4
-
5
- (function() {
6
- var input = document.createElement( "input" ),
7
- select = document.createElement( "select" ),
8
- opt = select.appendChild( document.createElement( "option" ) );
9
-
10
- input.type = "checkbox";
11
-
12
- // Support: iOS 5.1, Android 4.x, Android 2.3
13
- // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
14
- support.checkOn = input.value !== "";
15
-
16
- // Must access the parent to make an option select properly
17
- // Support: IE9, IE10
18
- support.optSelected = opt.selected;
19
-
20
- // Make sure that the options inside disabled selects aren't marked as disabled
21
- // (WebKit marks them as disabled)
22
- select.disabled = true;
23
- support.optDisabled = !opt.disabled;
24
-
25
- // Check if an input maintains its value after becoming a radio
26
- // Support: IE9, IE10
27
- input = document.createElement( "input" );
28
- input.value = "t";
29
- input.type = "radio";
30
- support.radioValue = input.value === "t";
31
- })();
32
-
33
- return support;
34
-
35
- });
@@ -1,153 +0,0 @@
1
- define([
2
- "../core",
3
- "./support",
4
- "../core/init"
5
- ], function( jQuery, support ) {
6
-
7
- var rreturn = /\r/g;
8
-
9
- jQuery.fn.extend({
10
- val: function( value ) {
11
- var hooks, ret, isFunction,
12
- elem = this[0];
13
-
14
- if ( !arguments.length ) {
15
- if ( elem ) {
16
- hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
17
-
18
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
19
- return ret;
20
- }
21
-
22
- ret = elem.value;
23
-
24
- return typeof ret === "string" ?
25
- // handle most common string cases
26
- ret.replace(rreturn, "") :
27
- // handle cases where value is null/undef or number
28
- ret == null ? "" : ret;
29
- }
30
-
31
- return;
32
- }
33
-
34
- isFunction = jQuery.isFunction( value );
35
-
36
- return this.each(function( i ) {
37
- var val;
38
-
39
- if ( this.nodeType !== 1 ) {
40
- return;
41
- }
42
-
43
- if ( isFunction ) {
44
- val = value.call( this, i, jQuery( this ).val() );
45
- } else {
46
- val = value;
47
- }
48
-
49
- // Treat null/undefined as ""; convert numbers to string
50
- if ( val == null ) {
51
- val = "";
52
-
53
- } else if ( typeof val === "number" ) {
54
- val += "";
55
-
56
- } else if ( jQuery.isArray( val ) ) {
57
- val = jQuery.map( val, function( value ) {
58
- return value == null ? "" : value + "";
59
- });
60
- }
61
-
62
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
63
-
64
- // If set returns undefined, fall back to normal setting
65
- if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
66
- this.value = val;
67
- }
68
- });
69
- }
70
- });
71
-
72
- jQuery.extend({
73
- valHooks: {
74
- select: {
75
- get: function( elem ) {
76
- var value, option,
77
- options = elem.options,
78
- index = elem.selectedIndex,
79
- one = elem.type === "select-one" || index < 0,
80
- values = one ? null : [],
81
- max = one ? index + 1 : options.length,
82
- i = index < 0 ?
83
- max :
84
- one ? index : 0;
85
-
86
- // Loop through all the selected options
87
- for ( ; i < max; i++ ) {
88
- option = options[ i ];
89
-
90
- // IE6-9 doesn't update selected after form reset (#2551)
91
- if ( ( option.selected || i === index ) &&
92
- // Don't return options that are disabled or in a disabled optgroup
93
- ( support.optDisabled ? !option.disabled : option.getAttribute( "disabled" ) === null ) &&
94
- ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
95
-
96
- // Get the specific value for the option
97
- value = jQuery( option ).val();
98
-
99
- // We don't need an array for one selects
100
- if ( one ) {
101
- return value;
102
- }
103
-
104
- // Multi-Selects return an array
105
- values.push( value );
106
- }
107
- }
108
-
109
- return values;
110
- },
111
-
112
- set: function( elem, value ) {
113
- var optionSet, option,
114
- options = elem.options,
115
- values = jQuery.makeArray( value ),
116
- i = options.length;
117
-
118
- while ( i-- ) {
119
- option = options[ i ];
120
- if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
121
- optionSet = true;
122
- }
123
- }
124
-
125
- // force browsers to behave consistently when non-matching value is set
126
- if ( !optionSet ) {
127
- elem.selectedIndex = -1;
128
- }
129
- return values;
130
- }
131
- }
132
- }
133
- });
134
-
135
- // Radios and checkboxes getter/setter
136
- jQuery.each([ "radio", "checkbox" ], function() {
137
- jQuery.valHooks[ this ] = {
138
- set: function( elem, value ) {
139
- if ( jQuery.isArray( value ) ) {
140
- return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
141
- }
142
- }
143
- };
144
- if ( !support.checkOn ) {
145
- jQuery.valHooks[ this ].get = function( elem ) {
146
- // Support: Webkit
147
- // "" is returned instead of "on" if a value isn't specified
148
- return elem.getAttribute("value") === null ? "on" : elem.value;
149
- };
150
- }
151
- });
152
-
153
- });
@@ -1,205 +0,0 @@
1
- define([
2
- "./core",
3
- "./var/rnotwhite"
4
- ], function( jQuery, rnotwhite ) {
5
-
6
- // String to Object options format cache
7
- var optionsCache = {};
8
-
9
- // Convert String-formatted options into Object-formatted ones and store in cache
10
- function createOptions( options ) {
11
- var object = optionsCache[ options ] = {};
12
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
13
- object[ flag ] = true;
14
- });
15
- return object;
16
- }
17
-
18
- /*
19
- * Create a callback list using the following parameters:
20
- *
21
- * options: an optional list of space-separated options that will change how
22
- * the callback list behaves or a more traditional option object
23
- *
24
- * By default a callback list will act like an event callback list and can be
25
- * "fired" multiple times.
26
- *
27
- * Possible options:
28
- *
29
- * once: will ensure the callback list can only be fired once (like a Deferred)
30
- *
31
- * memory: will keep track of previous values and will call any callback added
32
- * after the list has been fired right away with the latest "memorized"
33
- * values (like a Deferred)
34
- *
35
- * unique: will ensure a callback can only be added once (no duplicate in the list)
36
- *
37
- * stopOnFalse: interrupt callings when a callback returns false
38
- *
39
- */
40
- jQuery.Callbacks = function( options ) {
41
-
42
- // Convert options from String-formatted to Object-formatted if needed
43
- // (we check in cache first)
44
- options = typeof options === "string" ?
45
- ( optionsCache[ options ] || createOptions( options ) ) :
46
- jQuery.extend( {}, options );
47
-
48
- var // Last fire value (for non-forgettable lists)
49
- memory,
50
- // Flag to know if list was already fired
51
- fired,
52
- // Flag to know if list is currently firing
53
- firing,
54
- // First callback to fire (used internally by add and fireWith)
55
- firingStart,
56
- // End of the loop when firing
57
- firingLength,
58
- // Index of currently firing callback (modified by remove if needed)
59
- firingIndex,
60
- // Actual callback list
61
- list = [],
62
- // Stack of fire calls for repeatable lists
63
- stack = !options.once && [],
64
- // Fire callbacks
65
- fire = function( data ) {
66
- memory = options.memory && data;
67
- fired = true;
68
- firingIndex = firingStart || 0;
69
- firingStart = 0;
70
- firingLength = list.length;
71
- firing = true;
72
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
73
- if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
74
- memory = false; // To prevent further calls using add
75
- break;
76
- }
77
- }
78
- firing = false;
79
- if ( list ) {
80
- if ( stack ) {
81
- if ( stack.length ) {
82
- fire( stack.shift() );
83
- }
84
- } else if ( memory ) {
85
- list = [];
86
- } else {
87
- self.disable();
88
- }
89
- }
90
- },
91
- // Actual Callbacks object
92
- self = {
93
- // Add a callback or a collection of callbacks to the list
94
- add: function() {
95
- if ( list ) {
96
- // First, we save the current length
97
- var start = list.length;
98
- (function add( args ) {
99
- jQuery.each( args, function( _, arg ) {
100
- var type = jQuery.type( arg );
101
- if ( type === "function" ) {
102
- if ( !options.unique || !self.has( arg ) ) {
103
- list.push( arg );
104
- }
105
- } else if ( arg && arg.length && type !== "string" ) {
106
- // Inspect recursively
107
- add( arg );
108
- }
109
- });
110
- })( arguments );
111
- // Do we need to add the callbacks to the
112
- // current firing batch?
113
- if ( firing ) {
114
- firingLength = list.length;
115
- // With memory, if we're not firing then
116
- // we should call right away
117
- } else if ( memory ) {
118
- firingStart = start;
119
- fire( memory );
120
- }
121
- }
122
- return this;
123
- },
124
- // Remove a callback from the list
125
- remove: function() {
126
- if ( list ) {
127
- jQuery.each( arguments, function( _, arg ) {
128
- var index;
129
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
130
- list.splice( index, 1 );
131
- // Handle firing indexes
132
- if ( firing ) {
133
- if ( index <= firingLength ) {
134
- firingLength--;
135
- }
136
- if ( index <= firingIndex ) {
137
- firingIndex--;
138
- }
139
- }
140
- }
141
- });
142
- }
143
- return this;
144
- },
145
- // Check if a given callback is in the list.
146
- // If no argument is given, return whether or not list has callbacks attached.
147
- has: function( fn ) {
148
- return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
149
- },
150
- // Remove all callbacks from the list
151
- empty: function() {
152
- list = [];
153
- firingLength = 0;
154
- return this;
155
- },
156
- // Have the list do nothing anymore
157
- disable: function() {
158
- list = stack = memory = undefined;
159
- return this;
160
- },
161
- // Is it disabled?
162
- disabled: function() {
163
- return !list;
164
- },
165
- // Lock the list in its current state
166
- lock: function() {
167
- stack = undefined;
168
- if ( !memory ) {
169
- self.disable();
170
- }
171
- return this;
172
- },
173
- // Is it locked?
174
- locked: function() {
175
- return !stack;
176
- },
177
- // Call all callbacks with the given context and arguments
178
- fireWith: function( context, args ) {
179
- if ( list && ( !fired || stack ) ) {
180
- args = args || [];
181
- args = [ context, args.slice ? args.slice() : args ];
182
- if ( firing ) {
183
- stack.push( args );
184
- } else {
185
- fire( args );
186
- }
187
- }
188
- return this;
189
- },
190
- // Call all the callbacks with the given arguments
191
- fire: function() {
192
- self.fireWith( this, arguments );
193
- return this;
194
- },
195
- // To know if the callbacks have already been called at least once
196
- fired: function() {
197
- return !!fired;
198
- }
199
- };
200
-
201
- return self;
202
- };
203
-
204
- return jQuery;
205
- });