sproutcore 1.5.0-java → 1.6.0.beta.2-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (301) hide show
  1. data/.mailmap +32 -0
  2. data/CHANGELOG +15 -0
  3. data/Rakefile +18 -0
  4. data/VERSION.yml +2 -2
  5. data/bin/sc-build +0 -5
  6. data/bin/sc-build-number +0 -5
  7. data/bin/sc-docs +0 -5
  8. data/bin/sc-gen +0 -5
  9. data/bin/sc-init +0 -5
  10. data/bin/sc-manifest +0 -5
  11. data/bin/sc-server +0 -5
  12. data/bin/sproutcore +0 -5
  13. data/lib/frameworks/sproutcore/Buildfile +3 -3
  14. data/lib/frameworks/sproutcore/CHANGELOG.md +21 -0
  15. data/lib/frameworks/sproutcore/README.md +77 -7
  16. data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +0 -2
  17. data/lib/frameworks/sproutcore/frameworks/animation/core.js +3 -2
  18. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
  19. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +1 -17
  20. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +1 -1
  21. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +4 -4
  22. data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
  23. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +23 -21
  24. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +1 -1
  25. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +36 -1
  26. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +126 -7
  27. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +3 -3
  28. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +13 -1
  29. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +2 -2
  30. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +16 -16
  31. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
  32. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1 -34
  33. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +29 -23
  34. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -4
  35. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +20 -23
  36. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
  37. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +26 -0
  38. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +115 -1
  39. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +55 -0
  40. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +49 -1
  41. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +19 -1
  42. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +1 -0
  43. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +2 -0
  44. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
  45. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
  46. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +1 -0
  47. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
  48. data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +7 -82
  49. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +12 -5
  50. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
  51. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
  52. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +17 -0
  53. data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
  54. data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
  55. data/lib/frameworks/sproutcore/frameworks/desktop/core.js +2 -2
  56. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +33 -30
  57. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +12 -11
  58. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +7 -7
  59. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +4 -4
  60. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +20 -20
  61. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +5 -5
  62. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +10 -10
  63. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +24 -23
  64. data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +51 -54
  65. data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +3 -3
  66. data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
  67. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +29 -29
  68. data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
  69. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +3 -3
  70. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +6 -6
  71. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
  72. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +5 -5
  73. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +1 -1
  74. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +5 -5
  75. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +7 -7
  76. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +3 -3
  77. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +7 -5
  78. data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +31 -31
  79. data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
  80. data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +35 -29
  81. data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +2 -2
  82. data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +61 -50
  83. data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
  84. data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
  85. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -1
  86. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
  87. data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
  88. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +12 -12
  89. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +6 -6
  90. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +1 -1
  91. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +7 -9
  92. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +13 -13
  93. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +37 -37
  94. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +3 -2
  95. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +2 -2
  96. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +4 -3
  97. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +7 -6
  98. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +3 -3
  99. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +49 -42
  100. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +1 -1
  101. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +6 -6
  102. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +1 -1
  103. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/default_styles.css +0 -0
  104. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/strings.js +0 -0
  105. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/edit_mode.js +0 -0
  106. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/emptiness.js +0 -0
  107. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form.js +0 -0
  108. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form_row.js +0 -0
  109. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form.js +0 -0
  110. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_checkbox_field.js +0 -0
  111. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_field.js +0 -0
  112. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_label.js +0 -0
  113. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_radio_field.js +0 -0
  114. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_row.js +0 -0
  115. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_text_field.js +0 -0
  116. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form.js +13 -14
  117. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form_row.js +0 -0
  118. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +4 -6
  119. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -1
  120. data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +2 -4
  121. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +8 -12
  122. data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +28 -34
  123. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/system/routes.js +31 -47
  124. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/tests/system/routes.js +0 -0
  125. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
  126. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +15 -21
  127. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +8 -0
  128. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +3 -3
  129. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
  130. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +1 -1
  131. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +3 -3
  132. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +3 -3
  133. data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +66 -133
  134. data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +68 -139
  135. data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +11 -11
  136. data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +23 -29
  137. data/lib/frameworks/sproutcore/lib/index.rhtml +5 -2
  138. data/lib/sproutcore.rb +2 -9
  139. data/lib/sproutcore/builders/minify.rb +5 -5
  140. data/lib/sproutcore/helpers/minifier.rb +6 -10
  141. data/lib/sproutcore/models/target.rb +2 -2
  142. data/lib/sproutcore/rack/proxy.rb +8 -7
  143. data/lib/sproutcore/tools.rb +16 -5
  144. data/spec/lib/builders/html_spec.rb +5 -5
  145. data/sproutcore.gemspec +11 -5
  146. data/vendor/chance/lib/chance.rb +4 -2
  147. data/{lib/sproutcore/vendor → vendor}/jsdoc/README.txt +0 -0
  148. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame.js +0 -0
  149. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Chain.js +0 -0
  150. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Dumper.js +0 -0
  151. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Hash.js +0 -0
  152. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Link.js +0 -0
  153. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Namespace.js +0 -0
  154. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Opt.js +0 -0
  155. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Reflection.js +0 -0
  156. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/String.js +0 -0
  157. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Testrun.js +0 -0
  158. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
  159. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
  160. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
  161. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
  162. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
  163. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC.js +0 -0
  164. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
  165. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
  166. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
  167. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
  168. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
  169. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
  170. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
  171. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
  172. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
  173. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
  174. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
  175. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
  176. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
  177. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
  178. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
  179. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/main.js +0 -0
  180. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
  181. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
  182. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/functionCall.js +0 -0
  183. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
  184. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
  185. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
  186. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
  187. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
  188. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/run.js +0 -0
  189. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/TestDoc.js +0 -0
  190. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/runner.js +0 -0
  191. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test.js +0 -0
  192. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/addon.js +0 -0
  193. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/anon_inner.js +0 -0
  194. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments.js +0 -0
  195. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments2.js +0 -0
  196. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows.js +0 -0
  197. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows2.js +0 -0
  198. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/config.js +0 -0
  199. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/constructs.js +0 -0
  200. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding.js +0 -0
  201. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding_other.js +0 -0
  202. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_anon.js +0 -0
  203. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_nested.js +0 -0
  204. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/global.js +0 -0
  205. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/globals.js +0 -0
  206. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/ignore.js +0 -0
  207. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/inner.js +0 -0
  208. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
  209. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/lend.js +0 -0
  210. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof.js +0 -0
  211. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
  212. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/name.js +0 -0
  213. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/namespace_nested.js +0 -0
  214. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/nocode.js +0 -0
  215. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/oblit_anon.js +0 -0
  216. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/overview.js +0 -0
  217. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/param_inline.js +0 -0
  218. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/params_optional.js +0 -0
  219. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype.js +0 -0
  220. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_nested.js +0 -0
  221. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
  222. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
  223. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/public.js +0 -0
  224. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared.js +0 -0
  225. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared2.js +0 -0
  226. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shortcuts.js +0 -0
  227. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/static_this.js +0 -0
  228. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/synonyms.js +0 -0
  229. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/tosource.js +0 -0
  230. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/variable_redefine.js +0 -0
  231. data/{lib/sproutcore/vendor → vendor}/jsdoc/changes.txt +0 -0
  232. data/{lib/sproutcore/vendor → vendor}/jsdoc/conf/sample.conf +0 -0
  233. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build.xml +0 -0
  234. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build_1.4.xml +0 -0
  235. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/classes/js.jar +0 -0
  236. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
  237. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsRun.java +0 -0
  238. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsdebug.jar +0 -0
  239. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsrun.jar +0 -0
  240. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/TestDoc.js +0 -0
  241. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/runner.js +0 -0
  242. data/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
  243. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/addon.js +0 -0
  244. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/anon_inner.js +0 -0
  245. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments.js +0 -0
  246. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments2.js +0 -0
  247. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows.js +0 -0
  248. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows2.js +0 -0
  249. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/config.js +0 -0
  250. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/constructs.js +0 -0
  251. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding.js +0 -0
  252. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding_other.js +0 -0
  253. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_anon.js +0 -0
  254. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_nested.js +0 -0
  255. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/global.js +0 -0
  256. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/globals.js +0 -0
  257. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/ignore.js +0 -0
  258. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/inner.js +0 -0
  259. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/jsdoc_test.js +0 -0
  260. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/lend.js +0 -0
  261. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof.js +0 -0
  262. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof_constructor.js +0 -0
  263. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/name.js +0 -0
  264. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/namespace_nested.js +0 -0
  265. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/nocode.js +0 -0
  266. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/oblit_anon.js +0 -0
  267. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/overview.js +0 -0
  268. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/param_inline.js +0 -0
  269. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/params_optional.js +0 -0
  270. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype.js +0 -0
  271. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_nested.js +0 -0
  272. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit.js +0 -0
  273. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
  274. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/public.js +0 -0
  275. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared.js +0 -0
  276. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared2.js +0 -0
  277. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shortcuts.js +0 -0
  278. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/static_this.js +0 -0
  279. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/synonyms.js +0 -0
  280. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/tosource.js +0 -0
  281. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/variable_redefine.js +0 -0
  282. data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
  283. metadata +169 -178
  284. data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -148
  285. data/lib/sproutcore/vendor/github_gem_lint.rb +0 -22
  286. data/vendor/sproutcore/SCCompiler.jar +0 -0
  287. data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
  288. data/vendor/sproutcore/lib/yuicompressor-2.4.2.jar +0 -0
  289. data/vendor/sproutcore/src/SCCompiler/build.xml +0 -74
  290. data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
  291. data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
  292. data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar +0 -0
  293. data/vendor/sproutcore/src/SCCompiler/manifest.mf +0 -3
  294. data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +0 -894
  295. data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +0 -8
  296. data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
  297. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +0 -10
  298. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +0 -4
  299. data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +0 -90
  300. data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +0 -15
  301. data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +0 -348
