solvas-jsduck 6.0.0.beta.1888

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 (659) hide show
  1. checksums.yaml +7 -0
  2. data/COPYING +674 -0
  3. data/README.md +115 -0
  4. data/bin/solvas-jsduck +27 -0
  5. data/js-classes/Array.js +1054 -0
  6. data/js-classes/Boolean.js +110 -0
  7. data/js-classes/Date.js +1022 -0
  8. data/js-classes/Function.js +336 -0
  9. data/js-classes/Number.js +308 -0
  10. data/js-classes/Object.js +1042 -0
  11. data/js-classes/RegExp.js +415 -0
  12. data/js-classes/String.js +1052 -0
  13. data/lib/jsduck/aggregator.rb +200 -0
  14. data/lib/jsduck/app.rb +63 -0
  15. data/lib/jsduck/assets.rb +54 -0
  16. data/lib/jsduck/base_type.rb +53 -0
  17. data/lib/jsduck/batch_parser.rb +46 -0
  18. data/lib/jsduck/batch_processor.rb +83 -0
  19. data/lib/jsduck/cache.rb +137 -0
  20. data/lib/jsduck/categories/auto.rb +83 -0
  21. data/lib/jsduck/categories/class_name.rb +39 -0
  22. data/lib/jsduck/categories/factory.rb +75 -0
  23. data/lib/jsduck/categories/file.rb +69 -0
  24. data/lib/jsduck/class.rb +218 -0
  25. data/lib/jsduck/class_doc_expander.rb +132 -0
  26. data/lib/jsduck/class_name.rb +23 -0
  27. data/lib/jsduck/class_writer.rb +53 -0
  28. data/lib/jsduck/columns.rb +56 -0
  29. data/lib/jsduck/css/parser.rb +90 -0
  30. data/lib/jsduck/css/type.rb +57 -0
  31. data/lib/jsduck/doc/comment.rb +40 -0
  32. data/lib/jsduck/doc/delimited_parser.rb +105 -0
  33. data/lib/jsduck/doc/map.rb +23 -0
  34. data/lib/jsduck/doc/parser.rb +135 -0
  35. data/lib/jsduck/doc/processor.rb +52 -0
  36. data/lib/jsduck/doc/scanner.rb +83 -0
  37. data/lib/jsduck/doc/standard_tag_parser.rb +125 -0
  38. data/lib/jsduck/doc/subproperties.rb +71 -0
  39. data/lib/jsduck/examples.rb +63 -0
  40. data/lib/jsduck/export_writer.rb +63 -0
  41. data/lib/jsduck/exporter/app.rb +80 -0
  42. data/lib/jsduck/exporter/examples.rb +58 -0
  43. data/lib/jsduck/exporter/full.rb +60 -0
  44. data/lib/jsduck/external_classes.rb +362 -0
  45. data/lib/jsduck/format/batch.rb +58 -0
  46. data/lib/jsduck/format/class.rb +62 -0
  47. data/lib/jsduck/format/doc.rb +172 -0
  48. data/lib/jsduck/format/html_stack.rb +108 -0
  49. data/lib/jsduck/format/shortener.rb +55 -0
  50. data/lib/jsduck/format/subproperties.rb +64 -0
  51. data/lib/jsduck/grouped_asset.rb +59 -0
  52. data/lib/jsduck/guide_anchors.rb +39 -0
  53. data/lib/jsduck/guide_toc.rb +68 -0
  54. data/lib/jsduck/guide_toc_entry.rb +54 -0
  55. data/lib/jsduck/guide_writer.rb +58 -0
  56. data/lib/jsduck/guides.rb +188 -0
  57. data/lib/jsduck/img/dir.rb +94 -0
  58. data/lib/jsduck/img/dir_set.rb +39 -0
  59. data/lib/jsduck/img/writer.rb +23 -0
  60. data/lib/jsduck/inline/auto_link.rb +106 -0
  61. data/lib/jsduck/inline/example.rb +44 -0
  62. data/lib/jsduck/inline/img.rb +63 -0
  63. data/lib/jsduck/inline/link.rb +100 -0
  64. data/lib/jsduck/inline/link_renderer.rb +70 -0
  65. data/lib/jsduck/inline/video.rb +61 -0
  66. data/lib/jsduck/inline_examples.rb +94 -0
  67. data/lib/jsduck/js/associator.rb +224 -0
  68. data/lib/jsduck/js/ast.rb +69 -0
  69. data/lib/jsduck/js/class.rb +248 -0
  70. data/lib/jsduck/js/evaluator.rb +70 -0
  71. data/lib/jsduck/js/event.rb +34 -0
  72. data/lib/jsduck/js/ext_define.rb +46 -0
  73. data/lib/jsduck/js/ext_patterns.rb +75 -0
  74. data/lib/jsduck/js/fires.rb +42 -0
  75. data/lib/jsduck/js/listener.rb +35 -0
  76. data/lib/jsduck/js/method.rb +99 -0
  77. data/lib/jsduck/js/method_calls.rb +40 -0
  78. data/lib/jsduck/js/node.rb +267 -0
  79. data/lib/jsduck/js/node_array.rb +36 -0
  80. data/lib/jsduck/js/parser.rb +44 -0
  81. data/lib/jsduck/js/property.rb +81 -0
  82. data/lib/jsduck/js/returns.rb +211 -0
  83. data/lib/jsduck/js/rkelly_adapter.rb +587 -0
  84. data/lib/jsduck/js/scoped_traverser.rb +42 -0
  85. data/lib/jsduck/js/serializer.rb +263 -0
  86. data/lib/jsduck/js/utils.rb +21 -0
  87. data/lib/jsduck/logger.rb +186 -0
  88. data/lib/jsduck/member_registry.rb +41 -0
  89. data/lib/jsduck/members_index.rb +141 -0
  90. data/lib/jsduck/merger.rb +83 -0
  91. data/lib/jsduck/news.rb +149 -0
  92. data/lib/jsduck/options/config.rb +35 -0
  93. data/lib/jsduck/options/helpful_parser.rb +111 -0
  94. data/lib/jsduck/options/input_files.rb +60 -0
  95. data/lib/jsduck/options/jsb.rb +25 -0
  96. data/lib/jsduck/options/parser.rb +968 -0
  97. data/lib/jsduck/options/processor.rb +47 -0
  98. data/lib/jsduck/options/record.rb +51 -0
  99. data/lib/jsduck/output_dir.rb +29 -0
  100. data/lib/jsduck/params_merger.rb +47 -0
  101. data/lib/jsduck/parser.rb +76 -0
  102. data/lib/jsduck/process/accessors.rb +152 -0
  103. data/lib/jsduck/process/circular_deps.rb +58 -0
  104. data/lib/jsduck/process/components.rb +19 -0
  105. data/lib/jsduck/process/enums.rb +90 -0
  106. data/lib/jsduck/process/ext4_events.rb +46 -0
  107. data/lib/jsduck/process/fires.rb +71 -0
  108. data/lib/jsduck/process/global_members.rb +35 -0
  109. data/lib/jsduck/process/ignored_classes.rb +16 -0
  110. data/lib/jsduck/process/importer.rb +75 -0
  111. data/lib/jsduck/process/inherit_class.rb +58 -0
  112. data/lib/jsduck/process/inherit_doc.rb +32 -0
  113. data/lib/jsduck/process/inherit_members.rb +259 -0
  114. data/lib/jsduck/process/lint.rb +118 -0
  115. data/lib/jsduck/process/no_doc.rb +50 -0
  116. data/lib/jsduck/process/overrides.rb +99 -0
  117. data/lib/jsduck/process/return_values.rb +72 -0
  118. data/lib/jsduck/process/versions.rb +137 -0
  119. data/lib/jsduck/relations.rb +95 -0
  120. data/lib/jsduck/render/class.rb +152 -0
  121. data/lib/jsduck/render/sidebar.rb +97 -0
  122. data/lib/jsduck/render/signature_util.rb +14 -0
  123. data/lib/jsduck/render/subproperties.rb +117 -0
  124. data/lib/jsduck/render/tags.rb +50 -0
  125. data/lib/jsduck/source/file.rb +89 -0
  126. data/lib/jsduck/tag/abstract.rb +11 -0
  127. data/lib/jsduck/tag/accessor.rb +10 -0
  128. data/lib/jsduck/tag/alias.rb +42 -0
  129. data/lib/jsduck/tag/alternate_class_names.rb +13 -0
  130. data/lib/jsduck/tag/aside.rb +71 -0
  131. data/lib/jsduck/tag/author.rb +30 -0
  132. data/lib/jsduck/tag/boolean_tag.rb +24 -0
  133. data/lib/jsduck/tag/cfg.rb +79 -0
  134. data/lib/jsduck/tag/chainable.rb +12 -0
  135. data/lib/jsduck/tag/class.rb +77 -0
  136. data/lib/jsduck/tag/class_list_tag.rb +40 -0
  137. data/lib/jsduck/tag/component.rb +19 -0
  138. data/lib/jsduck/tag/constructor.rb +24 -0
  139. data/lib/jsduck/tag/css_mixin.rb +31 -0
  140. data/lib/jsduck/tag/css_var.rb +50 -0
  141. data/lib/jsduck/tag/default.rb +25 -0
  142. data/lib/jsduck/tag/deprecated.rb +23 -0
  143. data/lib/jsduck/tag/deprecated_tag.rb +60 -0
  144. data/lib/jsduck/tag/doc.rb +32 -0
  145. data/lib/jsduck/tag/docauthor.rb +12 -0
  146. data/lib/jsduck/tag/enum.rb +67 -0
  147. data/lib/jsduck/tag/event.rb +36 -0
  148. data/lib/jsduck/tag/evented.rb +10 -0
  149. data/lib/jsduck/tag/experimental.rb +28 -0
  150. data/lib/jsduck/tag/extends.rb +39 -0
  151. data/lib/jsduck/tag/fires.rb +55 -0
  152. data/lib/jsduck/tag/ftype.rb +19 -0
  153. data/lib/jsduck/tag/hide.rb +11 -0
  154. data/lib/jsduck/tag/icons/cfg.png +0 -0
  155. data/lib/jsduck/tag/icons/class-large.png +0 -0
  156. data/lib/jsduck/tag/icons/class-redirect.png +0 -0
  157. data/lib/jsduck/tag/icons/class.png +0 -0
  158. data/lib/jsduck/tag/icons/component-large.png +0 -0
  159. data/lib/jsduck/tag/icons/component-redirect.png +0 -0
  160. data/lib/jsduck/tag/icons/component.png +0 -0
  161. data/lib/jsduck/tag/icons/css_mixin.png +0 -0
  162. data/lib/jsduck/tag/icons/css_var.png +0 -0
  163. data/lib/jsduck/tag/icons/event.png +0 -0
  164. data/lib/jsduck/tag/icons/listener.png +0 -0
  165. data/lib/jsduck/tag/icons/method.png +0 -0
  166. data/lib/jsduck/tag/icons/property.png +0 -0
  167. data/lib/jsduck/tag/icons/singleton-large.png +0 -0
  168. data/lib/jsduck/tag/icons/singleton-redirect.png +0 -0
  169. data/lib/jsduck/tag/icons/singleton.png +0 -0
  170. data/lib/jsduck/tag/ignore.rb +12 -0
  171. data/lib/jsduck/tag/inheritable.rb +10 -0
  172. data/lib/jsduck/tag/inheritdoc.rb +48 -0
  173. data/lib/jsduck/tag/listener.rb +36 -0
  174. data/lib/jsduck/tag/localdoc.rb +33 -0
  175. data/lib/jsduck/tag/markdown.rb +14 -0
  176. data/lib/jsduck/tag/member.rb +24 -0
  177. data/lib/jsduck/tag/member_tag.rb +131 -0
  178. data/lib/jsduck/tag/method.rb +75 -0
  179. data/lib/jsduck/tag/mixins.rb +27 -0
  180. data/lib/jsduck/tag/new.rb +32 -0
  181. data/lib/jsduck/tag/override.rb +37 -0
  182. data/lib/jsduck/tag/overrides.rb +29 -0
  183. data/lib/jsduck/tag/param.rb +46 -0
  184. data/lib/jsduck/tag/preventable.rb +37 -0
  185. data/lib/jsduck/tag/private.rb +35 -0
  186. data/lib/jsduck/tag/property.rb +67 -0
  187. data/lib/jsduck/tag/protected.rb +12 -0
  188. data/lib/jsduck/tag/ptype.rb +19 -0
  189. data/lib/jsduck/tag/readonly.rb +11 -0
  190. data/lib/jsduck/tag/removed.rb +32 -0
  191. data/lib/jsduck/tag/required.rb +23 -0
  192. data/lib/jsduck/tag/requires.rb +13 -0
  193. data/lib/jsduck/tag/return.rb +48 -0
  194. data/lib/jsduck/tag/since.rb +30 -0
  195. data/lib/jsduck/tag/singleton.rb +28 -0
  196. data/lib/jsduck/tag/static.rb +12 -0
  197. data/lib/jsduck/tag/subproperties.rb +23 -0
  198. data/lib/jsduck/tag/tag.rb +164 -0
  199. data/lib/jsduck/tag/template.rb +29 -0
  200. data/lib/jsduck/tag/throws.rb +39 -0
  201. data/lib/jsduck/tag/type.rb +38 -0
  202. data/lib/jsduck/tag/uses.rb +13 -0
  203. data/lib/jsduck/tag/xtype.rb +31 -0
  204. data/lib/jsduck/tag_loader.rb +50 -0
  205. data/lib/jsduck/tag_registry.rb +95 -0
  206. data/lib/jsduck/type_parser.rb +388 -0
  207. data/lib/jsduck/util/html.rb +27 -0
  208. data/lib/jsduck/util/io.rb +49 -0
  209. data/lib/jsduck/util/json.rb +60 -0
  210. data/lib/jsduck/util/md5.rb +32 -0
  211. data/lib/jsduck/util/null_object.rb +36 -0
  212. data/lib/jsduck/util/os.rb +14 -0
  213. data/lib/jsduck/util/parallel.rb +38 -0
  214. data/lib/jsduck/util/singleton.rb +35 -0
  215. data/lib/jsduck/util/stdout.rb +33 -0
  216. data/lib/jsduck/version.rb +5 -0
  217. data/lib/jsduck/videos.rb +40 -0
  218. data/lib/jsduck/warning/all.rb +36 -0
  219. data/lib/jsduck/warning/basic.rb +57 -0
  220. data/lib/jsduck/warning/deprecated.rb +40 -0
  221. data/lib/jsduck/warning/nodoc.rb +79 -0
  222. data/lib/jsduck/warning/parser.rb +168 -0
  223. data/lib/jsduck/warning/registry.rb +108 -0
  224. data/lib/jsduck/warning/tag.rb +57 -0
  225. data/lib/jsduck/warning/warn_exception.rb +10 -0
  226. data/lib/jsduck/web/class_icons.rb +76 -0
  227. data/lib/jsduck/web/css.rb +40 -0
  228. data/lib/jsduck/web/data.rb +52 -0
  229. data/lib/jsduck/web/index_html.rb +105 -0
  230. data/lib/jsduck/web/member_icons.rb +43 -0
  231. data/lib/jsduck/web/search.rb +153 -0
  232. data/lib/jsduck/web/source.rb +89 -0
  233. data/lib/jsduck/web/template.rb +51 -0
  234. data/lib/jsduck/web/tree.rb +22 -0
  235. data/lib/jsduck/web/writer.rb +100 -0
  236. data/lib/jsduck/welcome.rb +31 -0
  237. data/template-min/README.md +14 -0
  238. data/template-min/app-0f524ddd276c4019a11a6128932a9c96.js +1 -0
  239. data/template-min/eg-iframe.html +26 -0
  240. data/template-min/extjs/ext-all.js +38 -0
  241. data/template-min/extjs/resources/themes/images/default/boundlist/trigger-arrow.png +0 -0
  242. data/template-min/extjs/resources/themes/images/default/box/corners-blue.gif +0 -0
  243. data/template-min/extjs/resources/themes/images/default/box/corners.gif +0 -0
  244. data/template-min/extjs/resources/themes/images/default/box/l-blue.gif +0 -0
  245. data/template-min/extjs/resources/themes/images/default/box/l.gif +0 -0
  246. data/template-min/extjs/resources/themes/images/default/box/r-blue.gif +0 -0
  247. data/template-min/extjs/resources/themes/images/default/box/r.gif +0 -0
  248. data/template-min/extjs/resources/themes/images/default/box/tb-blue.gif +0 -0
  249. data/template-min/extjs/resources/themes/images/default/box/tb.gif +0 -0
  250. data/template-min/extjs/resources/themes/images/default/btn-group/btn-group-default-framed-corners.gif +0 -0
  251. data/template-min/extjs/resources/themes/images/default/btn-group/btn-group-default-framed-notitle-corners.gif +0 -0
  252. data/template-min/extjs/resources/themes/images/default/btn-group/btn-group-default-framed-notitle-sides.gif +0 -0
  253. data/template-min/extjs/resources/themes/images/default/btn-group/btn-group-default-framed-sides.gif +0 -0
  254. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-bg.gif +0 -0
  255. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-corners.gif +0 -0
  256. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-disabled-bg.gif +0 -0
  257. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-disabled-corners.gif +0 -0
  258. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-disabled-sides.gif +0 -0
  259. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-focus-bg.gif +0 -0
  260. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-focus-corners.gif +0 -0
  261. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-focus-sides.gif +0 -0
  262. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-over-bg.gif +0 -0
  263. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-over-corners.gif +0 -0
  264. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-over-sides.gif +0 -0
  265. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-pressed-bg.gif +0 -0
  266. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-pressed-corners.gif +0 -0
  267. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-pressed-sides.gif +0 -0
  268. data/template-min/extjs/resources/themes/images/default/btn/btn-default-large-sides.gif +0 -0
  269. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-bg.gif +0 -0
  270. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-corners.gif +0 -0
  271. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-disabled-bg.gif +0 -0
  272. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-disabled-corners.gif +0 -0
  273. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-disabled-sides.gif +0 -0
  274. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-focus-bg.gif +0 -0
  275. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-focus-corners.gif +0 -0
  276. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-focus-sides.gif +0 -0
  277. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-over-bg.gif +0 -0
  278. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-over-corners.gif +0 -0
  279. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-over-sides.gif +0 -0
  280. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-pressed-bg.gif +0 -0
  281. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-pressed-corners.gif +0 -0
  282. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-pressed-sides.gif +0 -0
  283. data/template-min/extjs/resources/themes/images/default/btn/btn-default-medium-sides.gif +0 -0
  284. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-bg.gif +0 -0
  285. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-corners.gif +0 -0
  286. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-disabled-bg.gif +0 -0
  287. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-disabled-corners.gif +0 -0
  288. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-disabled-sides.gif +0 -0
  289. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-focus-bg.gif +0 -0
  290. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-focus-corners.gif +0 -0
  291. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-focus-sides.gif +0 -0
  292. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-over-bg.gif +0 -0
  293. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-over-corners.gif +0 -0
  294. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-over-sides.gif +0 -0
  295. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-pressed-bg.gif +0 -0
  296. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-pressed-corners.gif +0 -0
  297. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-pressed-sides.gif +0 -0
  298. data/template-min/extjs/resources/themes/images/default/btn/btn-default-small-sides.gif +0 -0
  299. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-corners.gif +0 -0
  300. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-disabled-corners.gif +0 -0
  301. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-disabled-sides.gif +0 -0
  302. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-focus-bg.gif +0 -0
  303. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-focus-corners.gif +0 -0
  304. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-focus-sides.gif +0 -0
  305. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-over-bg.gif +0 -0
  306. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-over-corners.gif +0 -0
  307. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-over-sides.gif +0 -0
  308. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-pressed-bg.gif +0 -0
  309. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-pressed-corners.gif +0 -0
  310. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-pressed-sides.gif +0 -0
  311. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-large-sides.gif +0 -0
  312. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-corners.gif +0 -0
  313. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-disabled-corners.gif +0 -0
  314. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-disabled-sides.gif +0 -0
  315. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-focus-bg.gif +0 -0
  316. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-focus-corners.gif +0 -0
  317. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-focus-sides.gif +0 -0
  318. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-over-bg.gif +0 -0
  319. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-over-corners.gif +0 -0
  320. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-over-sides.gif +0 -0
  321. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-pressed-bg.gif +0 -0
  322. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-pressed-corners.gif +0 -0
  323. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-pressed-sides.gif +0 -0
  324. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-medium-sides.gif +0 -0
  325. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-corners.gif +0 -0
  326. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-disabled-corners.gif +0 -0
  327. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-disabled-sides.gif +0 -0
  328. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-focus-bg.gif +0 -0
  329. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-focus-corners.gif +0 -0
  330. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-focus-sides.gif +0 -0
  331. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-over-bg.gif +0 -0
  332. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-over-corners.gif +0 -0
  333. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-over-sides.gif +0 -0
  334. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-pressed-bg.gif +0 -0
  335. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-pressed-corners.gif +0 -0
  336. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-pressed-sides.gif +0 -0
  337. data/template-min/extjs/resources/themes/images/default/btn/btn-default-toolbar-small-sides.gif +0 -0
  338. data/template-min/extjs/resources/themes/images/default/button/arrow.gif +0 -0
  339. data/template-min/extjs/resources/themes/images/default/button/btn.gif +0 -0
  340. data/template-min/extjs/resources/themes/images/default/button/group-cs.gif +0 -0
  341. data/template-min/extjs/resources/themes/images/default/button/group-lr.gif +0 -0
  342. data/template-min/extjs/resources/themes/images/default/button/group-tb.gif +0 -0
  343. data/template-min/extjs/resources/themes/images/default/button/s-arrow-b-noline.gif +0 -0
  344. data/template-min/extjs/resources/themes/images/default/button/s-arrow-b.gif +0 -0
  345. data/template-min/extjs/resources/themes/images/default/button/s-arrow-bo.gif +0 -0
  346. data/template-min/extjs/resources/themes/images/default/button/s-arrow-light.gif +0 -0
  347. data/template-min/extjs/resources/themes/images/default/button/s-arrow-noline.gif +0 -0
  348. data/template-min/extjs/resources/themes/images/default/button/s-arrow-o.gif +0 -0
  349. data/template-min/extjs/resources/themes/images/default/button/s-arrow.gif +0 -0
  350. data/template-min/extjs/resources/themes/images/default/datepicker/datepicker-footer-bg.gif +0 -0
  351. data/template-min/extjs/resources/themes/images/default/datepicker/datepicker-footer-bg.png +0 -0
  352. data/template-min/extjs/resources/themes/images/default/datepicker/datepicker-header-bg.gif +0 -0
  353. data/template-min/extjs/resources/themes/images/default/datepicker/datepicker-header-bg.png +0 -0
  354. data/template-min/extjs/resources/themes/images/default/dd/drop-add.gif +0 -0
  355. data/template-min/extjs/resources/themes/images/default/dd/drop-no.gif +0 -0
  356. data/template-min/extjs/resources/themes/images/default/dd/drop-yes.gif +0 -0
  357. data/template-min/extjs/resources/themes/images/default/editor/tb-sprite.gif +0 -0
  358. data/template-min/extjs/resources/themes/images/default/form-invalid-tip/form-invalid-tip-corners.gif +0 -0
  359. data/template-min/extjs/resources/themes/images/default/form-invalid-tip/form-invalid-tip-default-corners.gif +0 -0
  360. data/template-min/extjs/resources/themes/images/default/form-invalid-tip/form-invalid-tip-default-sides.gif +0 -0
  361. data/template-min/extjs/resources/themes/images/default/form-invalid-tip/form-invalid-tip-sides.gif +0 -0
  362. data/template-min/extjs/resources/themes/images/default/form/checkbox.gif +0 -0
  363. data/template-min/extjs/resources/themes/images/default/form/clear-trigger.gif +0 -0
  364. data/template-min/extjs/resources/themes/images/default/form/date-trigger.gif +0 -0
  365. data/template-min/extjs/resources/themes/images/default/form/error-tip-corners.gif +0 -0
  366. data/template-min/extjs/resources/themes/images/default/form/exclamation.gif +0 -0
  367. data/template-min/extjs/resources/themes/images/default/form/radio.gif +0 -0
  368. data/template-min/extjs/resources/themes/images/default/form/search-trigger.gif +0 -0
  369. data/template-min/extjs/resources/themes/images/default/form/spinner-small.gif +0 -0
  370. data/template-min/extjs/resources/themes/images/default/form/spinner.gif +0 -0
  371. data/template-min/extjs/resources/themes/images/default/form/text-bg.gif +0 -0
  372. data/template-min/extjs/resources/themes/images/default/form/trigger-square.gif +0 -0
  373. data/template-min/extjs/resources/themes/images/default/form/trigger-tpl.gif +0 -0
  374. data/template-min/extjs/resources/themes/images/default/form/trigger.gif +0 -0
  375. data/template-min/extjs/resources/themes/images/default/grid/arrow-left-white.gif +0 -0
  376. data/template-min/extjs/resources/themes/images/default/grid/arrow-right-white.gif +0 -0
  377. data/template-min/extjs/resources/themes/images/default/grid/cell-special-bg.gif +0 -0
  378. data/template-min/extjs/resources/themes/images/default/grid/cell-special-bg.png +0 -0
  379. data/template-min/extjs/resources/themes/images/default/grid/cell-special-selected-bg.gif +0 -0
  380. data/template-min/extjs/resources/themes/images/default/grid/cell-special-selected-bg.png +0 -0
  381. data/template-min/extjs/resources/themes/images/default/grid/checked.gif +0 -0
  382. data/template-min/extjs/resources/themes/images/default/grid/col-move-bottom.gif +0 -0
  383. data/template-min/extjs/resources/themes/images/default/grid/col-move-top.gif +0 -0
  384. data/template-min/extjs/resources/themes/images/default/grid/column-header-bg.gif +0 -0
  385. data/template-min/extjs/resources/themes/images/default/grid/column-header-bg.png +0 -0
  386. data/template-min/extjs/resources/themes/images/default/grid/column-header-over-bg.gif +0 -0
  387. data/template-min/extjs/resources/themes/images/default/grid/column-header-over-bg.png +0 -0
  388. data/template-min/extjs/resources/themes/images/default/grid/columns.gif +0 -0
  389. data/template-min/extjs/resources/themes/images/default/grid/dd-insert-arrow-left.gif +0 -0
  390. data/template-min/extjs/resources/themes/images/default/grid/dd-insert-arrow-left.png +0 -0
  391. data/template-min/extjs/resources/themes/images/default/grid/dd-insert-arrow-right.gif +0 -0
  392. data/template-min/extjs/resources/themes/images/default/grid/dd-insert-arrow-right.png +0 -0
  393. data/template-min/extjs/resources/themes/images/default/grid/dirty.gif +0 -0
  394. data/template-min/extjs/resources/themes/images/default/grid/done.gif +0 -0
  395. data/template-min/extjs/resources/themes/images/default/grid/drop-no.gif +0 -0
  396. data/template-min/extjs/resources/themes/images/default/grid/drop-yes.gif +0 -0
  397. data/template-min/extjs/resources/themes/images/default/grid/footer-bg.gif +0 -0
  398. data/template-min/extjs/resources/themes/images/default/grid/grid-blue-hd.gif +0 -0
  399. data/template-min/extjs/resources/themes/images/default/grid/grid-blue-split.gif +0 -0
  400. data/template-min/extjs/resources/themes/images/default/grid/grid-hrow.gif +0 -0
  401. data/template-min/extjs/resources/themes/images/default/grid/grid-loading.gif +0 -0
  402. data/template-min/extjs/resources/themes/images/default/grid/grid-split.gif +0 -0
  403. data/template-min/extjs/resources/themes/images/default/grid/grid-vista-hd.gif +0 -0
  404. data/template-min/extjs/resources/themes/images/default/grid/grid3-hd-btn.gif +0 -0
  405. data/template-min/extjs/resources/themes/images/default/grid/grid3-hrow-over.gif +0 -0
  406. data/template-min/extjs/resources/themes/images/default/grid/grid3-hrow.gif +0 -0
  407. data/template-min/extjs/resources/themes/images/default/grid/grid3-rowheader.gif +0 -0
  408. data/template-min/extjs/resources/themes/images/default/grid/group-by.gif +0 -0
  409. data/template-min/extjs/resources/themes/images/default/grid/group-collapse.gif +0 -0
  410. data/template-min/extjs/resources/themes/images/default/grid/group-expand-sprite.gif +0 -0
  411. data/template-min/extjs/resources/themes/images/default/grid/group-expand.gif +0 -0
  412. data/template-min/extjs/resources/themes/images/default/grid/hd-pop.gif +0 -0
  413. data/template-min/extjs/resources/themes/images/default/grid/hmenu-asc.gif +0 -0
  414. data/template-min/extjs/resources/themes/images/default/grid/hmenu-desc.gif +0 -0
  415. data/template-min/extjs/resources/themes/images/default/grid/hmenu-lock.gif +0 -0
  416. data/template-min/extjs/resources/themes/images/default/grid/hmenu-lock.png +0 -0
  417. data/template-min/extjs/resources/themes/images/default/grid/hmenu-unlock.gif +0 -0
  418. data/template-min/extjs/resources/themes/images/default/grid/hmenu-unlock.png +0 -0
  419. data/template-min/extjs/resources/themes/images/default/grid/invalid_line.gif +0 -0
  420. data/template-min/extjs/resources/themes/images/default/grid/loading.gif +0 -0
  421. data/template-min/extjs/resources/themes/images/default/grid/mso-hd.gif +0 -0
  422. data/template-min/extjs/resources/themes/images/default/grid/nowait.gif +0 -0
  423. data/template-min/extjs/resources/themes/images/default/grid/page-first-disabled.gif +0 -0
  424. data/template-min/extjs/resources/themes/images/default/grid/page-first.gif +0 -0
  425. data/template-min/extjs/resources/themes/images/default/grid/page-last-disabled.gif +0 -0
  426. data/template-min/extjs/resources/themes/images/default/grid/page-last.gif +0 -0
  427. data/template-min/extjs/resources/themes/images/default/grid/page-next-disabled.gif +0 -0
  428. data/template-min/extjs/resources/themes/images/default/grid/page-next.gif +0 -0
  429. data/template-min/extjs/resources/themes/images/default/grid/page-prev-disabled.gif +0 -0
  430. data/template-min/extjs/resources/themes/images/default/grid/page-prev.gif +0 -0
  431. data/template-min/extjs/resources/themes/images/default/grid/pick-button.gif +0 -0
  432. data/template-min/extjs/resources/themes/images/default/grid/property-cell-bg.gif +0 -0
  433. data/template-min/extjs/resources/themes/images/default/grid/property-cell-selected-bg.gif +0 -0
  434. data/template-min/extjs/resources/themes/images/default/grid/refresh-disabled.gif +0 -0
  435. data/template-min/extjs/resources/themes/images/default/grid/refresh.gif +0 -0
  436. data/template-min/extjs/resources/themes/images/default/grid/row-check-sprite.gif +0 -0
  437. data/template-min/extjs/resources/themes/images/default/grid/row-expand-sprite.gif +0 -0
  438. data/template-min/extjs/resources/themes/images/default/grid/row-over.gif +0 -0
  439. data/template-min/extjs/resources/themes/images/default/grid/row-sel.gif +0 -0
  440. data/template-min/extjs/resources/themes/images/default/grid/sort-hd.gif +0 -0
  441. data/template-min/extjs/resources/themes/images/default/grid/sort_asc.gif +0 -0
  442. data/template-min/extjs/resources/themes/images/default/grid/sort_desc.gif +0 -0
  443. data/template-min/extjs/resources/themes/images/default/grid/unchecked.gif +0 -0
  444. data/template-min/extjs/resources/themes/images/default/grid/wait.gif +0 -0
  445. data/template-min/extjs/resources/themes/images/default/layout/mini-bottom.gif +0 -0
  446. data/template-min/extjs/resources/themes/images/default/layout/mini-left.gif +0 -0
  447. data/template-min/extjs/resources/themes/images/default/layout/mini-right.gif +0 -0
  448. data/template-min/extjs/resources/themes/images/default/layout/mini-top.gif +0 -0
  449. data/template-min/extjs/resources/themes/images/default/menu/checked.gif +0 -0
  450. data/template-min/extjs/resources/themes/images/default/menu/group-checked.gif +0 -0
  451. data/template-min/extjs/resources/themes/images/default/menu/item-over.gif +0 -0
  452. data/template-min/extjs/resources/themes/images/default/menu/menu-item-active-bg.gif +0 -0
  453. data/template-min/extjs/resources/themes/images/default/menu/menu-item-active-corners.gif +0 -0
  454. data/template-min/extjs/resources/themes/images/default/menu/menu-item-active-sides.gif +0 -0
  455. data/template-min/extjs/resources/themes/images/default/menu/menu-parent.gif +0 -0
  456. data/template-min/extjs/resources/themes/images/default/menu/menu.gif +0 -0
  457. data/template-min/extjs/resources/themes/images/default/menu/unchecked.gif +0 -0
  458. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-bottom-bg.gif +0 -0
  459. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-bottom-bg.gif +0 -0
  460. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-bottom-corners.gif +0 -0
  461. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-bottom-sides.gif +0 -0
  462. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-bottom-bg.gif +0 -0
  463. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif +0 -0
  464. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif +0 -0
  465. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-left-bg.gif +0 -0
  466. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-left-corners.gif +0 -0
  467. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-left-sides.gif +0 -0
  468. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-right-bg.gif +0 -0
  469. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-right-corners.gif +0 -0
  470. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-right-sides.gif +0 -0
  471. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-top-bg.gif +0 -0
  472. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-top-corners.gif +0 -0
  473. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-collapsed-top-sides.gif +0 -0
  474. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-left-bg.gif +0 -0
  475. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-left-corners.gif +0 -0
  476. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-left-sides.gif +0 -0
  477. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-right-bg.gif +0 -0
  478. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-right-corners.gif +0 -0
  479. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-right-sides.gif +0 -0
  480. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-top-bg.gif +0 -0
  481. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-top-corners.gif +0 -0
  482. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-framed-top-sides.gif +0 -0
  483. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-left-bg.gif +0 -0
  484. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-right-bg.gif +0 -0
  485. data/template-min/extjs/resources/themes/images/default/panel-header/panel-header-default-top-bg.gif +0 -0
  486. data/template-min/extjs/resources/themes/images/default/panel/panel-default-framed-corners.gif +0 -0
  487. data/template-min/extjs/resources/themes/images/default/panel/panel-default-framed-sides.gif +0 -0
  488. data/template-min/extjs/resources/themes/images/default/progress/progress-default-bg.gif +0 -0
  489. data/template-min/extjs/resources/themes/images/default/shared/blue-loading.gif +0 -0
  490. data/template-min/extjs/resources/themes/images/default/shared/calendar.gif +0 -0
  491. data/template-min/extjs/resources/themes/images/default/shared/glass-bg.gif +0 -0
  492. data/template-min/extjs/resources/themes/images/default/shared/hd-sprite.gif +0 -0
  493. data/template-min/extjs/resources/themes/images/default/shared/icon-error.gif +0 -0
  494. data/template-min/extjs/resources/themes/images/default/shared/icon-info.gif +0 -0
  495. data/template-min/extjs/resources/themes/images/default/shared/icon-question.gif +0 -0
  496. data/template-min/extjs/resources/themes/images/default/shared/icon-warning.gif +0 -0
  497. data/template-min/extjs/resources/themes/images/default/shared/large-loading.gif +0 -0
  498. data/template-min/extjs/resources/themes/images/default/shared/left-btn.gif +0 -0
  499. data/template-min/extjs/resources/themes/images/default/shared/loading-balls.gif +0 -0
  500. data/template-min/extjs/resources/themes/images/default/shared/right-btn.gif +0 -0
  501. data/template-min/extjs/resources/themes/images/default/shared/shadow-c.png +0 -0
  502. data/template-min/extjs/resources/themes/images/default/shared/shadow-lr.png +0 -0
  503. data/template-min/extjs/resources/themes/images/default/shared/shadow.png +0 -0
  504. data/template-min/extjs/resources/themes/images/default/shared/warning.gif +0 -0
  505. data/template-min/extjs/resources/themes/images/default/sizer/e-handle-dark.gif +0 -0
  506. data/template-min/extjs/resources/themes/images/default/sizer/e-handle.gif +0 -0
  507. data/template-min/extjs/resources/themes/images/default/sizer/ne-handle-dark.gif +0 -0
  508. data/template-min/extjs/resources/themes/images/default/sizer/ne-handle.gif +0 -0
  509. data/template-min/extjs/resources/themes/images/default/sizer/nw-handle-dark.gif +0 -0
  510. data/template-min/extjs/resources/themes/images/default/sizer/nw-handle.gif +0 -0
  511. data/template-min/extjs/resources/themes/images/default/sizer/s-handle-dark.gif +0 -0
  512. data/template-min/extjs/resources/themes/images/default/sizer/s-handle.gif +0 -0
  513. data/template-min/extjs/resources/themes/images/default/sizer/se-handle-dark.gif +0 -0
  514. data/template-min/extjs/resources/themes/images/default/sizer/se-handle.gif +0 -0
  515. data/template-min/extjs/resources/themes/images/default/sizer/square.gif +0 -0
  516. data/template-min/extjs/resources/themes/images/default/sizer/sw-handle-dark.gif +0 -0
  517. data/template-min/extjs/resources/themes/images/default/sizer/sw-handle.gif +0 -0
  518. data/template-min/extjs/resources/themes/images/default/slider/slider-bg.gif +0 -0
  519. data/template-min/extjs/resources/themes/images/default/slider/slider-bg.png +0 -0
  520. data/template-min/extjs/resources/themes/images/default/slider/slider-thumb.gif +0 -0
  521. data/template-min/extjs/resources/themes/images/default/slider/slider-thumb.png +0 -0
  522. data/template-min/extjs/resources/themes/images/default/slider/slider-v-bg.gif +0 -0
  523. data/template-min/extjs/resources/themes/images/default/slider/slider-v-bg.png +0 -0
  524. data/template-min/extjs/resources/themes/images/default/slider/slider-v-thumb.gif +0 -0
  525. data/template-min/extjs/resources/themes/images/default/slider/slider-v-thumb.png +0 -0
  526. data/template-min/extjs/resources/themes/images/default/tab-bar/scroll-left.gif +0 -0
  527. data/template-min/extjs/resources/themes/images/default/tab-bar/scroll-right.gif +0 -0
  528. data/template-min/extjs/resources/themes/images/default/tab-bar/tab-bar-default-bg.gif +0 -0
  529. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-active-bg.gif +0 -0
  530. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-active-corners.gif +0 -0
  531. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-active-sides.gif +0 -0
  532. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-bg.gif +0 -0
  533. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-corners.gif +0 -0
  534. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-disabled-bg.gif +0 -0
  535. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-disabled-corners.gif +0 -0
  536. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-disabled-sides.gif +0 -0
  537. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-over-bg.gif +0 -0
  538. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-over-corners.gif +0 -0
  539. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-over-sides.gif +0 -0
  540. data/template-min/extjs/resources/themes/images/default/tab/tab-default-bottom-sides.gif +0 -0
  541. data/template-min/extjs/resources/themes/images/default/tab/tab-default-close.gif +0 -0
  542. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-active-bg.gif +0 -0
  543. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-active-corners.gif +0 -0
  544. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-active-sides.gif +0 -0
  545. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-bg.gif +0 -0
  546. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-corners.gif +0 -0
  547. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-disabled-bg.gif +0 -0
  548. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-disabled-corners.gif +0 -0
  549. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-disabled-sides.gif +0 -0
  550. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-over-bg.gif +0 -0
  551. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-over-corners.gif +0 -0
  552. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-over-sides.gif +0 -0
  553. data/template-min/extjs/resources/themes/images/default/tab/tab-default-top-sides.gif +0 -0
  554. data/template-min/extjs/resources/themes/images/default/tip/tip-corners.gif +0 -0
  555. data/template-min/extjs/resources/themes/images/default/tip/tip-sides.gif +0 -0
  556. data/template-min/extjs/resources/themes/images/default/toolbar/more.gif +0 -0
  557. data/template-min/extjs/resources/themes/images/default/toolbar/scroll-left.gif +0 -0
  558. data/template-min/extjs/resources/themes/images/default/toolbar/scroll-right.gif +0 -0
  559. data/template-min/extjs/resources/themes/images/default/toolbar/toolbar-default-bg.gif +0 -0
  560. data/template-min/extjs/resources/themes/images/default/tools/tool-sprite-tpl.gif +0 -0
  561. data/template-min/extjs/resources/themes/images/default/tools/tool-sprites.gif +0 -0
  562. data/template-min/extjs/resources/themes/images/default/tools/tools-sprites-trans.gif +0 -0
  563. data/template-min/extjs/resources/themes/images/default/tree/arrows.gif +0 -0
  564. data/template-min/extjs/resources/themes/images/default/tree/drop-above.gif +0 -0
  565. data/template-min/extjs/resources/themes/images/default/tree/drop-add.gif +0 -0
  566. data/template-min/extjs/resources/themes/images/default/tree/drop-append.gif +0 -0
  567. data/template-min/extjs/resources/themes/images/default/tree/drop-below.gif +0 -0
  568. data/template-min/extjs/resources/themes/images/default/tree/drop-between.gif +0 -0
  569. data/template-min/extjs/resources/themes/images/default/tree/drop-no.gif +0 -0
  570. data/template-min/extjs/resources/themes/images/default/tree/drop-over.gif +0 -0
  571. data/template-min/extjs/resources/themes/images/default/tree/drop-under.gif +0 -0
  572. data/template-min/extjs/resources/themes/images/default/tree/drop-yes.gif +0 -0
  573. data/template-min/extjs/resources/themes/images/default/tree/elbow-end-minus-nl.gif +0 -0
  574. data/template-min/extjs/resources/themes/images/default/tree/elbow-end-minus.gif +0 -0
  575. data/template-min/extjs/resources/themes/images/default/tree/elbow-end-plus-nl.gif +0 -0
  576. data/template-min/extjs/resources/themes/images/default/tree/elbow-end-plus.gif +0 -0
  577. data/template-min/extjs/resources/themes/images/default/tree/elbow-end.gif +0 -0
  578. data/template-min/extjs/resources/themes/images/default/tree/elbow-line.gif +0 -0
  579. data/template-min/extjs/resources/themes/images/default/tree/elbow-minus-nl.gif +0 -0
  580. data/template-min/extjs/resources/themes/images/default/tree/elbow-minus.gif +0 -0
  581. data/template-min/extjs/resources/themes/images/default/tree/elbow-plus-nl.gif +0 -0
  582. data/template-min/extjs/resources/themes/images/default/tree/elbow-plus.gif +0 -0
  583. data/template-min/extjs/resources/themes/images/default/tree/elbow.gif +0 -0
  584. data/template-min/extjs/resources/themes/images/default/tree/folder-open.gif +0 -0
  585. data/template-min/extjs/resources/themes/images/default/tree/folder.gif +0 -0
  586. data/template-min/extjs/resources/themes/images/default/tree/leaf.gif +0 -0
  587. data/template-min/extjs/resources/themes/images/default/tree/loading.gif +0 -0
  588. data/template-min/extjs/resources/themes/images/default/tree/s.gif +0 -0
  589. data/template-min/extjs/resources/themes/images/default/util/splitter/mini-bottom.gif +0 -0
  590. data/template-min/extjs/resources/themes/images/default/util/splitter/mini-left.gif +0 -0
  591. data/template-min/extjs/resources/themes/images/default/util/splitter/mini-right.gif +0 -0
  592. data/template-min/extjs/resources/themes/images/default/util/splitter/mini-top.gif +0 -0
  593. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-bottom-corners.gif +0 -0
  594. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-bottom-sides.gif +0 -0
  595. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-bottom-corners.gif +0 -0
  596. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-bottom-sides.gif +0 -0
  597. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-left-corners.gif +0 -0
  598. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-left-sides.gif +0 -0
  599. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-right-corners.gif +0 -0
  600. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-right-sides.gif +0 -0
  601. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-top-corners.gif +0 -0
  602. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-collapsed-top-sides.gif +0 -0
  603. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-left-corners.gif +0 -0
  604. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-left-sides.gif +0 -0
  605. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-right-corners.gif +0 -0
  606. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-right-sides.gif +0 -0
  607. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-top-corners.gif +0 -0
  608. data/template-min/extjs/resources/themes/images/default/window-header/window-header-default-top-sides.gif +0 -0
  609. data/template-min/extjs/resources/themes/images/default/window/window-default-corners.gif +0 -0
  610. data/template-min/extjs/resources/themes/images/default/window/window-default-sides.gif +0 -0
  611. data/template-min/favicon.ico +0 -0
  612. data/template-min/index-template.html +35 -0
  613. data/template-min/index.php +95 -0
  614. data/template-min/mobile-redirect.js +1 -0
  615. data/template-min/print-template.html +52 -0
  616. data/template-min/resources/css/app-de670120f43fdad3091a0cc2c10daadb.css +1 -0
  617. data/template-min/resources/images/ajax-loader.gif +0 -0
  618. data/template-min/resources/images/arrows.png +0 -0
  619. data/template-min/resources/images/comment-bubble.png +0 -0
  620. data/template-min/resources/images/comment.png +0 -0
  621. data/template-min/resources/images/default-guide.png +0 -0
  622. data/template-min/resources/images/doc-m.png +0 -0
  623. data/template-min/resources/images/down-arr.png +0 -0
  624. data/template-min/resources/images/elbow-end.gif +0 -0
  625. data/template-min/resources/images/example-icons.png +0 -0
  626. data/template-min/resources/images/expandcollapse.png +0 -0
  627. data/template-min/resources/images/group-expand-sprite.gif +0 -0
  628. data/template-min/resources/images/header.png +0 -0
  629. data/template-min/resources/images/hero-extjs4-alt.png +0 -0
  630. data/template-min/resources/images/icons.png +0 -0
  631. data/template-min/resources/images/icons.xcf +0 -0
  632. data/template-min/resources/images/link-green-standard-over.png +0 -0
  633. data/template-min/resources/images/link-green-standard.png +0 -0
  634. data/template-min/resources/images/loading.gif +0 -0
  635. data/template-min/resources/images/logo-screen-noglow.png +0 -0
  636. data/template-min/resources/images/logo.png +0 -0
  637. data/template-min/resources/images/member-collapsed.gif +0 -0
  638. data/template-min/resources/images/member-expanded.gif +0 -0
  639. data/template-min/resources/images/member-hover.gif +0 -0
  640. data/template-min/resources/images/more.png +0 -0
  641. data/template-min/resources/images/phone-l.jpg +0 -0
  642. data/template-min/resources/images/phone-p.jpg +0 -0
  643. data/template-min/resources/images/phone-small-l.jpg +0 -0
  644. data/template-min/resources/images/phone-small-p.jpg +0 -0
  645. data/template-min/resources/images/print.png +0 -0
  646. data/template-min/resources/images/sample-over.gif +0 -0
  647. data/template-min/resources/images/search-box.png +0 -0
  648. data/template-min/resources/images/tablet-l.jpg +0 -0
  649. data/template-min/resources/images/tablet-p.jpg +0 -0
  650. data/template-min/resources/images/tabs.png +0 -0
  651. data/template-min/resources/images/text-bg.gif +0 -0
  652. data/template-min/resources/images/vote-arrows.png +0 -0
  653. data/template-min/resources/images/welcome-bg-js4.gif +0 -0
  654. data/template-min/resources/images/x.png +0 -0
  655. data/template-min/resources/images/x12.png +0 -0
  656. data/template-min/resources/prettify/prettify.css +1 -0
  657. data/template-min/resources/prettify/prettify.js +30 -0
  658. data/template-min/template.html +44 -0
  659. metadata +828 -0