@@ -139,7 +139,7 @@ SC.UndoManager = SC.Object.extend(
139
139
  automatically bundled into this one action.
140
140
 
141
141
  When you are finished performing the action, balance this with a call to
142
- endUndoGroup().
142
+ `endUndoGroup()`.
143
143
 
144
144
  @param {String} name
145
145
  */
@@ -49,8 +49,9 @@ SC.HOLD_BEHAVIOR = 'hold';
49
49
 
50
50
  By default, a button uses the SC.Control mixin which will apply CSS
51
51
  classnames when the state of the button changes:
52
- - active when button is active
53
- - sel when button is toggled to a selected state
52
+
53
+ - `active` -- when button is active
54
+ - `sel` -- when button is toggled to a selected state
54
55
 
55
56
  @extends SC.View
56
57
  @extends SC.Control
@@ -95,17 +96,17 @@ SC.ButtonView = SC.View.extend(SC.Control,
95
96
  Used to automatically update the state of the button view for toggle style
96
97
  buttons.
97
98
 
98
- for toggle style buttons, you can set the value and it will be used to
99
+ For toggle style buttons, you can set the value and it will be used to
99
100
  update the isSelected state of the button view. The value will also
100
101
  change as the user selects or deselects. You can control which values
101
- the button will treat as isSelected by setting the toggleOnValue and
102
- toggleOffValue. Alternatively, if you leave these properties set to
103
- YES or NO, the button will do its best to convert a value to an
102
+ the button will treat as `isSelected` by setting the `toggleOnValue` and
103
+ `toggleOffValue`. Alternatively, if you leave these properties set to
104
+ `YES` or `NO`, the button will do its best to convert a value to an
104
105
  appropriate state:
105
106
 
106
- - null, false, 0 -> isSelected = false
107
- - any other single value -> isSelected = true
108
- - array -> if all values are the same state: that state. otherwise MIXED.
107
+ - `null`, `false`, `0` -- `isSelected = false`
108
+ - any other single value -- `isSelected = true`
109
+ - array -- if all values are the same state, that state; otherwise `MIXED`.
109
110
 
110
111
  @type Object
111
112
  @default null
@@ -156,7 +157,9 @@ SC.ButtonView = SC.View.extend(SC.Control,
156
157
  localizeBindingDefault: SC.Binding.bool(),
157
158
 
158
159
  /**
159
- The button title. If localize is YES, then this should be the localization key to display. Otherwise, this will be the actual string displayed in the title. This property is observable and bindable.
160
+ The button title. If localize is `YES`, then this should be the
161
+ localization key to display. Otherwise, this will be the actual string
162
+ displayed in the title. This property is observable and bindable.
160
163
 
161
164
  @type String
162
165
  @default ""
@@ -231,16 +234,16 @@ SC.ButtonView = SC.View.extend(SC.Control,
231
234
 
232
235
  Possible values are:
233
236
 
234
- - *SC.PUSH_BEHAVIOR* Pressing the button will trigger an action tied to the
235
- button. Does not change the value of the button.
236
- - *SC.TOGGLE_BEHAVIOR* Pressing the button will invert the current value of
237
- the button. If the button has a mixed value, it will be set to true.
238
- - *SC.TOGGLE_ON_BEHAVIOR* Pressing the button will set the current state to
239
- true no matter the previous value.
240
- - *SC.TOGGLE_OFF_BEHAVIOR* Pressing the button will set the current state to
241
- false no matter the previous value.
242
- - *SC.HOLD_BEHAVIOR* Pressing the button will cause the action to repeat at a
243
- regular interval specifed by 'holdInterval'
237
+ - `SC.PUSH_BEHAVIOR` -- Pressing the button will trigger an action tied to the
238
+ button. Does not change the value of the button.
239
+ - `SC.TOGGLE_BEHAVIOR` -- Pressing the button will invert the current value of
240
+ the button. If the button has a mixed value, it will be set to true.
241
+ - `SC.TOGGLE_ON_BEHAVIOR` -- Pressing the button will set the current state to
242
+ true no matter the previous value.
243
+ - `SC.TOGGLE_OFF_BEHAVIOR` -- Pressing the button will set the current state to
244
+ false no matter the previous value.
245
+ - `SC.HOLD_BEHAVIOR` -- Pressing the button will cause the action to repeat at a
246
+ regular interval specifed by 'holdInterval'
244
247
 
245
248
  @type String
246
249
  @default SC.PUSH_BEHAVIOR
@@ -248,7 +251,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
248
251
  buttonBehavior: SC.PUSH_BEHAVIOR,
249
252
 
250
253
  /*
251
- If buttonBehavior is SC.HOLD_BEHAVIOR, this specifies, in milliseconds,
254
+ If buttonBehavior is `SC.HOLD_BEHAVIOR`, this specifies, in milliseconds,
252
255
  how often to trigger the action. Ignored for other behaviors.
253
256
 
254
257
  @type Number
@@ -259,7 +262,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
259
262
  /**
260
263
  If YES, then this button will be triggered when you hit return.
261
264
 
262
- This is the same as setting the keyEquivalent to 'return'. This will also
265
+ This is the same as setting the `keyEquivalent` to 'return'. This will also
263
266
  apply the "def" classname to the button.
264
267
 
265
268
  @type Boolean
@@ -354,7 +357,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
354
357
  The padding to add to the measured size of the text to arrive at the measured
355
358
  size for the view.
356
359
 
357
- SC.ButtonView gets this from its render delegate, but if not supplied, defaults
360
+ `SC.ButtonView` gets this from its render delegate, but if not supplied, defaults
358
361
  to 10.
359
362
 
360
363
  @default 10
@@ -465,7 +468,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
465
468
  // a separate observer (see below)
466
469
 
467
470
  /**
468
- The following properties affect how SC.ButtonView is rendered, and will
471
+ The following properties affect how `SC.ButtonView` is rendered, and will
469
472
  cause the view to be rerendered if they change.
470
473
 
471
474
  @type Array
@@ -564,8 +567,9 @@ SC.ButtonView = SC.View.extend(SC.Control,
564
567
 
565
568
  /**
566
569
  This is the standard logic to compute a proposed isSelected state for a
567
- new value. This takes into account the toggleOnValue/toggleOffValue
568
- properties, among other things. It may return YES, NO, or SC.MIXED_STATE.
570
+ new value. This takes into account the `toggleOnValue`/`toggleOffValue`
571
+ properties, among other things. It may return `YES`, `NO`, or
572
+ `SC.MIXED_STATE`.
569
573
 
570
574
  @param {Object} value
571
575
  @returns {Boolean} return state
@@ -609,7 +613,9 @@ SC.ButtonView = SC.View.extend(SC.Control,
609
613
  }.observes('value'),
610
614
 
611
615
  /** @private
612
- Whenever the selected state is changed, make sure the button value is also updated. Note that this may be called because the value has just changed. In that case this should do nothing.
616
+ Whenever the selected state is changed, make sure the button value is
617
+ also updated. Note that this may be called because the value has just
618
+ changed. In that case this should do nothing.
613
619
  */
614
620
  _button_isSelectedDidChange: function() {
615
621
  var newState = this.get('isSelected'),
@@ -629,8 +635,8 @@ SC.ButtonView = SC.View.extend(SC.Control,
629
635
  Used to store the keyboard equivalent.
630
636
 
631
637
  Setting the isDefault property to YES, for example, will cause the
632
- keyEquivalent property to 'return'. This cached value is used to restore
633
- the keyEquivalent property if isDefault is set back to NO.
638
+ `keyEquivalent` property to 'return'. This cached value is used to restore
639
+ the `keyEquivalent` property if isDefault is set back to NO.
634
640
 
635
641
  @type String
636
642
  */
@@ -9,7 +9,7 @@
9
9
 
10
10
  Represents a Checkbox Button.
11
11
 
12
- The view is an SC.ButtonView put into toggle mode and with the 'theme' property
12
+ The view is an `SC.ButtonView` put into toggle mode and with the 'theme' property
13
13
  set to "checkbox".
14
14
 
15
15
  Rendering
@@ -64,7 +64,7 @@ SC.CheckboxView = SC.ButtonView.extend(SC.StaticLayout,
64
64
  needsEllipsis: NO,
65
65
 
66
66
  /**
67
- YES if `isEnabled` is YES, NO otherwise
67
+ `YES` if `isEnabled` is `YES`, `NO` otherwise
68
68
 
69
69
  @type Boolean
70
70
  @default NO
@@ -33,12 +33,12 @@ SC.BENCHMARK_RELOAD = NO;
33
33
 
34
34
  Renders a collection of views from a source array of model objects.
35
35
 
36
- The CollectionView is the root view class for rendering collections of
36
+ The `CollectionView` is the root view class for rendering collections of
37
37
  views based on a source array of objects. It can automatically create the
38
38
  and layout the views, including displaying them in groups. It also
39
39
  handles event input for the entire collection.
40
40
 
41
- To use CollectionView, just create the view and set the 'content' property
41
+ To use `CollectionView`, just create the view and set the 'content' property
42
42
  to an array of objects. (Note that if you setup a binding, it will
43
43
  always transform content to an array.) The view will create instances of
44
44
  exampleView to render the array. You can also bind to the selection
@@ -83,7 +83,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
83
83
  //
84
84
 
85
85
  /**
86
- If YES, uses the experimental fast CollectionView path.
86
+ If `YES`, uses the experimental fast `CollectionView` path.
87
87
 
88
88
  @type Boolean
89
89
  @default NO
@@ -94,12 +94,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
94
94
  An array of content objects
95
95
 
96
96
  This array should contain the content objects you want the collection view
97
- to display. An item view (based on the exampleView view class) will be
97
+ to display. An item view (based on the `exampleView` view class) will be
98
98
  created for each content object, in the order the content objects appear
99
99
  in this array.
100
100
 
101
101
  If you make the collection editable, the collection view will also modify
102
- this array using the observable array methods of SC.Array.
102
+ this array using the observable array methods of `SC.Array`.
103
103
 
104
104
  Usually you will want to bind this property to a controller property
105
105
  that actually contains the array of objects you to display.
@@ -143,12 +143,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
143
143
  }.property('length', 'clippingFrame').cacheable(),
144
144
 
145
145
  /**
146
- Indexes of selected content objects. This SC.SelectionSet is modified
146
+ Indexes of selected content objects. This `SC.SelectionSet` is modified
147
147
  automatically by the collection view when the user changes the selection
148
148
  on the collection.
149
149
 
150
150
  Any item views representing content objects in this set will have their
151
- isSelected property set to YES automatically.
151
+ isSelected property set to `YES` automatically.
152
152
 
153
153
  @type SC.SelectionSet
154
154
  @default null
@@ -158,8 +158,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
158
158
  /**
159
159
  Allow user to select content using the mouse and keyboard.
160
160
 
161
- Set this property to NO to disallow the user from selecting items. If you
162
- have items in your selectedIndexes property, they will still be reflected
161
+ Set this property to `NO` to disallow the user from selecting items. If you
162
+ have items in your `selectedIndexes property, they will still be reflected
163
163
  visually.
164
164
 
165
165
  @type Boolean
@@ -173,10 +173,10 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
173
173
  /**
174
174
  Enable or disable the view.
175
175
 
176
- The collection view will set the isEnabled property of its item views to
177
- reflect the same view of this property. Whenever isEnabled is false,
176
+ The collection view will set the `isEnabled` property of its item views to
177
+ reflect the same view of this property. Whenever ``isEnabled` is false,
178
178
  the collection view will also be not selectable or editable, regardless of
179
- the settings for isEditable & isSelectable.
179
+ the settings for isEditable` & `isSelectable`.
180
180
 
181
181
  @type Boolean
182
182
  @default YES
@@ -189,10 +189,11 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
189
189
  /**
190
190
  Allow user to edit content views.
191
191
 
192
- The collection view will set the isEditable property on its item views to
193
- reflect the same value of this property. Whenever isEditable is false,
192
+ The collection view will set the `isEditable` property on its item views to
193
+ reflect the same value of this property. Whenever `isEditable` is false,
194
194
  the user will not be able to reorder, add, or delete items regardless of
195
- the canReorderContent and canDeleteContent and isDropTarget properties.
195
+ the `canReorderContent` and `canDeleteContent` and `isDropTarget`
196
+ properties.
196
197
 
197
198
  @type Boolean
198
199
  @default YES
@@ -233,8 +234,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
233
234
 
234
235
  /**
235
236
  Allow user to edit the content by double clicking on it or hitting return.
236
- This will only work if isEditable is YES and the item view implements
237
- the beginEditing() method.
237
+ This will only work if isEditable is `YES` and the item view implements
238
+ the `beginEditing()` method.
238
239
 
239
240
  @type Boolean
240
241
  */
@@ -274,8 +275,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
274
275
  object and double clicking will trigger the action method on the
275
276
  collection view.
276
277
 
277
- If you set this property to YES, then clicking on a view will both select
278
- it (if isSelected is true) and trigger the action method.
278
+ If you set this property to `YES`, then clicking on a view will both select
279
+ it (if `isSelected` is true) and trigger the action method.
279
280
 
280
281
  Use this if you are using the collection view as a menu of items.
281
282
 
@@ -310,9 +311,9 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
310
311
  For best results, the view you set here should understand the following
311
312
  properties:
312
313
 
313
- - *content* The content object from the content array your view should display
314
- - *isEnabled* True if the view should appear enabled
315
- - *isSelected* True if the view should appear selected
314
+ - `content` -- The content object from the content array your view should display
315
+ - `isEnabled` -- True if the view should appear enabled
316
+ - `isSelected` -- True if the view should appear selected
316
317
 
317
318
  In general you do not want your child views to actually respond to mouse
318
319
  and keyboard events themselves. It is better to let the collection view
@@ -354,7 +355,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
354
355
 
355
356
  /**
356
357
  If set, this key will be used to get the example view for a given
357
- content object. The groupExampleView property will be ignored.
358
+ content object. The `groupExampleView` property will be ignored.
358
359
 
359
360
  @type String
360
361
  @default null
@@ -367,7 +368,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
367
368
 
368
369
  Set this to the name of the action you want to send down the
369
370
  responder chain when the user double clicks on an item (or single clicks
370
- if actOnSelect is true). You can optionally specify a specific target as
371
+ if `actOnSelect` is true). You can optionally specify a specific target as
371
372
  well using the target property.
372
373
 
373
374
  If you do not specify an action, then the collection view will also try to
@@ -402,12 +403,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
402
403
  /**
403
404
  Property on content items to use for display.
404
405
 
405
- Built-in item views such as the LabelViews and ImageViews will use the
406
+ Built-in item views such as the `LabelView`s and `ImageView`s will use the
406
407
  value of this property as a key on the content object to determine the
407
408
  value they should display.
408
409
 
409
- For example, if you set contentValueKey to 'name' and set the
410
- exampleView to an SC.LabelView, then the label views created by the
410
+ For example, if you set `contentValueKey` to 'name' and set the
411
+ exampleView to an `SC.LabelView`, then the label views created by the
411
412
  colleciton view will display the value of the content.name.
412
413
 
413
414
  If you are writing your own custom item view for a collection, you can
@@ -429,7 +430,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
429
430
  acceptsFirstResponder: NO,
430
431
 
431
432
  /**
432
- Changing this property value by default will cause the CollectionView to
433
+ Changing this property value by default will cause the `CollectionView` to
433
434
  add/remove an 'active' class name to the root element.
434
435
 
435
436
  @type Boolean
@@ -441,7 +442,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
441
442
  /**
442
443
  This property is used to store the calculated height to have
443
444
  a consistent scrolling behavior due to the issues generated by using top
444
- instead of scrollTop. We could look at the min-height set in the view, but
445
+ instead of `scrollTop`. We could look at the min-height set in the view, but
445
446
  to avoid perf hits we simply store it and the scrollView will use it if
446
447
  different than 0.
447
448
 
@@ -453,7 +454,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
453
454
  /**
454
455
  This property is used to store the calculated width to have
455
456
  a consistent scrolling behavior due to the issues generated by using left
456
- instead of scrollLeft. We could look at the min-width set in the view, but
457
+ instead of `scrollLeft`. We could look at the min-width set in the view, but
457
458
  to avoid perf hits we simply store it and the scrollView will use it if
458
459
  different than 0.
459
460
 
@@ -499,7 +500,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
499
500
  This computed property returns an index set selecting all content indexes.
500
501
  It will recompute anytime the length of the collection view changes.
501
502
 
502
- This is used by the default contentIndexesInRect() implementation.
503
+ This is used by the default `contentIndexesInRect()` implementation.
503
504
 
504
505
  @field
505
506
  @type SC.IndexSet
@@ -512,8 +513,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
512
513
  /**
513
514
  Override to return an IndexSet with the indexes that are at least
514
515
  partially visible in the passed rectangle. This method is used by the
515
- default implementation of computeNowShowing() to determine the new
516
- nowShowing range after a scroll.
516
+ default implementation of `computeNowShowing()` to determine the new
517
+ `nowShowing` range after a scroll.
517
518
 
518
519
  Override this method to implement incremental rendering.
519
520
 
@@ -553,11 +554,11 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
553
554
 
554
555
  Called during a drag to show the insertion point. Passed value is the
555
556
  item view that you should display the insertion point before. If the
556
- passed value is null, then you should show the insertion point AFTER that
557
+ passed value is `null`, then you should show the insertion point *AFTER* that
557
558
  last item view returned by the itemViews property.
558
559
 
559
560
  Once this method is called, you are guaranteed to also recieve a call to
560
- hideInsertionPoint() at some point in the future.
561
+ `hideInsertionPoint()` at some point in the future.
561
562
 
562
563
  The default implementation of this method does nothing.
563
564
 
@@ -576,7 +577,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
576
577
  will not be called when the insertion point changes during a drag.
577
578
 
578
579
  You should expect to receive one or more calls to
579
- showInsertionPointBefore() during a drag followed by at least one call to
580
+ `showInsertionPointBefore()` during a drag followed by at least one call to
580
581
  this method at the end. Your method should not raise an error if it is
581
582
  called more than once.
582
583
 
@@ -597,12 +598,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
597
598
  You can assign a delegate object to this property that will be consulted
598
599
  for various decisions regarding drag and drop, selection behavior, and
599
600
  even rendering. The object you place here must implement some or all of
600
- the SC.CollectionViewDelegate mixin.
601
+ the `SC.CollectionViewDelegate` mixin.
601
602
 
602
603
  If you do not supply a delegate but the content object you set implements
603
- the SC.CollectionViewDelegate mixin, then the content will be
604
+ the `SC.CollectionViewDelegate` mixin, then the content will be
604
605
  automatically set as the delegate. Usually you will work with a
605
- CollectionView in this way rather than setting a delegate explicitly.
606
+ `CollectionView` in this way rather than setting a delegate explicitly.
606
607
 
607
608
  @type SC.CollectionViewDelegate
608
609
  @default null
@@ -612,7 +613,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
612
613
  /**
613
614
  The delegate responsible for handling selection changes. This property
614
615
  will be either the delegate, content, or the collection view itself,
615
- whichever implements the SC.CollectionViewDelegate mixin.
616
+ whichever implements the `SC.CollectionViewDelegate` mixin.
616
617
 
617
618
  @field
618
619
  @type Object
@@ -638,8 +639,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
638
639
 
639
640
 
640
641
  /** @private
641
- A cache of the contentGroupIndexes value returned by the delegate. This
642
- is frequently accessed and usually involves creating an SC.IndexSet
642
+ A cache of the `contentGroupIndexes` value returned by the delegate. This
643
+ is frequently accessed and usually involves creating an `SC.IndexSet`
643
644
  object, so it's worthwhile to cache.
644
645
  */
645
646
  _contentGroupIndexes: function() {
@@ -655,7 +656,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
655
656
  Called whenever the content array or an item in the content array or a
656
657
  property on an item in the content array changes. Reloads the appropriate
657
658
  item view when the content array itself changes or calls
658
- contentPropertyDidChange() if a property changes.
659
+ `contentPropertyDidChange()` if a property changes.
659
660
 
660
661
  Normally you will not call this method directly though you may override
661
662
  it if you need to change the way changes to observed ranges are handled.
@@ -677,7 +678,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
677
678
 
678
679
  /**
679
680
  Called whenever a property on an item in the content array changes. This
680
- is only called if you have set observesContentProperties to YES.
681
+ is only called if you have set `observesContentProperties` to `YES`.
681
682
 
682
683
  Override this property if you want to do some custom work whenever a
683
684
  property on a content object changes.
@@ -692,7 +693,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
692
693
  contentPropertyDidChange: function(target, key, indexes) {},
693
694
 
694
695
  /**
695
- Called whenever the view needs to updates it's contentRangeObserver to
696
+ Called whenever the view needs to updates its `contentRangeObserver` to
696
697
  reflect the current nowShowing index set. You will not usually call this
697
698
  method yourself but you may override it if you need to provide some
698
699
  custom range observer behavior.
@@ -703,10 +704,10 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
703
704
  this method should udpate it.
704
705
 
705
706
  When you create a new range observer, the oberver must eventually call
706
- contentRangeDidChange() for the collection view to function properly.
707
+ `contentRangeDidChange()` for the collection view to function properly.
707
708
 
708
709
  If you override this method you probably also need to override
709
- destroyRangeObserver() to cleanup any existing range observer.
710
+ `destroyRangeObserver()` to cleanup any existing range observer.
710
711
 
711
712
  @returns {void}
712
713
  */
@@ -734,7 +735,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
734
735
  provide your own range observer behavior.
735
736
 
736
737
  Note that if you override this method you should probably also override
737
- updateRangeObserver() to create or update a range oberver as needed.
738
+ `updateRangeObserver()` to create or update a range oberver as needed.
738
739
 
739
740
  @returns {void}
740
741
  */
@@ -1562,7 +1563,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
1562
1563
  /**
1563
1564
  Primtive to remove the indexes from the selection.
1564
1565
 
1565
- @param {Number|SC.IndexSet} indexes index or indexes to select
1566
+ @param {Number|SC.IndexSet} indexes index or indexes to deselect
1566
1567
  @returns {SC.CollectionView} receiver
1567
1568
  */
1568
1569
  deselect: function(indexes) {
@@ -1909,7 +1910,17 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
1909
1910
  this.select(sel, NO) ;
1910
1911
  return YES ;
1911
1912
  },
1912
-
1913
+
1914
+ /** @private
1915
+ Remove selection of any selected items.
1916
+ */
1917
+ deselectAll: function() {
1918
+ var content = this.get('content'),
1919
+ sel = content ? SC.IndexSet.create(0, content.get('length')) : null;
1920
+ this.deselect(sel, NO) ;
1921
+ return YES ;
1922
+ },
1923
+
1913
1924
  /** @private
1914
1925
  Handle delete keyboard event.
1915
1926
  */