data/README.md ADDED
@@ -0,0 +1,115 @@
1
+ Solvas JSDuck Project
2
+ ===================
3
+
4
+ A fork of JSDuck - API documentation generator for Sencha JavaScript frameworks.
5
+
6
+ JSDuck aims to be a better documentation generator for [Ext JS][] than
7
+ the old [ext-doc][] was. It is used by Sencha to document [Ext JS
8
+ 4][ext4-docs], [Sencha Touch][touch2-docs] and [several other][other-docs]
9
+ products.
10
+
11
+ The highlights of JSDuck are [Markdown][] support and keeping you DRY
12
+ by inferring a lot of information from code. Read the
13
+ [documentation][] for full overview.
14
+
15
+ **New to JSDuck?** Watch [introductory talk by Nick Poulden][video]:
16
+
17
+ [<img src="http://b.vimeocdn.com/ts/227/178/227178682_200.jpg" alt="SenchaCon 2011 JSDuck talk" />][video]
18
+
19
+ [Ext JS]: http://www.sencha.com/products/js/
20
+ [ext-doc]: http://code.google.com/p/ext-doc/
21
+ [Markdown]: http://daringfireball.net/projects/markdown/
22
+ [ext4-docs]: http://docs.sencha.com/extjs/
23
+ [touch2-docs]: http://docs.sencha.com/touch/
24
+ [other-docs]: http://docs.sencha.com/
25
+ [documentation]: https://github.com/senchalabs/jsduck/wiki
26
+ [video]: http://vimeo.com/33465319
27
+
28
+ Getting it
29
+ ----------
30
+
31
+ Standard rubygems install should do:
32
+
33
+ $ [sudo] gem install solvas-jsduck
34
+
35
+ Usage
36
+ -----
37
+
38
+ For the simplest test-run just use the `--builtin-classes` option to
39
+ write documentation for JavaScript builtin classes like Array, String
40
+ and Object into `docs` directory:
41
+
42
+ $ solvas-jsduck --builtin-classes --output docs
43
+
44
+ To generate docs for [Ext JS 4][] add path to the corresponding src/ dir:
45
+
46
+ $ solvas-jsduck ext-4.2.1/src --output docs
47
+
48
+ And to create docs for your own Ext JS project, list the directory
49
+ with your files in addition to the Ext JS source files (this way the
50
+ docs of your classes will list all the properties and methods they
51
+ inherit from Ext JS classes):
52
+
53
+ $ solvas-jsduck ext-4.2.1/src my-project/js --output docs
54
+
55
+ Unfortunately the above will throw lots of warnings at you, as
56
+ building the full Ext JS docs requires lots of additional settings.
57
+ For start you might want to simply ignore all these warnings
58
+ originating from Ext JS source:
59
+
60
+ $ solvas-jsduck ext-4.2.1/src my-project/js --output docs \
61
+ --warnings=-all:ext-4.2.1/src
62
+
63
+ But see the [Usage guide][] for more information on building Ext JS 4
64
+ docs.
65
+
66
+ [Ext JS 4]: http://www.sencha.com/products/extjs/
67
+ [Usage guide]: https://github.com/senchalabs/jsduck/wiki/Usage
68
+
69
+
70
+ Documenting your code
71
+ ---------------------
72
+
73
+ Read the [documentation][] and take a look at [example.js][example].
74
+
75
+ [example]: https://github.com/senchalabs/jsduck/blob/master/opt/example.js
76
+
77
+
78
+ Copying
79
+ -------
80
+
81
+ JSDuck is distributed under the terms of the GNU General Public
82
+ License version 3.
83
+
84
+ JSDuck was developed by [Rene Saarsoo](http://triin.net),
85
+ with contributions from
86
+ [Nick Poulden](https://github.com/nick),
87
+ [Ondřej Jirman](https://github.com/megous),
88
+ [Thomas Aylott](https://github.com/subtleGradient),
89
+ [Dave Thompson](https://github.com/limscoder),
90
+ [Ed Spencer](https://github.com/edspencer),
91
+ [Rob Dougan](https://github.com/rdougan),
92
+ [Scott Whittaker](https://github.com/scottrobertwhittaker),
93
+ [Timo Tijhof](https://github.com/Krinkle),
94
+ [Brian Moeskau](https://github.com/bmoeskau),
95
+ [Garry Yao](https://github.com/garryyao),
96
+ [Yasin Okumus](https://github.com/lacivert),
97
+ [Nicholas Boll](https://github.com/NicholasBoll) and
98
+ Katherine Chu.
99
+
100
+ Many thanks goes also to those who have most eagerly reported bugs:
101
+ [Ryan Nauman](https://github.com/ryan-nauman),
102
+ [Raphael Franchet](https://github.com/raphdulaf),
103
+ [atian25](https://github.com/atian25),
104
+ [burnnat](https://github.com/burnnat),
105
+ [Raphael Pigulla](https://github.com/pigulla),
106
+ [Dmitry Bakaleinik](https://github.com/demongloom),
107
+ [Alan Lindsay](https://github.com/alindsay55661),
108
+ [Corey Butler](https://github.com/coreybutler),
109
+ [Nickolay Platonov](https://github.com/SamuraiJack),
110
+ [Matt Greer](https://github.com/city41),
111
+ [Richard](https://github.com/ritcoder) and
112
+ [Dmitry Pashkevich](https://github.com/dpashkevich).
113
+
114
+ There are lots of others I haven't named here, who have provided their
115
+ input.
data/bin/solvas-jsduck ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # JsDuck is free software: you can redistribute it and/or modify it
3
+ # under the terms of the GNU General Public License as published by
4
+ # the Free Software Foundation, either version 3 of the License, or
5
+ # (at your option) any later version.
6
+ #
7
+ # JsDuck is distributed in the hope that it will be useful, but
8
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
+ # See the GNU General Public License for more details.
11
+ #
12
+ # You should have received a copy of the GNU General Public License
13
+ # along with JsDuck. If not, see <http://www.gnu.org/licenses/>.
14
+ #
15
+ # Copyright 2010 Rene Saarsoo.
16
+
17
+ # For running when gem not installed
18
+ $:.unshift File.dirname(File.dirname(__FILE__)) + "/lib"
19
+
20
+ require 'jsduck/app'
21
+ require 'jsduck/options/processor'
22
+
23
+ opts = JsDuck::Options::Processor.process(ARGV)
24
+
25
+ exit_code = JsDuck::App.new(opts).run
26
+
27
+ exit exit_code
@@ -0,0 +1,1054 @@
1
+ /**
2
+ * @class Array
3
+ *
4
+ * In JavaScript, the `Array` property of the global object is a constructor for
5
+ * array instances.
6
+ *
7
+ * An array is a JavaScript object. Note that you shouldn't use it as an
8
+ * associative array, use {@link Object} instead.
9
+ *
10
+ * # Creating an Array
11
+ *
12
+ * The following example creates an array, msgArray, with a length of 0, then assigns values to
13
+ * msgArray[0] and msgArray[99], changing the length of the array to 100.
14
+ *
15
+ * var msgArray = new Array();
16
+ * msgArray[0] = "Hello";
17
+ * msgArray[99] = "world";
18
+ *
19
+ * if (msgArray.length == 100)
20
+ * print("The length is 100.");
21
+ *
22
+ * # Creating a Two-dimensional Array
23
+ *
24
+ * The following creates chess board as a two dimensional array of strings. The first move is made by
25
+ * copying the 'P' in 6,4 to 4,4. The position 4,4 is left blank.
26
+ *
27
+ * var board =
28
+ * [ ['R','N','B','Q','K','B','N','R'],
29
+ * ['P','P','P','P','P','P','P','P'],
30
+ * [' ',' ',' ',' ',' ',' ',' ',' '],
31
+ * [' ',' ',' ',' ',' ',' ',' ',' '],
32
+ * [' ',' ',' ',' ',' ',' ',' ',' '],
33
+ * [' ',' ',' ',' ',' ',' ',' ',' '],
34
+ * ['p','p','p','p','p','p','p','p'],
35
+ * ['r','n','b','q','k','b','n','r']];
36
+ * print(board.join('\n') + '\n\n');
37
+ *
38
+ * // Move King's Pawn forward 2
39
+ * board[4][4] = board[6][4];
40
+ * board[6][4] = ' ';
41
+ * print(board.join('\n'));
42
+ *
43
+ * Here is the output:
44
+ *
45
+ * R,N,B,Q,K,B,N,R
46
+ * P,P,P,P,P,P,P,P
47
+ * , , , , , , ,
48
+ * , , , , , , ,
49
+ * , , , , , , ,
50
+ * , , , , , , ,
51
+ * p,p,p,p,p,p,p,p
52
+ * r,n,b,q,k,b,n,r
53
+ *
54
+ * R,N,B,Q,K,B,N,R
55
+ * P,P,P,P,P,P,P,P
56
+ * , , , , , , ,
57
+ * , , , , , , ,
58
+ * , , , ,p, , ,
59
+ * , , , , , , ,
60
+ * p,p,p,p, ,p,p,p
61
+ * r,n,b,q,k,b,n,r
62
+ *
63
+ * # Accessing array elements
64
+ *
65
+ * Array elements are nothing less than object properties, so they are accessed as such.
66
+ *
67
+ * var myArray = new Array("Wind", "Rain", "Fire");
68
+ * myArray[0]; // "Wind"
69
+ * myArray[1]; // "Rain"
70
+ * // etc.
71
+ * myArray.length; // 3
72
+ *
73
+ * // Even if indices are properties, the following notation throws a syntax error
74
+ * myArray.2;
75
+ *
76
+ * // It should be noted that in JavaScript, object property names are strings. Consequently,
77
+ * myArray[0] === myArray["0"];
78
+ * myArray[1] === myArray["1"];
79
+ * // etc.
80
+ *
81
+ * // However, this should be considered carefully
82
+ * myArray[02]; // "Fire". The number 02 is converted as the "2" string
83
+ * myArray["02"]; // undefined. There is no property named "02"
84
+ *
85
+ * # Relationship between length and numerical properties
86
+ *
87
+ * An array's length property and numerical properties are connected. Here is some
88
+ * code explaining how this relationship works.
89
+ *
90
+ * var a = [];
91
+ *
92
+ * a[0] = 'a';
93
+ * console.log(a[0]); // 'a'
94
+ * console.log(a.length); // 1
95
+ *
96
+ * a[1] = 32;
97
+ * console.log(a[1]); // 32
98
+ * console.log(a.length); // 2
99
+ *
100
+ * a[13] = 12345;
101
+ * console.log(a[13]); // 12345
102
+ * console.log(a.length); // 14
103
+ *
104
+ * a.length = 10;
105
+ * console.log(a[13]); // undefined, when reducing the length elements after length+1 are removed
106
+ * console.log(a.length); // 10
107
+ *
108
+ * # Creating an array using the result of a match
109
+ *
110
+ * The result of a match between a regular expression and a string can create an array.
111
+ * This array has properties and elements that provide information about the match. An
112
+ * array is the return value of RegExp.exec, String.match, and String.replace. To help
113
+ * explain these properties and elements, look at the following example and then refer
114
+ * to the table below:
115
+ *
116
+ * // Match one d followed by one or more b's followed by one d
117
+ * // Remember matched b's and the following d
118
+ * // Ignore case
119
+ *
120
+ * var myRe = /d(b+)(d)/i;
121
+ * var myArray = myRe.exec("cdbBdbsbz");
122
+ *
123
+ * The properties and elements returned from this match are as follows:
124
+ *
125
+ *
126
+ * | Property/Element | Description | Example
127
+ * |:-----------------|:--------------------------------------------------------------------------------------|:-------------------
128
+ * | `input` | A read-only property that reflects the original string against which the | cdbBdbsbz
129
+ * | | regular expression was matched. |
130
+ * | `index` | A read-only property that is the zero-based index of the match in the string. | 1
131
+ * | `[0]` | A read-only element that specifies the last matched characters. | dbBd
132
+ * | `[1], ...[n]` | Read-only elements that specify the parenthesized substring matches, if included in | [1]: bB [2]: d
133
+ * | | the regular expression. The number of possible parenthesized substrings is unlimited. |
134
+ *
135
+ * <div class="notice">
136
+ * Documentation for this class comes from <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array">MDN</a>
137
+ * and is available under <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons: Attribution-Sharealike license</a>.
138
+ * </div>
139
+ *
140
+ */
141
+
142
+ /**
143
+ * @method constructor
144
+ * Creates new Array object.
145
+ *
146
+ * @param {Number/Object...} items Either a number that specifies the length of array or any number of items
147
+ * for the array.
148
+ */
149
+
150
+ // Properties
151
+
152
+ /**
153
+ * @property {Number} length
154
+ * Reflects the number of elements in an array.
155
+ *
156
+ * The value of the `length` property is an integer with a positive sign and a value less than 2 to the 32
157
+ * power (232).
158
+ *
159
+ * You can set the `length` property to truncate an array at any time. When you extend an array by changing
160
+ * its `length` property, the number of actual elements does not increase; for example, if you set `length`
161
+ * to 3 when it is currently 2, the array still contains only 2 elements.
162
+ *
163
+ * In the following example the array numbers is iterated through by looking at the `length` property to see
164
+ * how many elements it has. Each value is then doubled.
165
+ *
166
+ * var numbers = [1,2,3,4,5];
167
+ * for (var i = 0; i < numbers.length; i++) {
168
+ * numbers[i] *= 2;
169
+ * }
170
+ * // numbers is now [2,4,6,8,10];
171
+ *
172
+ * The following example shortens the array `statesUS` to a length of 50 if the current `length` is greater
173
+ * than 50.
174
+ *
175
+ * if (statesUS.length > 50) {
176
+ * statesUS.length=50
177
+ * }
178
+ */
179
+
180
+ // Mutator methods. These methods modify the array:
181
+
182
+ /**
183
+ * @method pop
184
+ * The pop method removes the last element from an array and returns that value to the caller.
185
+ *
186
+ * `pop` is intentionally generic; this method can be called or applied to objects resembling
187
+ * arrays. Objects which do not contain a length property reflecting the last in a series of
188
+ * consecutive, zero-based numerical properties may not behave in any meaningful manner.
189
+ *
190
+ * var myFish = ["angel", "clown", "mandarin", "surgeon"];
191
+ * var popped = myFish.pop();
192
+ * alert(popped); // Alerts 'surgeon'
193
+ *
194
+ * @return {Object} The last element in the array
195
+ */
196
+
197
+ /**
198
+ * @method push
199
+ * Adds one or more elements to the end of an array and returns the new length of the array.
200
+ *
201
+ * `push` is intentionally generic. This method can be called or applied to objects resembling
202
+ * arrays. The push method relies on a length property to determine where to start inserting
203
+ * the given values. If the length property cannot be converted into a number, the index used
204
+ * is 0. This includes the possibility of length being nonexistent, in which case length will
205
+ * also be created.
206
+ *
207
+ * The only native, array-like objects are strings, although they are not suitable in
208
+ * applications of this method, as strings are immutable.
209
+ *
210
+ * ### Adding elements to an array
211
+ *
212
+ * The following code creates the sports array containing two elements, then appends two elements
213
+ * to it. After the code executes, sports contains 4 elements: "soccer", "baseball", "football"
214
+ * and "swimming".
215
+ *
216
+ * var sports = ["soccer", "baseball"];
217
+ * sports.push("football", "swimming");
218
+ *
219
+ * @param {Object...} elements The elements to add to the end of the array.
220
+ * @return {Number} The new length property of the object upon which the method was called.
221
+ */
222
+
223
+ /**
224
+ * @method reverse
225
+ * Reverses the order of the elements of an array -- the first becomes the last, and the
226
+ * last becomes the first.
227
+ *
228
+ * The reverse method transposes the elements of the calling array object in place, mutating the
229
+ * array, and returning a reference to the array.
230
+ *
231
+ * The following example creates an array myArray, containing three elements, then reverses the array.
232
+ *
233
+ * var myArray = ["one", "two", "three"];
234
+ * myArray.reverse();
235
+ *
236
+ * This code changes myArray so that:
237
+ *
238
+ * - myArray[0] is "three"
239
+ * - myArray[1] is "two"
240
+ * - myArray[2] is "one"
241
+ *
242
+ * @return {Array} A reference to the array
243
+ */
244
+
245
+ /**
246
+ * @method shift
247
+ * Removes the first element from an array and returns that element.
248
+ *
249
+ * The `shift` method removes the element at the zeroeth index and shifts the values at consecutive
250
+ * indexes down, then returns the removed value.
251
+ *
252
+ * `shift` is intentionally generic; this method can be called or applied to objects resembling
253
+ * arrays. Objects which do not contain a `length` property reflecting the last in a series of
254
+ * consecutive, zero-based numerical properties may not behave in any meaningful manner.
255
+ *
256
+ * The following code displays the `myFish` array before and after removing its first element. It also
257
+ * displays the removed element:
258
+ *
259
+ * // assumes a println function is defined
260
+ * var myFish = ["angel", "clown", "mandarin", "surgeon"];
261
+ * println("myFish before: " + myFish);
262
+ * var shifted = myFish.shift();
263
+ * println("myFish after: " + myFish);
264
+ * println("Removed this element: " + shifted);
265
+ *
266
+ * This example displays the following:
267
+ *
268
+ * myFish before: angel,clown,mandarin,surgeon
269
+ * myFish after: clown,mandarin,surgeon
270
+ * Removed this element: angel
271
+ *
272
+ * @return {Object} The first element of the array prior to shifting.
273
+ */
274
+
275
+ /**
276
+ * @method sort
277
+ * Sorts the elements of an array.
278
+ *
279
+ * If `compareFunction` is not supplied, elements are sorted by converting them to strings and
280
+ * comparing strings in lexicographic ("dictionary" or "telephone book," not numerical) order. For
281
+ * example, "80" comes before "9" in lexicographic order, but in a numeric sort 9 comes before 80.
282
+ *
283
+ * If `compareFunction` is supplied, the array elements are sorted according to the return value of
284
+ * the compare function. If a and b are two elements being compared, then:
285
+ * If `compareFunction(a, b)` is less than 0, sort `a` to a lower index than `b`.
286
+ * If `compareFunction(a, b)` returns 0, leave `a` and `b` unchanged with respect to each other, but
287
+ * sorted with respect to all different elements. Note: the ECMAscript standard does not guarantee
288
+ * this behaviour, and thus not all browsers respect this.
289
+ * If `compareFunction(a, b)` is greater than 0, sort `b` to a lower index than `a`.
290
+ * `compareFunction(a, b)` must always returns the same value when given a specific pair of elements a
291
+ * and b as its two arguments. If inconsistent results are returned then the sort order is undefined
292
+ *
293
+ * So, the compare function has the following form:
294
+ *
295
+ * function compare(a, b)
296
+ * {
297
+ * if (a is less than b by some ordering criterion)
298
+ * return -1;
299
+ * if (a is greater than b by the ordering criterion)
300
+ * return 1;
301
+ * // a must be equal to b
302
+ * return 0;
303
+ * }
304
+ *
305
+ * To compare numbers instead of strings, the compare function can simply subtract `b` from `a`:
306
+ *
307
+ * function compareNumbers(a, b)
308
+ * {
309
+ * return a - b;
310
+ * }
311
+ *
312
+ * The sort() method can be conveniently used with closures:
313
+ *
314
+ * var numbers = [4, 2, 5, 1, 3];
315
+ * numbers.sort(function(a, b) {
316
+ * return a - b;
317
+ * });
318
+ * print(numbers);
319
+ *
320
+ * @param {Function} compareFunction Specifies a function that defines the sort order. If omitted, the
321
+ * array is sorted lexicographically (in dictionary order) according to the string conversion of each
322
+ * element.
323
+ * @return {Array} A reference to the array
324
+ */
325
+
326
+ /**
327
+ * @method splice
328
+ * Adds and/or removes elements from an array.
329
+ *
330
+ * If you specify a different number of elements to insert than the number you're removing, the array
331
+ * will have a different length at the end of the call.
332
+ *
333
+ * // assumes a print function is defined
334
+ * var myFish = ["angel", "clown", "mandarin", "surgeon"];
335
+ * print("myFish: " + myFish);
336
+ *
337
+ * var removed = myFish.splice(2, 0, "drum");
338
+ * print("After adding 1: " + myFish);
339
+ * print("removed is: " + removed);
340
+ *
341
+ * removed = myFish.splice(3, 1);
342
+ * print("After removing 1: " + myFish);
343
+ * print("removed is: " + removed);
344
+ *
345
+ * removed = myFish.splice(2, 1, "trumpet");
346
+ * print("After replacing 1: " + myFish);
347
+ * print("removed is: " + removed);
348
+ *
349
+ * removed = myFish.splice(0, 2, "parrot", "anemone", "blue");
350
+ * print("After replacing 2: " + myFish);
351
+ * print("removed is: " + removed);
352
+ *
353
+ * This script displays:
354
+ *
355
+ * myFish: angel,clown,mandarin,surgeon
356
+ * After adding 1: angel,clown,drum,mandarin,surgeon
357
+ * removed is:
358
+ * After removing 1: angel,clown,drum,surgeon
359
+ * removed is: mandarin
360
+ * After replacing 1: angel,clown,trumpet,surgeon
361
+ * removed is: drum
362
+ * After replacing 2: parrot,anemone,blue,trumpet,surgeon
363
+ * removed is: angel,clown
364
+ *
365
+ * @param {Number} index Index at which to start changing the array. If negative, will begin that
366
+ * many elements from the end.
367
+ * @param {Number} howMany An integer indicating the number of old array elements to remove. If
368
+ * `howMany` is 0, no elements are removed. In this case, you should specify at least one new element.
369
+ * If no `howMany` parameter is specified all elements after index are removed.
370
+ * @param {Object...} elements The elements to add to the array. If you don't specify any
371
+ * elements, `splice` simply removes elements from the array.
372
+ * @return {Array} An array containing the removed elements. If only one element is removed, an array
373
+ * of one element is returned..
374
+ */
375
+
376
+ /**
377
+ * @method unshift
378
+ * Adds one or more elements to the front of an array and returns the new length of the array.
379
+ *
380
+ * The `unshift` method inserts the given values to the beginning of an array-like object.
381
+ *
382
+ * `unshift` is intentionally generic; this method can be called or applied to objects resembling
383
+ * arrays. Objects which do not contain a `length` property reflecting the last in a series of
384
+ * consecutive, zero-based numerical properties may not behave in any meaningful manner.
385
+ *
386
+ * The following code displays the myFish array before and after adding elements to it.
387
+ *
388
+ * // assumes a println function exists
389
+ * myFish = ["angel", "clown"];
390
+ * println("myFish before: " + myFish);
391
+ * unshifted = myFish.unshift("drum", "lion");
392
+ * println("myFish after: " + myFish);
393
+ * println("New length: " + unshifted);
394
+ *
395
+ * This example displays the following:
396
+ *
397
+ * myFish before: ["angel", "clown"]
398
+ * myFish after: ["drum", "lion", "angel", "clown"]
399
+ * New length: 4
400
+ *
401
+ * @param {Object...} elements The elements to add to the front of the array.
402
+ * @return {Number} The array's new length.
403
+ */
404
+
405
+ // Accessor methods. These methods do not modify the array and return some representation of the array.
406
+
407
+ /**
408
+ * @method concat
409
+ * Returns a new array comprised of this array joined with other array(s) and/or value(s).
410
+ *
411
+ * `concat` creates a new array consisting of the elements in the `this` object on which it is called,
412
+ * followed in order by, for each argument, the elements of that argument (if the argument is an
413
+ * array) or the argument itself (if the argument is not an array).
414
+ *
415
+ * `concat` does not alter `this` or any of the arrays provided as arguments but instead returns a
416
+ * "one level deep" copy that contains copies of the same elements combined from the original arrays.
417
+ * Elements of the original arrays are copied into the new array as follows:
418
+ * Object references (and not the actual object): `concat` copies object references into the new
419
+ * array. Both the original and new array refer to the same object. That is, if a referenced object is
420
+ * modified, the changes are visible to both the new and original arrays.
421
+ * Strings and numbers (not {@link String} and {@link Number} objects): `concat` copies the values of
422
+ * strings and numbers into the new array.
423
+ *
424
+ * Any operation on the new array will have no effect on the original arrays, and vice versa.
425
+ *
426
+ * ### Concatenating two arrays
427
+ *
428
+ * The following code concatenates two arrays:
429
+ *
430
+ * var alpha = ["a", "b", "c"];
431
+ * var numeric = [1, 2, 3];
432
+ *
433
+ * // creates array ["a", "b", "c", 1, 2, 3]; alpha and numeric are unchanged
434
+ * var alphaNumeric = alpha.concat(numeric);
435
+ *
436
+ * ### Concatenating three arrays
437
+ *
438
+ * The following code concatenates three arrays:
439
+ *
440
+ * var num1 = [1, 2, 3];
441
+ * var num2 = [4, 5, 6];
442
+ * var num3 = [7, 8, 9];
443
+ *
444
+ * // creates array [1, 2, 3, 4, 5, 6, 7, 8, 9]; num1, num2, num3 are unchanged
445
+ * var nums = num1.concat(num2, num3);
446
+ *
447
+ * ### Concatenating values to an array
448
+ *
449
+ * The following code concatenates three values to an array:
450
+ *
451
+ * var alpha = ['a', 'b', 'c'];
452
+ *
453
+ * // creates array ["a", "b", "c", 1, 2, 3], leaving alpha unchanged
454
+ * var alphaNumeric = alpha.concat(1, [2, 3]);
455
+ *
456
+ * @param {Object...} values Arrays and/or values to concatenate to the resulting array.
457
+ * @return {Array} New array.
458
+ */
459
+
460
+ /**
461
+ * @method join
462
+ * Joins all elements of an array into a string.
463
+ *
464
+ * The string conversions of all array elements are joined into one string.
465
+ *
466
+ * The following example creates an array, `a`, with three elements, then joins the array three times:
467
+ * using the default separator, then a comma and a space, and then a plus.
468
+ *
469
+ * var a = new Array("Wind","Rain","Fire");
470
+ * var myVar1 = a.join(); // assigns "Wind,Rain,Fire" to myVar1
471
+ * var myVar2 = a.join(", "); // assigns "Wind, Rain, Fire" to myVar2
472
+ * var myVar3 = a.join(" + "); // assigns "Wind + Rain + Fire" to myVar3
473
+ *
474
+ * @param {String} separator Specifies a string to separate each element of the array. The separator
475
+ * is converted to a string if necessary. If omitted, the array elements are separated with a comma.
476
+ * @return {String} A string of the array elements.
477
+ */
478
+
479
+ /**
480
+ * @method slice
481
+ * Extracts a section of an array and returns a new array.
482
+ *
483
+ * `slice` does not alter the original array, but returns a new "one level deep" copy that contains
484
+ * copies of the elements sliced from the original array. Elements of the original array are copied
485
+ * into the new array as follows:
486
+ * * For object references (and not the actual object), `slice` copies object references into the
487
+ * new array. Both the original and new array refer to the same object. If a referenced object
488
+ * changes, the changes are visible to both the new and original arrays.
489
+ * * For strings and numbers (not {@link String} and {@link Number} objects), `slice` copies strings
490
+ * and numbers into the new array. Changes to the string or number in one array does not affect the
491
+ * other array.
492
+ *
493
+ * If a new element is added to either array, the other array is not affected.
494
+ *
495
+ * ### Using slice
496
+ *
497
+ * In the following example, `slice` creates a new array, `newCar`, from `myCar`. Both include a
498
+ * reference to the object `myHonda`. When the color of `myHonda` is changed to purple, both arrays
499
+ * reflect the change.
500
+ *
501
+ * // Using slice, create newCar from myCar.
502
+ * var myHonda = { color: "red", wheels: 4, engine: { cylinders: 4, size: 2.2 } };
503
+ * var myCar = [myHonda, 2, "cherry condition", "purchased 1997"];
504
+ * var newCar = myCar.slice(0, 2);
505
+ *
506
+ * // Print the values of myCar, newCar, and the color of myHonda
507
+ * // referenced from both arrays.
508
+ * print("myCar = " + myCar.toSource());
509
+ * print("newCar = " + newCar.toSource());
510
+ * print("myCar[0].color = " + myCar[0].color);
511
+ * print("newCar[0].color = " + newCar[0].color);
512
+ *
513
+ * // Change the color of myHonda.
514
+ * myHonda.color = "purple";
515
+ * print("The new color of my Honda is " + myHonda.color);
516
+ *
517
+ * // Print the color of myHonda referenced from both arrays.
518
+ * print("myCar[0].color = " + myCar[0].color);
519
+ * print("newCar[0].color = " + newCar[0].color);
520
+ *
521
+ * This script writes:
522
+ *
523
+ * myCar = [{color:"red", wheels:4, engine:{cylinders:4, size:2.2}}, 2, "cherry condition",
524
+ * "purchased 1997"]
525
+ * newCar = [{color:"red", wheels:4, engine:{cylinders:4, size:2.2}}, 2]
526
+ * myCar[0].color = red
527
+ * newCar[0].color = red
528
+ * The new color of my Honda is purple
529
+ * myCar[0].color = purple
530
+ * newCar[0].color = purple
531
+ *
532
+ * @param {Number} begin Zero-based index at which to begin extraction.
533
+ * As a negative index, `start` indicates an offset from the end of the sequence. `slice(-2)` extracts
534
+ * the second-to-last element and the last element in the sequence
535
+ * @param {Number} end Zero-based index at which to end extraction. `slice` extracts up to but not
536
+ * including `end`.
537
+ * `slice(1,4)` extracts the second element through the fourth element (elements indexed 1, 2, and 3).
538
+ * As a negative index, end indicates an offset from the end of the sequence. `slice(2,-1)` extracts
539
+ * the third element through the second-to-last element in the sequence.
540
+ * If `end` is omitted, `slice` extracts to the end of the sequence.
541
+ * @return {Array} Array from the new start position up to (but not including) the specified end position.
542
+ */
543
+
544
+ /**
545
+ * @method toString
546
+ * Returns a string representing the array and its elements. Overrides the `Object.prototype.toString`
547
+ * method.
548
+ *
549
+ * The {@link Array} object overrides the `toString` method of {@link Object}. For Array objects, the
550
+ * `toString` method joins the array and returns one string containing each array element separated by
551
+ * commas. For example, the following code creates an array and uses `toString` to convert the array
552
+ * to a string.
553
+ *
554
+ * var monthNames = new Array("Jan","Feb","Mar","Apr");
555
+ * myVar = monthNames.toString(); // assigns "Jan,Feb,Mar,Apr" to myVar
556
+ *
557
+ * JavaScript calls the `toString` method automatically when an array is to be represented as a text
558
+ * value or when an array is referred to in a string concatenation.
559
+ *
560
+ * @return {String} The array as a string.
561
+ */
562
+
563
+ // ECMAScript 5 methods
564
+
565
+ /**
566
+ * @method isArray
567
+ * @static
568
+ * Returns true if an object is an array, false if it is not.
569
+ *
570
+ * // all following calls return true
571
+ * Array.isArray([]);
572
+ * Array.isArray([1]);
573
+ * Array.isArray( new Array() );
574
+ * Array.isArray( Array.prototype ); // Little known fact: Array.prototype itself is an array.
575
+ *
576
+ * // all following calls return false
577
+ * Array.isArray();
578
+ * Array.isArray({});
579
+ * Array.isArray(null);
580
+ * Array.isArray(undefined);
581
+ * Array.isArray(17);
582
+ * Array.isArray("Array");
583
+ * Array.isArray(true);
584
+ * Array.isArray(false);
585
+ * Array.isArray({ __proto__ : Array.prototype });
586
+ *
587
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
588
+ *
589
+ * @param {Mixed} obj The object to be checked.
590
+ * @return {Boolean} True when Array.
591
+ */
592
+
593
+ /**
594
+ * @method indexOf
595
+ * Returns the first index at which a given element can be found in the array, or -1 if it is not present.
596
+ *
597
+ * `indexOf` compares `searchElement` to elements of the Array using strict equality (the same method used
598
+ * by the `===`, or triple-equals, operator).
599
+ *
600
+ * var array = [2, 5, 9];
601
+ * var index = array.indexOf(2);
602
+ * // index is 0
603
+ * index = array.indexOf(7);
604
+ * // index is -1
605
+ *
606
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
607
+ *
608
+ * @param {Mixed} searchElement Element to locate in the array.
609
+ * @param {Number} [fromIndex] The index at which to begin the search. Defaults to 0, i.e. the whole array
610
+ * will be searched. If the index is greater than or equal to the length of the array, -1 is returned, i.e.
611
+ * the array will not be searched. If negative, it is taken as the offset from the end of the array. Note
612
+ * that even when the index is negative, the array is still searched from front to back. If the calculated
613
+ * index is less than 0, the whole array will be searched.
614
+ * @return {Number} The index of element found or -1.
615
+ */
616
+
617
+ /**
618
+ * @method lastIndexOf
619
+ * Returns the last index at which a given element can be found in the array, or -1 if it is not present.
620
+ * The array is searched backwards, starting at `fromIndex`.
621
+ *
622
+ * `lastIndexOf` compares `searchElement` to elements of the Array using strict equality (the same method
623
+ * used by the `===`, or triple-equals, operator).
624
+ *
625
+ * var array = [2, 5, 9, 2];
626
+ * var index = array.lastIndexOf(2);
627
+ * // index is 3
628
+ * index = array.lastIndexOf(7);
629
+ * // index is -1
630
+ * index = array.lastIndexOf(2, 3);
631
+ * // index is 3
632
+ * index = array.lastIndexOf(2, 2);
633
+ * // index is 0
634
+ * index = array.lastIndexOf(2, -2);
635
+ * // index is 0
636
+ * index = array.lastIndexOf(2, -1);
637
+ * // index is 3
638
+ *
639
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
640
+ *
641
+ * @param {Mixed} searchElement Element to locate in the array.
642
+ * @param {Number} [fromIndex] The index at which to start searching backwards. Defaults to the array's
643
+ * length, i.e. the whole array will be searched. If the index is greater than or equal to the length of
644
+ * the array, the whole array will be searched. If negative, it is taken as the offset from the end of the
645
+ * array. Note that even when the index is negative, the array is still searched from back to front. If
646
+ * the calculated index is less than 0, -1 is returned, i.e. the array will not be searched.
647
+ * @return {Number} The index of element found or -1.
648
+ */
649
+
650
+ /**
651
+ * @method forEach
652
+ * Executes a provided function once per array element.
653
+ *
654
+ * `forEach` executes the provided function (`callback`) once for each element present in the array. `callback`
655
+ * is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which
656
+ * have been deleted or which have never been assigned values.
657
+ *
658
+ * If a `thisArg` parameter is provided to `forEach`, it will be used as the `this` value for each `callback`
659
+ * invocation as if `callback.call(thisArg, element, index, array)` was called. If `thisArg` is `undefined` or
660
+ * `null`, the `this` value within the function depends on whether the function is in strict mode or not
661
+ * (passed value if in strict mode, global object if in non-strict mode).
662
+ *
663
+ * The `range` of elements processed by `forEach` is set before the first invocation of `callback`. Elements
664
+ * which are appended to the array after the call to `forEach` begins will not be visited by `callback`. If
665
+ * existing elements of the array are changed, or deleted, their value as passed to callback will be the
666
+ * value at the time `forEach` visits them; elements that are deleted are not visited.
667
+ *
668
+ * The following code logs a line for each element in an array:
669
+ *
670
+ * function logArrayElements(element, index, array) {
671
+ * console.log("a[" + index + "] = " + element);
672
+ * }
673
+ * [2, 5, 9].forEach(logArrayElements);
674
+ * // logs:
675
+ * // a[0] = 2
676
+ * // a[1] = 5
677
+ * // a[2] = 9
678
+ *
679
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
680
+ *
681
+ * @param {Function} callback Function to execute for each element.
682
+ * @param {Mixed} callback.value The element value.
683
+ * @param {Number} callback.index The element index.
684
+ * @param {Array} callback.array The array being traversed.
685
+ * @param {Object} [thisArg] Object to use as `this` when executing `callback`.
686
+ */
687
+
688
+ /**
689
+ * @method every
690
+ * Tests whether all elements in the array pass the test implemented
691
+ * by the provided function.
692
+ *
693
+ * `every` executes the provided `callback` function once for each element
694
+ * present in the array until it finds one where `callback` returns a
695
+ * false value. If such an element is found, the `every` method
696
+ * immediately returns false. Otherwise, if `callback` returned a true
697
+ * value for all elements, `every` will return true. `callback` is invoked
698
+ * only for indexes of the array which have assigned values; it is not
699
+ * invoked for indexes which have been deleted or which have never
700
+ * been assigned values.
701
+ *
702
+ * If a `thisObject` parameter is provided to `every`, it will be used as
703
+ * the `this` for each invocation of the callback. If it is not
704
+ * provided, or is `null`, the global object associated with callback is
705
+ * used instead.
706
+ *
707
+ * `every` does not mutate the array on which it is called.
708
+ *
709
+ * The range of elements processed by `every` is set before the first
710
+ * invocation of callback. Elements which are appended to the array
711
+ * after the call to every begins will not be visited by `callback`. If
712
+ * existing elements of the array are changed, their value as passed
713
+ * to `callback` will be the value at the time `every` visits them;
714
+ * elements that are deleted are not visited.
715
+ *
716
+ * `every` acts like the "for all" quantifier in mathematics. In
717
+ * particular, for an empty array, it returns true. (It is vacuously
718
+ * true that all elements of the empty set satisfy any given
719
+ * condition.)
720
+ *
721
+ * The following example tests whether all elements in the array are
722
+ * bigger than 10.
723
+ *
724
+ * function isBigEnough(element, index, array) {
725
+ * return (element >= 10);
726
+ * }
727
+ * var passed = [12, 5, 8, 130, 44].every(isBigEnough);
728
+ * // passed is false
729
+ * passed = [12, 54, 18, 130, 44].every(isBigEnough);
730
+ * // passed is true
731
+ *
732
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
733
+ *
734
+ * @param {Function} callback Function to test for each element.
735
+ * @param {Mixed} callback.value The element value.
736
+ * @param {Number} callback.index The element index.
737
+ * @param {Array} callback.array The array being traversed.
738
+ * @param {Boolean} callback.return Should return true when element passes the test.
739
+ * @param {Object} [thisObject] Object to use as `this` when executing `callback`.
740
+ * @return {Boolean} True when all elements pass the test.
741
+ */
742
+
743
+ /**
744
+ * @method some
745
+ * Tests whether some element in the array passes the test implemented
746
+ * by the provided function.
747
+ *
748
+ * `some` executes the `callback` function once for each element
749
+ * present in the array until it finds one where `callback` returns a
750
+ * true value. If such an element is found, some immediately returns
751
+ * true. Otherwise, some returns false. `callback` is invoked only for
752
+ * indexes of the array which have assigned values; it is not invoked
753
+ * for indexes which have been deleted or which have never been
754
+ * assigned values.
755
+ *
756
+ * If a `thisObject` parameter is provided to some, it will be used as
757
+ * the `this` for each invocation of the `callback`. If it is not
758
+ * provided, or is `null`, the global object associated with callback is
759
+ * used instead.
760
+ *
761
+ * `some` does not mutate the array on which it is called.
762
+ *
763
+ * The range of elements processed by `some` is set before the first
764
+ * invocation of callback. Elements that are appended to the array
765
+ * after the call to some begins will not be visited by `callback`. If
766
+ * an existing, unvisited element of the array is changed by `callback`,
767
+ * its value passed to the visiting callback will be the value at the
768
+ * time that `some` visits that element's index; elements that are
769
+ * deleted are not visited.
770
+ *
771
+ * The following example tests whether some element in the array is
772
+ * bigger than 10.
773
+ *
774
+ * function isBigEnough(element, index, array) {
775
+ * return (element >= 10);
776
+ * }
777
+ * var passed = [2, 5, 8, 1, 4].some(isBigEnough);
778
+ * // passed is false
779
+ * passed = [12, 5, 8, 1, 4].some(isBigEnough);
780
+ * // passed is true
781
+ *
782
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
783
+ *
784
+ * @param {Function} callback Function to test for each element.
785
+ * @param {Mixed} callback.value The element value.
786
+ * @param {Number} callback.index The element index.
787
+ * @param {Array} callback.array The array being traversed.
788
+ * @param {Boolean} callback.return Should return true when element passes the test.
789
+ * @param {Object} [thisObject] Object to use as `this` when executing `callback`.
790
+ * @return {Boolean} True when at least one element passes the test.
791
+ */
792
+
793
+ /**
794
+ * @method filter
795
+ * Creates a new array with all elements that pass the test
796
+ * implemented by the provided function.
797
+ *
798
+ * `filter` calls a provided `callback` function once for each element in
799
+ * an array, and constructs a new array of all the values for which
800
+ * `callback` returns a true value. `callback` is invoked only for indexes
801
+ * of the array which have assigned values; it is not invoked for
802
+ * indexes which have been deleted or which have never been assigned
803
+ * values. Array elements which do not pass the `callback` test are
804
+ * simply skipped, and are not included in the new array.
805
+ *
806
+ * If a `thisObject` parameter is provided to `filter`, it will be
807
+ * used as the `this` for each invocation of the `callback`. If it is not
808
+ * provided, or is `null`, the global object associated with callback is
809
+ * used instead.
810
+ *
811
+ * `filter` does not mutate the array on which it is called.
812
+ *
813
+ * The range of elements processed by `filter` is set before the first
814
+ * invocation of `callback`. Elements which are appended to the array
815
+ * after the call to `filter` begins will not be visited by `callback`. If
816
+ * existing elements of the array are changed, or deleted, their value
817
+ * as passed to `callback` will be the value at the time `filter` visits
818
+ * them; elements that are deleted are not visited.
819
+ *
820
+ * The following example uses filter to create a filtered array that
821
+ * has all elements with values less than 10 removed.
822
+ *
823
+ * function isBigEnough(element, index, array) {
824
+ * return (element >= 10);
825
+ * }
826
+ * var filtered = [12, 5, 8, 130, 44].filter(isBigEnough);
827
+ * // filtered is [12, 130, 44]
828
+ *
829
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
830
+ *
831
+ * @param {Function} callback Function to test for each element.
832
+ * @param {Mixed} callback.value The element value.
833
+ * @param {Number} callback.index The element index.
834
+ * @param {Array} callback.array The array being traversed.
835
+ * @param {Boolean} callback.return Should return true when element passes the test.
836
+ * @param {Object} [thisObject] Object to use as `this` when executing `callback`.
837
+ * @return {Array} Array of elements that passed the test.
838
+ */
839
+
840
+ /**
841
+ * @method map
842
+ * Creates a new array with the results of calling a provided function
843
+ * on every element in this array.
844
+ *
845
+ * `map` calls a provided `callback` function once for each element in
846
+ * an array, in order, and constructs a new array from the
847
+ * results. `callback` is invoked only for indexes of the array which
848
+ * have assigned values; it is not invoked for indexes which have been
849
+ * deleted or which have never been assigned values.
850
+ *
851
+ * If a `thisArg` parameter is provided to map, it will be used as the
852
+ * `this` for each invocation of the `callback`. If it is not provided, or
853
+ * is `null`, the global object associated with callback is used
854
+ * instead.
855
+ *
856
+ * `map` does not mutate the array on which it is called.
857
+ *
858
+ * The range of elements processed by `map` is set before the first
859
+ * invocation of `callback`. Elements which are appended to the array
860
+ * after the call to `map` begins will not be visited by `callback`. If
861
+ * existing elements of the array are changed, or deleted, their value
862
+ * as passed to `callback` will be the value at the time `map` visits
863
+ * them; elements that are deleted are not visited.
864
+ *
865
+ * The following code creates an array of "plural" forms of nouns from
866
+ * an array of their singular forms.
867
+ *
868
+ * function fuzzyPlural(single) {
869
+ * var result = single.replace(/o/g, 'e');
870
+ * if( single === 'kangaroo'){
871
+ * result += 'se';
872
+ * }
873
+ * return result;
874
+ * }
875
+ *
876
+ * var words = ["foot", "goose", "moose", "kangaroo"];
877
+ * console.log(words.map(fuzzyPlural));
878
+ *
879
+ * // ["feet", "geese", "meese", "kangareese"]
880
+ *
881
+ * The following code takes an array of numbers and creates a new
882
+ * array containing the square roots of the numbers in the first
883
+ * array.
884
+ *
885
+ * var numbers = [1, 4, 9];
886
+ * var roots = numbers.map(Math.sqrt);
887
+ * // roots is now [1, 2, 3], numbers is still [1, 4, 9]
888
+ *
889
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
890
+ *
891
+ * @param {Function} callback Function that produces an element of the new Array
892
+ * from an element of the current one.
893
+ * @param {Mixed} callback.value The element value.
894
+ * @param {Number} callback.index The element index.
895
+ * @param {Array} callback.array The array being traversed.
896
+ * @param {Mixed} callback.return The resulting element at the specified index.
897
+ * @param {Object} [thisObject] Object to use as `this` when executing `callback`.
898
+ * @return {Array} Array of the return values of `callback` function.
899
+ */
900
+
901
+ /**
902
+ * @method reduce
903
+ * Applies a function against an accumulator and each value of the
904
+ * array (from left-to-right) as to reduce it to a single value.
905
+ *
906
+ * `reduce` executes the `callback` function once for each element
907
+ * present in the array, excluding holes in the array.
908
+ *
909
+ * The first time the `callback` is called, `previousValue` and
910
+ * `currentValue` can be one of two values. If `initialValue` is
911
+ * provided in the call to `reduce`, then `previousValue` will be equal to
912
+ * `initialValue` and `currentValue` will be equal to the first value in
913
+ * the array. If no `initialValue` was provided, then `previousValue` will
914
+ * be equal to the first value in the array and `currentValue` will be
915
+ * equal to the second.
916
+ *
917
+ * Suppose the following use of reduce occurred:
918
+ *
919
+ * [0,1,2,3,4].reduce(function(previousValue, currentValue, index, array){
920
+ * return previousValue + currentValue;
921
+ * });
922
+ *
923
+ * The callback would be invoked four times, with the arguments and
924
+ * return values in each call being as follows:
925
+ *
926
+ * | | previousValue | currentValue | index | array | return value
927
+ * |:------------|:--------------|:-------------|:------|:------------|:------------
928
+ * | first call | 0 | 1 | 1 | [0,1,2,3,4] | 1
929
+ * | second call | 1 | 2 | 2 | [0,1,2,3,4] | 3
930
+ * | third call | 3 | 3 | 3 | [0,1,2,3,4] | 6
931
+ * | fourth call | 6 | 4 | 4 | [0,1,2,3,4] | 10
932
+ *
933
+ * The value returned by `reduce` would be that of the last callback
934
+ * invocation (10).
935
+ *
936
+ * If you were to provide an initial value as the second argument to
937
+ * reduce, the result would look like this:
938
+ *
939
+ * [0,1,2,3,4].reduce(function(previousValue, currentValue, index, array){
940
+ * return previousValue + currentValue;
941
+ * }, 10);
942
+ *
943
+ * | | previousValue | currentValue | index | array | return value
944
+ * |:------------|:--------------|:-------------|:------|:------------|:------------
945
+ * | first call | 10 | 0 | 0 | [0,1,2,3,4] | 10
946
+ * | second call | 10 | 1 | 1 | [0,1,2,3,4] | 11
947
+ * | third call | 11 | 2 | 2 | [0,1,2,3,4] | 13
948
+ * | fourth call | 13 | 3 | 3 | [0,1,2,3,4] | 16
949
+ * | fifth call | 16 | 4 | 4 | [0,1,2,3,4] | 20
950
+ *
951
+ * The value returned by `reduce` this time would be, of course, 20.
952
+ *
953
+ * Example: Sum up all values within an array:
954
+ *
955
+ * var total = [0, 1, 2, 3].reduce(function(a, b) {
956
+ * return a + b;
957
+ * });
958
+ * // total == 6
959
+ *
960
+ * Example: Flatten an array of arrays:
961
+ *
962
+ * var flattened = [[0, 1], [2, 3], [4, 5]].reduce(function(a, b) {
963
+ * return a.concat(b);
964
+ * });
965
+ * // flattened is [0, 1, 2, 3, 4, 5]
966
+ *
967
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
968
+ *
969
+ * @param {Function} callback Function to execute on each value in the array.
970
+ * @param {Mixed} callback.previousValue The value previously returned in the last
971
+ * invocation of the `callback`, or `initialValue`, if supplied.
972
+ * @param {Mixed} callback.currentValue The current element being processed in the array.
973
+ * @param {Number} callback.index The index of the current element being processed in the array.
974
+ * @param {Array} callback.array The array `reduce` was called upon.
975
+ * @param {Mixed} [initialValue] Object to use as the first argument to the first call
976
+ * of the `callback`.
977
+ * @return {Mixed} The value returned by final invocation of the `callback`.
978
+ */
979
+
980
+ /**
981
+ * @method reduceRight
982
+ * Applies a function simultaneously against two values of the array
983
+ * (from right-to-left) as to reduce it to a single value.
984
+ *
985
+ * `reduceRight` executes the `callback` function once for each
986
+ * element present in the array, excluding holes in the array.
987
+ *
988
+ * The first time the `callback` is called, `previousValue` and
989
+ * `currentValue` can be one of two values. If `initialValue` is
990
+ * provided in the call to `reduceRight`, then `previousValue` will be equal to
991
+ * `initialValue` and `currentValue` will be equal to the last value in
992
+ * the array. If no `initialValue` was provided, then `previousValue` will
993
+ * be equal to the last value in the array and `currentValue` will be
994
+ * equal to the second-to-last value.
995
+ *
996
+ * Some example run-throughs of the function would look like this:
997
+ *
998
+ * [0, 1, 2, 3, 4].reduceRight(function(previousValue, currentValue, index, array) {
999
+ * return previousValue + currentValue;
1000
+ * });
1001
+ *
1002
+ * // First call
1003
+ * previousValue = 4, currentValue = 3, index = 3
1004
+ *
1005
+ * // Second call
1006
+ * previousValue = 7, currentValue = 2, index = 2
1007
+ *
1008
+ * // Third call
1009
+ * previousValue = 9, currentValue = 1, index = 1
1010
+ *
1011
+ * // Fourth call
1012
+ * previousValue = 10, currentValue = 0, index = 0
1013
+ *
1014
+ * // array is always the object [0,1,2,3,4] upon which reduceRight was called
1015
+ *
1016
+ * // Return Value: 10
1017
+ *
1018
+ * And if you were to provide an initialValue, the result would look like this:
1019
+ *
1020
+ * [0, 1, 2, 3, 4].reduceRight(function(previousValue, currentValue, index, array) {
1021
+ * return previousValue + currentValue;
1022
+ * }, 10);
1023
+ *
1024
+ * // First call
1025
+ * previousValue = 10, currentValue = 4, index = 4
1026
+ *
1027
+ * // Second call
1028
+ * previousValue = 14, currentValue = 3, index = 3
1029
+ *
1030
+ * // Third call
1031
+ * previousValue = 17, currentValue = 2, index = 2
1032
+ *
1033
+ * // Fourth call
1034
+ * previousValue = 19, currentValue = 1, index = 1
1035
+ *
1036
+ * // Fifth call
1037
+ * previousValue = 20, currentValue = 0, index = 0
1038
+ *
1039
+ * // array is always the object [0,1,2,3,4] upon which reduceRight was called
1040
+ *
1041
+ * // Return Value: 20
1042
+ *
1043
+ * **NOTE:** This method is part of the ECMAScript 5 standard.
1044
+ *
1045
+ * @param {Function} callback Function to execute on each value in the array.
1046
+ * @param {Mixed} callback.previousValue The value previously returned in the last
1047
+ * invocation of the `callback`, or `initialValue`, if supplied.
1048
+ * @param {Mixed} callback.currentValue The current element being processed in the array.
1049
+ * @param {Number} callback.index The index of the current element being processed in the array.
1050
+ * @param {Array} callback.array The array `reduceRight` was called upon.
1051
+ * @param {Mixed} [initialValue] Object to use as the first argument to the first call
1052
+ * of the `callback`.
1053
+ * @return {Mixed} The value returned by final invocation of the `callback`.
1054
+ */