sproutcore 1.6.0.beta.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2105) hide show
  1. data/.mailmap +32 -0
  2. data/.rspec +1 -0
  3. data/CHANGELOG +170 -0
  4. data/Gemfile +3 -0
  5. data/History.txt +54 -0
  6. data/README.txt +129 -0
  7. data/Rakefile +62 -0
  8. data/Todo.txt +1 -0
  9. data/VERSION.yml +4 -0
  10. data/bin/sc-build +13 -0
  11. data/bin/sc-build-number +13 -0
  12. data/bin/sc-docs +14 -0
  13. data/bin/sc-gen +13 -0
  14. data/bin/sc-init +13 -0
  15. data/bin/sc-manifest +13 -0
  16. data/bin/sc-server +13 -0
  17. data/bin/sproutcore +13 -0
  18. data/lib/Buildfile +152 -0
  19. data/lib/buildtasks/build.rake +119 -0
  20. data/lib/buildtasks/entry.rake +68 -0
  21. data/lib/buildtasks/manifest.rake +893 -0
  22. data/lib/buildtasks/render.rake +21 -0
  23. data/lib/buildtasks/target.rake +66 -0
  24. data/lib/doc_templates/jsdoc/allclasses.tmpl +17 -0
  25. data/lib/doc_templates/jsdoc/allfiles.tmpl +56 -0
  26. data/lib/doc_templates/jsdoc/class.tmpl +487 -0
  27. data/lib/doc_templates/jsdoc/index.tmpl +38 -0
  28. data/lib/doc_templates/jsdoc/publish.js +170 -0
  29. data/lib/doc_templates/jsdoc/static/default.css +162 -0
  30. data/lib/doc_templates/jsdoc/static/header.html +2 -0
  31. data/lib/doc_templates/jsdoc/static/index.html +19 -0
  32. data/lib/doc_templates/jsdoc/symbol.tmpl +35 -0
  33. data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
  34. data/lib/doc_templates/sproutcore/allfiles.tmpl +56 -0
  35. data/lib/doc_templates/sproutcore/class.tmpl +674 -0
  36. data/lib/doc_templates/sproutcore/classes-json.tmpl +55 -0
  37. data/lib/doc_templates/sproutcore/index.tmpl +62 -0
  38. data/lib/doc_templates/sproutcore/publish.js +346 -0
  39. data/lib/doc_templates/sproutcore/static/default.css +258 -0
  40. data/lib/doc_templates/sproutcore/static/header.html +2 -0
  41. data/lib/doc_templates/sproutcore/static/index.html +19 -0
  42. data/lib/doc_templates/sproutcore/symbol.tmpl +35 -0
  43. data/lib/frameworks/sproutcore/Buildfile +104 -0
  44. data/lib/frameworks/sproutcore/CHANGELOG.md +435 -0
  45. data/lib/frameworks/sproutcore/README.md +139 -0
  46. data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
  47. data/lib/frameworks/sproutcore/apps/test_controls/controllers/alert.js +39 -0
  48. data/lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
  49. data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +125 -0
  50. data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +36 -0
  51. data/lib/frameworks/sproutcore/apps/test_controls/controllers/split.js +74 -0
  52. data/lib/frameworks/sproutcore/apps/test_controls/core.js +29 -0
  53. data/lib/frameworks/sproutcore/apps/test_controls/main.js +14 -0
  54. data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +158 -0
  55. data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +53 -0
  56. data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +85 -0
  57. data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
  58. data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
  59. data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +60 -0
  60. data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +151 -0
  61. data/lib/frameworks/sproutcore/apps/test_controls/resources/panels_page.js +62 -0
  62. data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +33 -0
  63. data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +55 -0
  64. data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +77 -0
  65. data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +99 -0
  66. data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +61 -0
  67. data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +54 -0
  68. data/lib/frameworks/sproutcore/apps/test_controls/resources/split_page.js +141 -0
  69. data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
  70. data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +53 -0
  71. data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +65 -0
  72. data/lib/frameworks/sproutcore/apps/test_controls/theme.js +34 -0
  73. data/lib/frameworks/sproutcore/apps/tests/controllers/detail.js +25 -0
  74. data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +29 -0
  75. data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +26 -0
  76. data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +86 -0
  77. data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +33 -0
  78. data/lib/frameworks/sproutcore/apps/tests/core.js +133 -0
  79. data/lib/frameworks/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
  80. data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
  81. data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
  82. data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +26 -0
  83. data/lib/frameworks/sproutcore/apps/tests/main.js +27 -0
  84. data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +26 -0
  85. data/lib/frameworks/sproutcore/apps/tests/states/ready.js +56 -0
  86. data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +41 -0
  87. data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +48 -0
  88. data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +41 -0
  89. data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +44 -0
  90. data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
  91. data/lib/frameworks/sproutcore/apps/tests/states/start.js +39 -0
  92. data/lib/frameworks/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
  93. data/lib/frameworks/sproutcore/apps/tests/tests/controllers/source.js +15 -0
  94. data/lib/frameworks/sproutcore/apps/tests/tests/controllers/target.js +15 -0
  95. data/lib/frameworks/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
  96. data/lib/frameworks/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
  97. data/lib/frameworks/sproutcore/apps/tests/tests/models/target.js +15 -0
  98. data/lib/frameworks/sproutcore/apps/tests/tests/models/test.js +15 -0
  99. data/lib/frameworks/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
  100. data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
  101. data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +55 -0
  102. data/lib/frameworks/sproutcore/apps/welcome/core.js +30 -0
  103. data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
  104. data/lib/frameworks/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
  105. data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +25 -0
  106. data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +67 -0
  107. data/lib/frameworks/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
  108. data/lib/frameworks/sproutcore/apps/welcome/main.js +19 -0
  109. data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
  110. data/lib/frameworks/sproutcore/design/Record State Table.numbers +0 -0
  111. data/lib/frameworks/sproutcore/design/greenhouse-statechart.pdf +0 -0
  112. data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/file_exists.json +1 -0
  113. data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/malformed.json +11 -0
  114. data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +609 -0
  115. data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +550 -0
  116. data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +276 -0
  117. data/lib/frameworks/sproutcore/frameworks/animation/Buildfile +3 -0
  118. data/lib/frameworks/sproutcore/frameworks/animation/LICENSE +25 -0
  119. data/lib/frameworks/sproutcore/frameworks/animation/README.md +79 -0
  120. data/lib/frameworks/sproutcore/frameworks/animation/core.js +1205 -0
  121. data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +152 -0
  122. data/lib/frameworks/sproutcore/frameworks/bootstrap/README +9 -0
  123. data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +7 -0
  124. data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
  125. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
  126. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +225 -0
  127. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +50 -0
  128. data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +187 -0
  129. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +524 -0
  130. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +44 -0
  131. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +342 -0
  132. data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
  133. data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +189 -0
  134. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/function.js +39 -0
  135. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +293 -0
  136. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +57 -0
  137. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/localization.js +5 -0
  138. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/view.js +96 -0
  139. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars.js +73 -0
  140. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/object.js +81 -0
  141. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/run_loop.js +163 -0
  142. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/string.js +60 -0
  143. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +110 -0
  144. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/responder_context.js +268 -0
  145. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/selection_support.js +249 -0
  146. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +63 -0
  147. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +174 -0
  148. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/keyboard.js +74 -0
  149. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/layout.js +95 -0
  150. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/main.js +50 -0
  151. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js +33 -0
  152. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +670 -0
  153. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +43 -0
  154. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/visibility.js +17 -0
  155. data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +40 -0
  156. data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +131 -0
  157. data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/core.css +378 -0
  158. data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/view.css +57 -0
  159. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +33 -0
  160. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/bindable_span.js +164 -0
  161. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/browser.js +36 -0
  162. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/builder.js +202 -0
  163. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/core_query.js +141 -0
  164. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/cursor.js +131 -0
  165. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/datetime.js +0 -0
  166. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +210 -0
  167. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +991 -0
  168. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +289 -0
  169. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/page.js +106 -0
  170. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +419 -0
  171. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/ready.js +103 -0
  172. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1030 -0
  173. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +124 -0
  174. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +2180 -0
  175. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/selection_set.js +693 -0
  176. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +401 -0
  177. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +162 -0
  178. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/theme.js +316 -0
  179. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/timer.js +548 -0
  180. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils/rect.js +104 -0
  181. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +155 -0
  182. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +301 -0
  183. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +206 -0
  184. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +64 -0
  185. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +344 -0
  186. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +136 -0
  187. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +82 -0
  188. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +111 -0
  189. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +193 -0
  190. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +265 -0
  191. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
  192. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +76 -0
  193. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/string.js +78 -0
  194. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +64 -0
  195. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +193 -0
  196. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js +20 -0
  197. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/builder.js +49 -0
  198. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +71 -0
  199. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/locale.js +140 -0
  200. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +40 -0
  201. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +47 -0
  202. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +44 -0
  203. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +124 -0
  204. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +51 -0
  205. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +50 -0
  206. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +28 -0
  207. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +177 -0
  208. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +109 -0
  209. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +55 -0
  210. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +28 -0
  211. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +74 -0
  212. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +46 -0
  213. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +219 -0
  214. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +124 -0
  215. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +68 -0
  216. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +48 -0
  217. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +108 -0
  218. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +288 -0
  219. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +92 -0
  220. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +17 -0
  221. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +98 -0
  222. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +60 -0
  223. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +111 -0
  224. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +256 -0
  225. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/theme.js +78 -0
  226. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +44 -0
  227. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +209 -0
  228. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +77 -0
  229. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +75 -0
  230. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +176 -0
  231. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +24 -0
  232. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +284 -0
  233. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +105 -0
  234. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +49 -0
  235. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +224 -0
  236. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +26 -0
  237. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +148 -0
  238. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +133 -0
  239. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +31 -0
  240. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +206 -0
  241. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +249 -0
  242. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/core.js +160 -0
  243. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +937 -0
  244. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +382 -0
  245. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build.js +85 -0
  246. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +89 -0
  247. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +117 -0
  248. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +248 -0
  249. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +153 -0
  250. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +132 -0
  251. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +97 -0
  252. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +83 -0
  253. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +83 -0
  254. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +50 -0
  255. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/init.js +50 -0
  256. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +217 -0
  257. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +85 -0
  258. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +122 -0
  259. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +28 -0
  260. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +146 -0
  261. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +162 -0
  262. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +180 -0
  263. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +745 -0
  264. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +67 -0
  265. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +203 -0
  266. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +189 -0
  267. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render.js +203 -0
  268. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +163 -0
  269. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +29 -0
  270. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +28 -0
  271. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +45 -0
  272. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +148 -0
  273. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +213 -0
  274. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +64 -0
  275. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +202 -0
  276. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +132 -0
  277. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +244 -0
  278. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +182 -0
  279. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +4 -0
  280. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/cursor.js +48 -0
  281. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +57 -0
  282. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +223 -0
  283. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1116 -0
  284. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout_style.js +624 -0
  285. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +401 -0
  286. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/theming.js +400 -0
  287. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/touch.js +67 -0
  288. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/visibility.js +118 -0
  289. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +1521 -0
  290. data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +20 -0
  291. data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +99 -0
  292. data/lib/frameworks/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
  293. data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
  294. data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
  295. data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +108 -0
  296. data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +48 -0
  297. data/lib/frameworks/sproutcore/frameworks/datastore/core.js +8 -0
  298. data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +176 -0
  299. data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +530 -0
  300. data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
  301. data/lib/frameworks/sproutcore/frameworks/datastore/debug/json.js +71 -0
  302. data/lib/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
  303. data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
  304. data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
  305. data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +105 -0
  306. data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +21 -0
  307. data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +74 -0
  308. data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
  309. data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +152 -0
  310. data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +1441 -0
  311. data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +604 -0
  312. data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +157 -0
  313. data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +277 -0
  314. data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +453 -0
  315. data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +613 -0
  316. data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +1526 -0
  317. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +758 -0
  318. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +2860 -0
  319. data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
  320. data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +122 -0
  321. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
  322. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
  323. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
  324. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
  325. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
  326. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
  327. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +180 -0
  328. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +313 -0
  329. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +363 -0
  330. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
  331. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
  332. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
  333. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
  334. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
  335. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +336 -0
  336. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
  337. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
  338. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
  339. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
  340. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
  341. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
  342. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
  343. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
  344. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
  345. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +173 -0
  346. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +158 -0
  347. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
  348. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
  349. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +102 -0
  350. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
  351. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
  352. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
  353. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
  354. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
  355. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
  356. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
  357. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
  358. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
  359. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
  360. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +117 -0
  361. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
  362. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +224 -0
  363. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
  364. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +47 -0
  365. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +70 -0
  366. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +71 -0
  367. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
  368. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
  369. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
  370. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +230 -0
  371. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
  372. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +137 -0
  373. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +221 -0
  374. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
  375. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +76 -0
  376. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
  377. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
  378. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +110 -0
  379. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
  380. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
  381. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
  382. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +64 -0
  383. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecords.js +100 -0
  384. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
  385. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
  386. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
  387. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +76 -0
  388. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
  389. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +200 -0
  390. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecord.js +55 -0
  391. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +90 -0
  392. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
  393. data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +1103 -0
  394. data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/tests/system/datetime.js +390 -0
  395. data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/resources/strings.js +14 -0
  396. data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +91 -0
  397. data/lib/frameworks/sproutcore/frameworks/debug/core.js +114 -0
  398. data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +259 -0
  399. data/lib/frameworks/sproutcore/frameworks/desktop/core.js +34 -0
  400. data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +42 -0
  401. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
  402. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
  403. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
  404. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
  405. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +73 -0
  406. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
  407. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +916 -0
  408. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
  409. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
  410. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
  411. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
  412. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
  413. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
  414. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
  415. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
  416. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +185 -0
  417. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
  418. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +101 -0
  419. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
  420. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
  421. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
  422. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
  423. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
  424. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +132 -0
  425. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
  426. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +69 -0
  427. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
  428. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
  429. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
  430. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
  431. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
  432. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
  433. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
  434. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +161 -0
  435. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +711 -0
  436. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +25 -0
  437. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +97 -0
  438. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +300 -0
  439. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +138 -0
  440. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +267 -0
  441. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +589 -0
  442. data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +1081 -0
  443. data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +76 -0
  444. data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +96 -0
  445. data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +193 -0
  446. data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +939 -0
  447. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +950 -0
  448. data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +237 -0
  449. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +43 -0
  450. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +79 -0
  451. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +187 -0
  452. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +301 -0
  453. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +112 -0
  454. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +98 -0
  455. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +25 -0
  456. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +59 -0
  457. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +35 -0
  458. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +51 -0
  459. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +29 -0
  460. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +60 -0
  461. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
  462. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +44 -0
  463. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/popup_button.js +21 -0
  464. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +100 -0
  465. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +84 -0
  466. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +116 -0
  467. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +58 -0
  468. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +80 -0
  469. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +83 -0
  470. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
  471. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
  472. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +17 -0
  473. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
  474. data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +1017 -0
  475. data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +42 -0
  476. data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +224 -0
  477. data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +64 -0
  478. data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +106 -0
  479. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
  480. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +320 -0
  481. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +136 -0
  482. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +283 -0
  483. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
  484. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
  485. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +42 -0
  486. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
  487. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +69 -0
  488. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +98 -0
  489. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +92 -0
  490. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
  491. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +220 -0
  492. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
  493. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +46 -0
  494. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/content.js +189 -0
  495. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/displayProperties.js +89 -0
  496. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/keyEquivalents.js +57 -0
  497. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +166 -0
  498. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +236 -0
  499. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +126 -0
  500. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +121 -0
  501. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
  502. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
  503. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
  504. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
  505. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
  506. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
  507. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
  508. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +262 -0
  509. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
  510. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
  511. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
  512. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
  513. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
  514. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
  515. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +188 -0
  516. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
  517. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
  518. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
  519. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +102 -0
  520. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
  521. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
  522. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +52 -0
  523. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
  524. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
  525. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
  526. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
  527. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
  528. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
  529. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
  530. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +131 -0
  531. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +396 -0
  532. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
  533. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
  534. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
  535. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +418 -0
  536. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
  537. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +338 -0
  538. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/integration.js +50 -0
  539. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
  540. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +162 -0
  541. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +118 -0
  542. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +62 -0
  543. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +457 -0
  544. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
  545. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +224 -0
  546. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +163 -0
  547. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +180 -0
  548. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +44 -0
  549. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
  550. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
  551. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
  552. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +59 -0
  553. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +238 -0
  554. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
  555. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
  556. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +92 -0
  557. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +33 -0
  558. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +29 -0
  559. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
  560. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
  561. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
  562. data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +944 -0
  563. data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +120 -0
  564. data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +3186 -0
  565. data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +343 -0
  566. data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +85 -0
  567. data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +243 -0
  568. data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +82 -0
  569. data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +657 -0
  570. data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +995 -0
  571. data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +313 -0
  572. data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +720 -0
  573. data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +702 -0
  574. data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +261 -0
  575. data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +191 -0
  576. data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +303 -0
  577. data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +259 -0
  578. data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +404 -0
  579. data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +211 -0
  580. data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1987 -0
  581. data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +995 -0
  582. data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +193 -0
  583. data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +1088 -0
  584. data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +907 -0
  585. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +400 -0
  586. data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +52 -0
  587. data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +299 -0
  588. data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +61 -0
  589. data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +176 -0
  590. data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +897 -0
  591. data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +58 -0
  592. data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +121 -0
  593. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +148 -0
  594. data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +286 -0
  595. data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +65 -0
  596. data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +138 -0
  597. data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +103 -0
  598. data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +81 -0
  599. data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +285 -0
  600. data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
  601. data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +8 -0
  602. data/lib/frameworks/sproutcore/frameworks/experimental/README.md +23 -0
  603. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/README +18 -0
  604. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/TODO +56 -0
  605. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/beautify.js +1058 -0
  606. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/design.js +20 -0
  607. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/file.js +35 -0
  608. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/files.js +40 -0
  609. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/layout.js +53 -0
  610. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/library.js +194 -0
  611. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/page.js +18 -0
  612. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/property.js +19 -0
  613. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/property_editor.js +17 -0
  614. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/target.js +20 -0
  615. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/targets.js +43 -0
  616. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/view_configs.js +100 -0
  617. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core.js +65 -0
  618. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core_file.js +124 -0
  619. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/data_source.js +250 -0
  620. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/app_page.js +399 -0
  621. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/app-selector.css +107 -0
  622. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/button.css +314 -0
  623. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/dock.css +90 -0
  624. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/general.css +51 -0
  625. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/main-page.css +93 -0
  626. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/menu.css +49 -0
  627. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/modal.css +41 -0
  628. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/picker.css +195 -0
  629. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/search.css +60 -0
  630. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/text-field.css +67 -0
  631. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/dialogs.js +303 -0
  632. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
  633. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
  634. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
  635. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
  636. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
  637. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
  638. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
  639. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
  640. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
  641. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
  642. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
  643. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
  644. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
  645. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
  646. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
  647. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
  648. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
  649. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
  650. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
  651. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
  652. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
  653. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
  654. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
  655. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
  656. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
  657. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
  658. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
  659. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
  660. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
  661. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
  662. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
  663. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
  664. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
  665. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
  666. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
  667. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
  668. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
  669. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
  670. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
  671. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
  672. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
  673. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
  674. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
  675. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
  676. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
  677. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
  678. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
  679. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
  680. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
  681. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
  682. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
  683. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
  684. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
  685. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
  686. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
  687. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
  688. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
  689. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
  690. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
  691. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
  692. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
  693. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
  694. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
  695. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
  696. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
  697. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
  698. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
  699. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
  700. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
  701. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
  702. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
  703. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
  704. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
  705. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
  706. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
  707. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
  708. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
  709. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
  710. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
  711. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
  712. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
  713. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
  714. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
  715. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
  716. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
  717. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
  718. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
  719. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
  720. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
  721. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
  722. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
  723. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
  724. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
  725. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
  726. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
  727. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
  728. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
  729. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
  730. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
  731. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
  732. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
  733. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
  734. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
  735. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/inspectors.js +365 -0
  736. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/loading.rhtml +9 -0
  737. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/main_page.js +95 -0
  738. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/strings.js +93 -0
  739. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/fixtures/file.js +35 -0
  740. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/main.js +28 -0
  741. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/mixins/drop_down.js +97 -0
  742. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/design.js +26 -0
  743. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/dir.js +93 -0
  744. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/file.js +51 -0
  745. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/target.js +82 -0
  746. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/view_config.js +49 -0
  747. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/resources/test_page.js +37 -0
  748. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/inspector.js +152 -0
  749. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/library.js +142 -0
  750. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/main.js +283 -0
  751. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/modals.js +299 -0
  752. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/ready.js +235 -0
  753. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/design.js +15 -0
  754. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/designs.js +15 -0
  755. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/file.js +15 -0
  756. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/files.js +15 -0
  757. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/models/file.js +15 -0
  758. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/models/view_config.js +15 -0
  759. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/list_item.js +16 -0
  760. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/plist_item.js +20 -0
  761. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/theme.js +25 -0
  762. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/anchor.js +277 -0
  763. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/application_list_item.js +19 -0
  764. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/event_blocker.js +32 -0
  765. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/label_designer.js +16 -0
  766. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/list_item.js +42 -0
  767. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/plist_item.js +178 -0
  768. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/simple_button.js +157 -0
  769. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/tear_off_picker.js +56 -0
  770. data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/web.js +44 -0
  771. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/design.js +22 -0
  772. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +349 -0
  773. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/controllers.js +23 -0
  774. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/design.js +43 -0
  775. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +139 -0
  776. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_design.js +172 -0
  777. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +28 -0
  778. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/core.js +28 -0
  779. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_rule.js +22 -0
  780. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style.js +29 -0
  781. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +199 -0
  782. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/button.js +23 -0
  783. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/label.js +18 -0
  784. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +298 -0
  785. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/tab.js +20 -0
  786. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/text_field.js +17 -0
  787. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +1269 -0
  788. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/css/designer.css +96 -0
  789. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/design_page.js +55 -0
  790. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/high_light.css +10 -0
  791. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/controller.png +0 -0
  792. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
  793. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
  794. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
  795. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
  796. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
  797. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/main-bg.png +0 -0
  798. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/page.png +0 -0
  799. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/pane.png +0 -0
  800. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/view.png +0 -0
  801. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/selection_handles.css +58 -0
  802. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js +39 -0
  803. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +29 -0
  804. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +60 -0
  805. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +30 -0
  806. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/button.js +13 -0
  807. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +228 -0
  808. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/coders/page.js +54 -0
  809. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/designers/view_designer.js +47 -0
  810. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +144 -0
  811. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +226 -0
  812. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +66 -0
  813. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +130 -0
  814. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/selection_handles.js +78 -0
  815. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +11 -0
  816. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +215 -0
  817. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +67 -0
  818. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/default_styles.css +5 -0
  819. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/strings.js +15 -0
  820. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/edit_mode.js +48 -0
  821. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/emptiness.js +94 -0
  822. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form.js +21 -0
  823. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form_row.js +20 -0
  824. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form.js +17 -0
  825. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_checkbox_field.js +17 -0
  826. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_field.js +17 -0
  827. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_label.js +17 -0
  828. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_radio_field.js +17 -0
  829. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_row.js +17 -0
  830. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_text_field.js +17 -0
  831. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form.js +285 -0
  832. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form_row.js +187 -0
  833. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +46 -0
  834. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +110 -0
  835. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/many.js +79 -0
  836. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/simple.js +76 -0
  837. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/single.js +67 -0
  838. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_child.js +229 -0
  839. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_thumb.js +236 -0
  840. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split.js +18 -0
  841. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split_divider.js +26 -0
  842. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/children.js +100 -0
  843. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/dividers.js +243 -0
  844. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/methods.js +294 -0
  845. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_child.js +135 -0
  846. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_thumb.js +160 -0
  847. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split.js +929 -0
  848. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split_divider.js +40 -0
  849. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/thumb.js +26 -0
  850. data/lib/frameworks/sproutcore/frameworks/foundation/TESTING +46 -0
  851. data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +133 -0
  852. data/lib/frameworks/sproutcore/frameworks/foundation/core.js +23 -0
  853. data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +201 -0
  854. data/lib/frameworks/sproutcore/frameworks/foundation/delegates/inline_text_field.js +90 -0
  855. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
  856. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
  857. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +67 -0
  858. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
  859. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/checkbox_view.css +5 -0
  860. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
  861. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
  862. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
  863. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
  864. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
  865. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
  866. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
  867. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
  868. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
  869. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
  870. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +47 -0
  871. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/radio_view.css +7 -0
  872. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
  873. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +146 -0
  874. data/lib/frameworks/sproutcore/frameworks/foundation/ext/string.js +89 -0
  875. data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
  876. data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
  877. data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +119 -0
  878. data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +234 -0
  879. data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +157 -0
  880. data/lib/frameworks/sproutcore/frameworks/foundation/license.js +28 -0
  881. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +41 -0
  882. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +355 -0
  883. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +14 -0
  884. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +180 -0
  885. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +113 -0
  886. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_value_support.js +227 -0
  887. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +282 -0
  888. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +153 -0
  889. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +745 -0
  890. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
  891. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +254 -0
  892. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor.js +188 -0
  893. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +195 -0
  894. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inner_frame.js +194 -0
  895. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +75 -0
  896. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +164 -0
  897. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +198 -0
  898. data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +916 -0
  899. data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +110 -0
  900. data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
  901. data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/helpers/sizing.js +174 -0
  902. data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +99 -0
  903. data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +119 -0
  904. data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +386 -0
  905. data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +727 -0
  906. data/lib/frameworks/sproutcore/frameworks/foundation/system/chance.js +65 -0
  907. data/lib/frameworks/sproutcore/frameworks/foundation/system/cookie.js +176 -0
  908. data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +63 -0
  909. data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +91 -0
  910. data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +363 -0
  911. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +429 -0
  912. data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +57 -0
  913. data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +591 -0
  914. data/lib/frameworks/sproutcore/frameworks/foundation/system/string.js +422 -0
  915. data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +153 -0
  916. data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
  917. data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +392 -0
  918. data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/colors.js +87 -0
  919. data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +157 -0
  920. data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/range.js +71 -0
  921. data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +254 -0
  922. data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
  923. data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +17 -0
  924. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
  925. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
  926. data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
  927. data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
  928. data/lib/frameworks/sproutcore/frameworks/foundation/tests/delegates/inline_text_field/inline_text_field.js +150 -0
  929. data/lib/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +118 -0
  930. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +57 -0
  931. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_value_support/content.js +168 -0
  932. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
  933. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +44 -0
  934. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/beginEditing.js +194 -0
  935. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/commitEditing.js +150 -0
  936. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/discardEditing.js +151 -0
  937. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/beginEditing.js +114 -0
  938. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/commitEditing.js +151 -0
  939. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/discardEditing.js +152 -0
  940. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
  941. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +228 -0
  942. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +64 -0
  943. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +149 -0
  944. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
  945. data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
  946. data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
  947. data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
  948. data/lib/frameworks/sproutcore/frameworks/foundation/tests/render_delegates/render_delegate.js +78 -0
  949. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/cookie.js +182 -0
  950. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +65 -0
  951. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
  952. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/string.js +34 -0
  953. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +49 -0
  954. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/user_defaults.js +30 -0
  955. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +241 -0
  956. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/range.js +68 -0
  957. data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/credit_card.js +41 -0
  958. data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +24 -0
  959. data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/not_empty.js +56 -0
  960. data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/number.js +53 -0
  961. data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/password.js +19 -0
  962. data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/validator.js +26 -0
  963. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +18 -0
  964. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +180 -0
  965. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +512 -0
  966. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +173 -0
  967. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
  968. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +110 -0
  969. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +614 -0
  970. data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
  971. data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +79 -0
  972. data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
  973. data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +45 -0
  974. data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +33 -0
  975. data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +99 -0
  976. data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +86 -0
  977. data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +85 -0
  978. data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +328 -0
  979. data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +141 -0
  980. data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +337 -0
  981. data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +382 -0
  982. data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +648 -0
  983. data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +225 -0
  984. data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +1117 -0
  985. data/lib/frameworks/sproutcore/frameworks/handlebars/handlebars.js +1435 -0
  986. data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +390 -0
  987. data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +210 -0
  988. data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +12 -0
  989. data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +7179 -0
  990. data/lib/frameworks/sproutcore/frameworks/jquery/tests/set_class.js +40 -0
  991. data/lib/frameworks/sproutcore/frameworks/media/resources/controls.png +0 -0
  992. data/lib/frameworks/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
  993. data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +124 -0
  994. data/lib/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
  995. data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +741 -0
  996. data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +88 -0
  997. data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +243 -0
  998. data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +63 -0
  999. data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +54 -0
  1000. data/lib/frameworks/sproutcore/frameworks/media/views/video.js +832 -0
  1001. data/lib/frameworks/sproutcore/frameworks/mini/license.js +30 -0
  1002. data/lib/frameworks/sproutcore/frameworks/qunit/README.md +24 -0
  1003. data/lib/frameworks/sproutcore/frameworks/qunit/package.json +21 -0
  1004. data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.css +215 -0
  1005. data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.js +1442 -0
  1006. data/lib/frameworks/sproutcore/frameworks/qunit/test/headless.html +24 -0
  1007. data/lib/frameworks/sproutcore/frameworks/qunit/test/index.html +18 -0
  1008. data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.html +17 -0
  1009. data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.js +150 -0
  1010. data/lib/frameworks/sproutcore/frameworks/qunit/test/same.js +1421 -0
  1011. data/lib/frameworks/sproutcore/frameworks/qunit/test/test.js +314 -0
  1012. data/lib/frameworks/sproutcore/frameworks/routing/system/routes.js +503 -0
  1013. data/lib/frameworks/sproutcore/frameworks/routing/tests/system/routes.js +362 -0
  1014. data/lib/frameworks/sproutcore/frameworks/runtime/README +12 -0
  1015. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +758 -0
  1016. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +391 -0
  1017. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
  1018. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
  1019. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
  1020. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
  1021. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
  1022. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
  1023. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
  1024. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
  1025. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
  1026. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
  1027. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
  1028. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array.js +14 -0
  1029. data/lib/frameworks/sproutcore/frameworks/runtime/ext/array.js +92 -0
  1030. data/lib/frameworks/sproutcore/frameworks/runtime/ext/date.js +15 -0
  1031. data/lib/frameworks/sproutcore/frameworks/runtime/ext/function.js +189 -0
  1032. data/lib/frameworks/sproutcore/frameworks/runtime/ext/string.js +31 -0
  1033. data/lib/frameworks/sproutcore/frameworks/runtime/license.js +29 -0
  1034. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +911 -0
  1035. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +48 -0
  1036. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +79 -0
  1037. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1341 -0
  1038. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +109 -0
  1039. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1499 -0
  1040. data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +181 -0
  1041. data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +179 -0
  1042. data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +124 -0
  1043. data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +195 -0
  1044. data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1013 -0
  1045. data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
  1046. data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +162 -0
  1047. data/lib/frameworks/sproutcore/frameworks/runtime/system/function.js +76 -0
  1048. data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1209 -0
  1049. data/lib/frameworks/sproutcore/frameworks/runtime/system/json.js +515 -0
  1050. data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +1585 -0
  1051. data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +940 -0
  1052. data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +273 -0
  1053. data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +308 -0
  1054. data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +538 -0
  1055. data/lib/frameworks/sproutcore/frameworks/runtime/system/string.js +60 -0
  1056. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +36 -0
  1057. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/beget.js +29 -0
  1058. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +108 -0
  1059. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
  1060. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/console.js +21 -0
  1061. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +115 -0
  1062. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +33 -0
  1063. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +27 -0
  1064. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +77 -0
  1065. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/keys.js +26 -0
  1066. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/makeArray.js +50 -0
  1067. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +25 -0
  1068. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +43 -0
  1069. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +81 -0
  1070. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
  1071. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
  1072. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable.js +623 -0
  1073. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable_observers.js +81 -0
  1074. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +44 -0
  1075. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +868 -0
  1076. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observersForKey.js +36 -0
  1077. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +161 -0
  1078. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +155 -0
  1079. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +87 -0
  1080. data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
  1081. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +474 -0
  1082. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/error.js +59 -0
  1083. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
  1084. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
  1085. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
  1086. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
  1087. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
  1088. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
  1089. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
  1090. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
  1091. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
  1092. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
  1093. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
  1094. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
  1095. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
  1096. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
  1097. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/json.js +21 -0
  1098. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/logger.js +265 -0
  1099. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +201 -0
  1100. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +385 -0
  1101. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +77 -0
  1102. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/enhance.js +196 -0
  1103. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +56 -0
  1104. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
  1105. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
  1106. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
  1107. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
  1108. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
  1109. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +126 -0
  1110. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +324 -0
  1111. data/lib/frameworks/sproutcore/frameworks/statechart/core.js +5 -0
  1112. data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +155 -0
  1113. data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +1253 -0
  1114. data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +1546 -0
  1115. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/respond_to_event.js +401 -0
  1116. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/without_concurrent_states.js +306 -0
  1117. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/with_concurrent_states.js +183 -0
  1118. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/without_concurrent_states.js +122 -0
  1119. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/pane.js +89 -0
  1120. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/responder_chain.js +109 -0
  1121. data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/root_responder.js +74 -0
  1122. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/initial_substate.js +67 -0
  1123. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/is_current_state.js +60 -0
  1124. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/namespacing.js +248 -0
  1125. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/mixin.js +68 -0
  1126. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/nesting.js +95 -0
  1127. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/state_observes.js +235 -0
  1128. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/core.js +94 -0
  1129. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/with_concurrent_states.js +123 -0
  1130. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/without_concurrent_states.js +191 -0
  1131. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/core.js +48 -0
  1132. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/without_concurrent_states.js +218 -0
  1133. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/with_concurrent_states.js +88 -0
  1134. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/context.js +191 -0
  1135. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/core.js +200 -0
  1136. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/advanced.js +239 -0
  1137. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/basic.js +131 -0
  1138. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/intermediate.js +120 -0
  1139. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/context.js +144 -0
  1140. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/core.js +281 -0
  1141. data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/transient/without_concurrent_states.js +162 -0
  1142. data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/assigned_root_state.js +76 -0
  1143. data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/unassigned_root_state.js +162 -0
  1144. data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/destroy.js +73 -0
  1145. data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/invoke_state_method.js +241 -0
  1146. data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/owner.js +236 -0
  1147. data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
  1148. data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +125 -0
  1149. data/lib/frameworks/sproutcore/frameworks/table/views/table.js +440 -0
  1150. data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +63 -0
  1151. data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +158 -0
  1152. data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +214 -0
  1153. data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +155 -0
  1154. data/lib/frameworks/sproutcore/frameworks/testing/core.js +199 -0
  1155. data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
  1156. data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
  1157. data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
  1158. data/lib/frameworks/sproutcore/frameworks/testing/extras.js +17 -0
  1159. data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +205 -0
  1160. data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +201 -0
  1161. data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +708 -0
  1162. data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +219 -0
  1163. data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +222 -0
  1164. data/lib/frameworks/sproutcore/frameworks/testing/utils.js +62 -0
  1165. data/lib/frameworks/sproutcore/lib/index.rhtml +167 -0
  1166. data/lib/frameworks/sproutcore/license.js +32 -0
  1167. data/lib/frameworks/sproutcore/themes/ace/designs/dark.png +0 -0
  1168. data/lib/frameworks/sproutcore/themes/ace/designs/light.png +0 -0
  1169. data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
  1170. data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
  1171. data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
  1172. data/lib/frameworks/sproutcore/themes/ace/resources/body.css +13 -0
  1173. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
  1174. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/button.css +33 -0
  1175. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
  1176. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
  1177. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
  1178. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
  1179. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
  1180. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
  1181. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/button.css +102 -0
  1182. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
  1183. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
  1184. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
  1185. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
  1186. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
  1187. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
  1188. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
  1189. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
  1190. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
  1191. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
  1192. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
  1193. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/button.css +78 -0
  1194. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
  1195. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
  1196. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
  1197. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
  1198. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
  1199. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
  1200. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
  1201. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/button.css +39 -0
  1202. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
  1203. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
  1204. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
  1205. data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/button.css +41 -0
  1206. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
  1207. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
  1208. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
  1209. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/button.css +93 -0
  1210. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
  1211. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
  1212. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
  1213. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
  1214. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
  1215. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
  1216. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
  1217. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
  1218. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
  1219. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
  1220. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
  1221. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/button.css +72 -0
  1222. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
  1223. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
  1224. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
  1225. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
  1226. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
  1227. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
  1228. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
  1229. data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.js +5 -0
  1230. data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
  1231. data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
  1232. data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +21 -0
  1233. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
  1234. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
  1235. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
  1236. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
  1237. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
  1238. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
  1239. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
  1240. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
  1241. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
  1242. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
  1243. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
  1244. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
  1245. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
  1246. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
  1247. data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
  1248. data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
  1249. data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
  1250. data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
  1251. data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
  1252. data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
  1253. data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
  1254. data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
  1255. data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
  1256. data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
  1257. data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
  1258. data/lib/frameworks/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +11 -0
  1259. data/lib/frameworks/sproutcore/themes/ace/resources/loading.css +50 -0
  1260. data/lib/frameworks/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
  1261. data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
  1262. data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
  1263. data/lib/frameworks/sproutcore/themes/ace/resources/menu/down.png +0 -0
  1264. data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +79 -0
  1265. data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png +0 -0
  1266. data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
  1267. data/lib/frameworks/sproutcore/themes/ace/resources/menu/up.png +0 -0
  1268. data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +3 -0
  1269. data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css +13 -0
  1270. data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png +0 -0
  1271. data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
  1272. data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.css +41 -0
  1273. data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
  1274. data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
  1275. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
  1276. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
  1277. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
  1278. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
  1279. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
  1280. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
  1281. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
  1282. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
  1283. data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
  1284. data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
  1285. data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
  1286. data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
  1287. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio.css +57 -0
  1288. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
  1289. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
  1290. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
  1291. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
  1292. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
  1293. data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
  1294. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
  1295. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
  1296. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
  1297. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
  1298. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
  1299. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
  1300. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
  1301. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
  1302. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
  1303. data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
  1304. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
  1305. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
  1306. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
  1307. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
  1308. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
  1309. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
  1310. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
  1311. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
  1312. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
  1313. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
  1314. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
  1315. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
  1316. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
  1317. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
  1318. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
  1319. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
  1320. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
  1321. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
  1322. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
  1323. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
  1324. data/lib/frameworks/sproutcore/themes/ace/resources/segmented/segmented.css +83 -0
  1325. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
  1326. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
  1327. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
  1328. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
  1329. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
  1330. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
  1331. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
  1332. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
  1333. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
  1334. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
  1335. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.css +8 -0
  1336. data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
  1337. data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +31 -0
  1338. data/lib/frameworks/sproutcore/themes/ace/resources/tab/tab.css +3 -0
  1339. data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
  1340. data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
  1341. data/lib/frameworks/sproutcore/themes/ace/resources/well/well.css +7 -0
  1342. data/lib/frameworks/sproutcore/themes/ace/theme.js +30 -0
  1343. data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
  1344. data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
  1345. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
  1346. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
  1347. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
  1348. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
  1349. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
  1350. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
  1351. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
  1352. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
  1353. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
  1354. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
  1355. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
  1356. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
  1357. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
  1358. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
  1359. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
  1360. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
  1361. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
  1362. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
  1363. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
  1364. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
  1365. data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
  1366. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/10.png +0 -0
  1367. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/100.png +0 -0
  1368. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/102.png +0 -0
  1369. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/110.png +0 -0
  1370. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/120.png +0 -0
  1371. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/127.png +0 -0
  1372. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/18.png +0 -0
  1373. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/19.png +0 -0
  1374. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/2.png +0 -0
  1375. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/24.png +0 -0
  1376. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/26.png +0 -0
  1377. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/27.png +0 -0
  1378. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/28.png +0 -0
  1379. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/29.png +0 -0
  1380. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/30.png +0 -0
  1381. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/31.png +0 -0
  1382. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/33.png +0 -0
  1383. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/37.png +0 -0
  1384. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/41.png +0 -0
  1385. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/99.png +0 -0
  1386. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/10.png +0 -0
  1387. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/100.png +0 -0
  1388. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/102.png +0 -0
  1389. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/110.png +0 -0
  1390. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/120.png +0 -0
  1391. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/127.png +0 -0
  1392. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/18.png +0 -0
  1393. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/19.png +0 -0
  1394. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/2.png +0 -0
  1395. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/24.png +0 -0
  1396. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/26.png +0 -0
  1397. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/27.png +0 -0
  1398. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/28.png +0 -0
  1399. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/29.png +0 -0
  1400. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/30.png +0 -0
  1401. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/31.png +0 -0
  1402. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/33.png +0 -0
  1403. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/37.png +0 -0
  1404. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/41.png +0 -0
  1405. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/99.png +0 -0
  1406. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/10.png +0 -0
  1407. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/100.png +0 -0
  1408. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/102.png +0 -0
  1409. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/110.png +0 -0
  1410. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/120.png +0 -0
  1411. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/127.png +0 -0
  1412. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/18.png +0 -0
  1413. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/19.png +0 -0
  1414. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/2.png +0 -0
  1415. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/24.png +0 -0
  1416. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/26.png +0 -0
  1417. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/27.png +0 -0
  1418. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/28.png +0 -0
  1419. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/29.png +0 -0
  1420. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/30.png +0 -0
  1421. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/31.png +0 -0
  1422. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/33.png +0 -0
  1423. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/37.png +0 -0
  1424. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/41.png +0 -0
  1425. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/99.png +0 -0
  1426. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/10.png +0 -0
  1427. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/18.png +0 -0
  1428. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/19.png +0 -0
  1429. data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/2.png +0 -0
  1430. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/button.css +399 -0
  1431. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/checkbox.css +78 -0
  1432. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/collection.css +135 -0
  1433. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/core.css +76 -0
  1434. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/disclosure.css +57 -0
  1435. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_222222.png +0 -0
  1436. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_454545.png +0 -0
  1437. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_888888.png +0 -0
  1438. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
  1439. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/panels/sprite-x.png +0 -0
  1440. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/panels/sprite-y.png +0 -0
  1441. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
  1442. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
  1443. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
  1444. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
  1445. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
  1446. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-toolbar-view.png +0 -0
  1447. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/label.css +11 -0
  1448. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/list_item.css +82 -0
  1449. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/menu.css +20 -0
  1450. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/menu_item_view.css +36 -0
  1451. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/pane.css +18 -0
  1452. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/panel.css +33 -0
  1453. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/picker.css +17 -0
  1454. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/progress.css +27 -0
  1455. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/radio.css +125 -0
  1456. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/scroller.css +159 -0
  1457. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/segmented.css +270 -0
  1458. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/slider.css +94 -0
  1459. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/split_view.css +11 -0
  1460. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/tab.css +14 -0
  1461. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/table.css +14 -0
  1462. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/text_field.css +5 -0
  1463. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/toolbar.css +7 -0
  1464. data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/well.css +36 -0
  1465. data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/button.js +89 -0
  1466. data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/panel.js +28 -0
  1467. data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/progress.js +194 -0
  1468. data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/slider.js +67 -0
  1469. data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/well.js +27 -0
  1470. data/lib/frameworks/sproutcore/themes/legacy_theme/theme.js +13 -0
  1471. data/lib/gen/Buildfile +16 -0
  1472. data/lib/gen/app/Buildfile +36 -0
  1473. data/lib/gen/app/README +1 -0
  1474. data/lib/gen/app/USAGE +13 -0
  1475. data/lib/gen/app/templates/apps/@target_name@/Buildfile +14 -0
  1476. data/lib/gen/app/templates/apps/@target_name@/core.js +27 -0
  1477. data/lib/gen/app/templates/apps/@target_name@/main.js +30 -0
  1478. data/lib/gen/app/templates/apps/@target_name@/resources/loading.rhtml +9 -0
  1479. data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +24 -0
  1480. data/lib/gen/app/templates/apps/@target_name@/theme.js +27 -0
  1481. data/lib/gen/controller/Buildfile +18 -0
  1482. data/lib/gen/controller/README +1 -0
  1483. data/lib/gen/controller/USAGE +13 -0
  1484. data/lib/gen/controller/templates/controllers/@filename@.js +18 -0
  1485. data/lib/gen/controller/templates/tests/controllers/@filename@.js +15 -0
  1486. data/lib/gen/data-source/Buildfile +18 -0
  1487. data/lib/gen/data-source/README +1 -0
  1488. data/lib/gen/data-source/USAGE +15 -0
  1489. data/lib/gen/data-source/templates/data_sources/@filename@.js +64 -0
  1490. data/lib/gen/design/Buildfile +23 -0
  1491. data/lib/gen/design/README +1 -0
  1492. data/lib/gen/design/USAGE +10 -0
  1493. data/lib/gen/design/templates/resources/@filename@.js +16 -0
  1494. data/lib/gen/framework/Buildfile +36 -0
  1495. data/lib/gen/framework/README +1 -0
  1496. data/lib/gen/framework/USAGE +13 -0
  1497. data/lib/gen/framework/templates/frameworks/@target_name@/core.js +21 -0
  1498. data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +15 -0
  1499. data/lib/gen/html_app/Buildfile +36 -0
  1500. data/lib/gen/html_app/README +1 -0
  1501. data/lib/gen/html_app/USAGE +15 -0
  1502. data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +14 -0
  1503. data/lib/gen/html_app/templates/apps/@target_name@/resources/images/.gitkeep +0 -0
  1504. data/lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css +4 -0
  1505. data/lib/gen/html_app/templates/apps/@target_name@/resources/templates/@target_name@.handlebars +1 -0
  1506. data/lib/gen/html_project/Buildfile +45 -0
  1507. data/lib/gen/html_project/INIT +3 -0
  1508. data/lib/gen/html_project/README +1 -0
  1509. data/lib/gen/html_project/USAGE +2 -0
  1510. data/lib/gen/html_project/templates/@filename@/Buildfile +8 -0
  1511. data/lib/gen/html_project/templates/@filename@/README +7 -0
  1512. data/lib/gen/language/Buildfile +26 -0
  1513. data/lib/gen/language/README +1 -0
  1514. data/lib/gen/language/USAGE +13 -0
  1515. data/lib/gen/language/templates/@filename@/strings.js +14 -0
  1516. data/lib/gen/model/Buildfile +16 -0
  1517. data/lib/gen/model/README +1 -0
  1518. data/lib/gen/model/USAGE +15 -0
  1519. data/lib/gen/model/templates/fixtures/@filename@.js +35 -0
  1520. data/lib/gen/model/templates/models/@filename@.js +19 -0
  1521. data/lib/gen/model/templates/tests/models/@filename@.js +15 -0
  1522. data/lib/gen/page/Buildfile +36 -0
  1523. data/lib/gen/page/README +1 -0
  1524. data/lib/gen/page/USAGE +15 -0
  1525. data/lib/gen/page/templates/pages/@target_name@/Buildfile +16 -0
  1526. data/lib/gen/page/templates/pages/@target_name@/core.js +22 -0
  1527. data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +14 -0
  1528. data/lib/gen/page/templates/pages/@target_name@/resources/body.css +1 -0
  1529. data/lib/gen/page/templates/pages/@target_name@/resources/body.rhtml +7 -0
  1530. data/lib/gen/project/Buildfile +45 -0
  1531. data/lib/gen/project/INIT +3 -0
  1532. data/lib/gen/project/README +1 -0
  1533. data/lib/gen/project/USAGE +2 -0
  1534. data/lib/gen/project/templates/@filename@/Buildfile +12 -0
  1535. data/lib/gen/project/templates/@filename@/README +7 -0
  1536. data/lib/gen/responder/Buildfile +18 -0
  1537. data/lib/gen/responder/README +1 -0
  1538. data/lib/gen/responder/USAGE +15 -0
  1539. data/lib/gen/responder/templates/states/@filename@.js +39 -0
  1540. data/lib/gen/test/Buildfile +25 -0
  1541. data/lib/gen/test/README +1 -0
  1542. data/lib/gen/test/USAGE +12 -0
  1543. data/lib/gen/test/templates/tests/@filename@.js +15 -0
  1544. data/lib/gen/theme/Buildfile +36 -0
  1545. data/lib/gen/theme/README +1 -0
  1546. data/lib/gen/theme/USAGE +13 -0
  1547. data/lib/gen/theme/templates/themes/@target_name@/Buildfile +3 -0
  1548. data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +11 -0
  1549. data/lib/gen/theme/templates/themes/@target_name@/theme.js +23 -0
  1550. data/lib/gen/view/Buildfile +18 -0
  1551. data/lib/gen/view/README +1 -0
  1552. data/lib/gen/view/USAGE +13 -0
  1553. data/lib/gen/view/templates/tests/views/@filename@.js +15 -0
  1554. data/lib/gen/view/templates/views/@filename@.js +18 -0
  1555. data/lib/sproutcore/builders/base.rb +97 -0
  1556. data/lib/sproutcore/builders/chance_file.rb +78 -0
  1557. data/lib/sproutcore/builders/combine.rb +61 -0
  1558. data/lib/sproutcore/builders/handlebars.rb +30 -0
  1559. data/lib/sproutcore/builders/html.rb +213 -0
  1560. data/lib/sproutcore/builders/javascript.rb +107 -0
  1561. data/lib/sproutcore/builders/less.rb +41 -0
  1562. data/lib/sproutcore/builders/minify.rb +148 -0
  1563. data/lib/sproutcore/builders/module.rb +74 -0
  1564. data/lib/sproutcore/builders/sass.rb +65 -0
  1565. data/lib/sproutcore/builders/string_wrapper.rb +41 -0
  1566. data/lib/sproutcore/builders/strings.rb +45 -0
  1567. data/lib/sproutcore/builders/stylesheet.rb +49 -0
  1568. data/lib/sproutcore/builders/test.rb +59 -0
  1569. data/lib/sproutcore/builders/test_index.rb +26 -0
  1570. data/lib/sproutcore/builders.rb +15 -0
  1571. data/lib/sproutcore/buildfile/build_task.rb +33 -0
  1572. data/lib/sproutcore/buildfile/buildfile_dsl.rb +169 -0
  1573. data/lib/sproutcore/buildfile/early_time.rb +30 -0
  1574. data/lib/sproutcore/buildfile/invocation_chain.rb +64 -0
  1575. data/lib/sproutcore/buildfile/namespace.rb +33 -0
  1576. data/lib/sproutcore/buildfile/string_ext.rb +202 -0
  1577. data/lib/sproutcore/buildfile/task.rb +325 -0
  1578. data/lib/sproutcore/buildfile/task_arguments.rb +106 -0
  1579. data/lib/sproutcore/buildfile/task_manager.rb +204 -0
  1580. data/lib/sproutcore/buildfile.rb +490 -0
  1581. data/lib/sproutcore/deprecated/view_helper.rb +662 -0
  1582. data/lib/sproutcore/helpers/capture_helper.rb +30 -0
  1583. data/lib/sproutcore/helpers/cssmin.rb +202 -0
  1584. data/lib/sproutcore/helpers/dom_id_helper.rb +21 -0
  1585. data/lib/sproutcore/helpers/entry_sorter.rb +125 -0
  1586. data/lib/sproutcore/helpers/html5_manifest.rb +88 -0
  1587. data/lib/sproutcore/helpers/minifier.rb +106 -0
  1588. data/lib/sproutcore/helpers/packed_optimizer.rb +102 -0
  1589. data/lib/sproutcore/helpers/static_helper.rb +444 -0
  1590. data/lib/sproutcore/helpers/tag_helper.rb +182 -0
  1591. data/lib/sproutcore/helpers/text_helper.rb +303 -0
  1592. data/lib/sproutcore/helpers.rb +11 -0
  1593. data/lib/sproutcore/models/generator.rb +509 -0
  1594. data/lib/sproutcore/models/hash_struct.rb +124 -0
  1595. data/lib/sproutcore/models/manifest.rb +387 -0
  1596. data/lib/sproutcore/models/manifest_entry.rb +362 -0
  1597. data/lib/sproutcore/models/project.rb +267 -0
  1598. data/lib/sproutcore/models/target.rb +870 -0
  1599. data/lib/sproutcore/models.rb +8 -0
  1600. data/lib/sproutcore/rack/builder.rb +344 -0
  1601. data/lib/sproutcore/rack/dev.rb +92 -0
  1602. data/lib/sproutcore/rack/docs.rb +24 -0
  1603. data/lib/sproutcore/rack/filesystem.rb +324 -0
  1604. data/lib/sproutcore/rack/proxy.rb +165 -0
  1605. data/lib/sproutcore/rack/service.rb +153 -0
  1606. data/lib/sproutcore/rack/test_runner.rb +24 -0
  1607. data/lib/sproutcore/rack.rb +7 -0
  1608. data/lib/sproutcore/render_engines/erubis.rb +55 -0
  1609. data/lib/sproutcore/render_engines/haml.rb +39 -0
  1610. data/lib/sproutcore/tools/build.rb +100 -0
  1611. data/lib/sproutcore/tools/build_number.rb +23 -0
  1612. data/lib/sproutcore/tools/docs.rb +53 -0
  1613. data/lib/sproutcore/tools/gen.rb +101 -0
  1614. data/lib/sproutcore/tools/init.rb +56 -0
  1615. data/lib/sproutcore/tools/manifest.rb +85 -0
  1616. data/lib/sproutcore/tools/server.rb +56 -0
  1617. data/lib/sproutcore/tools.rb +419 -0
  1618. data/lib/sproutcore/version.rb +12 -0
  1619. data/lib/sproutcore.rb +169 -0
  1620. data/spec/buildtasks/build/copy_spec.rb +60 -0
  1621. data/spec/buildtasks/build/spec_helper.rb +36 -0
  1622. data/spec/buildtasks/manifest/catalog_spec.rb +48 -0
  1623. data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +126 -0
  1624. data/spec/buildtasks/manifest/localize_spec.rb +97 -0
  1625. data/spec/buildtasks/manifest/prepare_build_tasks/chance_2x_spec.rb +100 -0
  1626. data/spec/buildtasks/manifest/prepare_build_tasks/chance_spec.rb +104 -0
  1627. data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +331 -0
  1628. data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +87 -0
  1629. data/spec/buildtasks/manifest/prepare_build_tasks/handlebars_spec.rb +39 -0
  1630. data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +175 -0
  1631. data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +65 -0
  1632. data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +70 -0
  1633. data/spec/buildtasks/manifest/prepare_build_tasks/module_info_spec.rb +96 -0
  1634. data/spec/buildtasks/manifest/prepare_build_tasks/module_spec.rb +83 -0
  1635. data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_indirect_spec.rb +191 -0
  1636. data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_spec.rb +185 -0
  1637. data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +187 -0
  1638. data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +98 -0
  1639. data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +64 -0
  1640. data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +163 -0
  1641. data/spec/buildtasks/manifest/prepare_spec.rb +43 -0
  1642. data/spec/buildtasks/manifest/spec_helper.rb +39 -0
  1643. data/spec/buildtasks/target_spec.rb +270 -0
  1644. data/spec/fixtures/builder_tests/Buildfile +22 -0
  1645. data/spec/fixtures/builder_tests/apps/chance_test/Buildfile +14 -0
  1646. data/spec/fixtures/builder_tests/apps/chance_test/core.js +27 -0
  1647. data/spec/fixtures/builder_tests/apps/chance_test/main.js +30 -0
  1648. data/spec/fixtures/builder_tests/apps/chance_test/resources/demo.css +6 -0
  1649. data/spec/fixtures/builder_tests/apps/chance_test/resources/force@2x.png +0 -0
  1650. data/spec/fixtures/builder_tests/apps/chance_test/resources/last_file.css +7 -0
  1651. data/spec/fixtures/builder_tests/apps/chance_test/resources/loading.rhtml +9 -0
  1652. data/spec/fixtures/builder_tests/apps/chance_test/resources/main_page.js +24 -0
  1653. data/spec/fixtures/builder_tests/apps/chance_test/resources/z_first_file.css +6 -0
  1654. data/spec/fixtures/builder_tests/apps/chance_test/theme.js +27 -0
  1655. data/spec/fixtures/builder_tests/apps/combine_test/a.js +1 -0
  1656. data/spec/fixtures/builder_tests/apps/combine_test/b.js +1 -0
  1657. data/spec/fixtures/builder_tests/apps/combine_test/c.js +1 -0
  1658. data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/a.css +1 -0
  1659. data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/b.css +1 -0
  1660. data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/c.css +1 -0
  1661. data/spec/fixtures/builder_tests/apps/handlebars_test/template.handlebars +5 -0
  1662. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/bar1_sample.rhtml +2 -0
  1663. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/erb_sample.html.erb +1 -0
  1664. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/icons/image.png +0 -0
  1665. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/image.jpg +0 -0
  1666. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/rhtml_sample.rhtml +1 -0
  1667. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/strings.js +4 -0
  1668. data/spec/fixtures/builder_tests/apps/html_test/english.lproj/style.css +0 -0
  1669. data/spec/fixtures/builder_tests/apps/html_test/french.lproj/french-icons/fr.png +0 -0
  1670. data/spec/fixtures/builder_tests/apps/html_test/french.lproj/strings.js +4 -0
  1671. data/spec/fixtures/builder_tests/apps/html_test/lib/layout_template.rhtml +1 -0
  1672. data/spec/fixtures/builder_tests/apps/html_test/scripts.js +0 -0
  1673. data/spec/fixtures/builder_tests/apps/javascript_test/sc_static.js +15 -0
  1674. data/spec/fixtures/builder_tests/apps/javascript_test/sc_super.js +4 -0
  1675. data/spec/fixtures/builder_tests/apps/javascript_test/strings.js +7 -0
  1676. data/spec/fixtures/builder_tests/apps/less_test/sample.less +4 -0
  1677. data/spec/fixtures/builder_tests/apps/module_test/module.js +1 -0
  1678. data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/req_style_2.css +0 -0
  1679. data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/test.rhtml +1 -0
  1680. data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/javascript.js +1 -0
  1681. data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/lib/alt_layout.rhtml +0 -0
  1682. data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/req_js_2.js +0 -0
  1683. data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
  1684. data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
  1685. data/spec/fixtures/builder_tests/apps/module_test/modules/inlined_module/README +0 -0
  1686. data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/req_style_1.css +0 -0
  1687. data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/strings.js +4 -0
  1688. data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/test.rhtml +1 -0
  1689. data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/req_js_1.js +0 -0
  1690. data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +4 -0
  1691. data/spec/fixtures/builder_tests/apps/sass_test/sample.scss +4 -0
  1692. data/spec/fixtures/builder_tests/apps/strings_test/lproj/strings.js +8 -0
  1693. data/spec/fixtures/builder_tests/apps/stylesheet_test/build_directives.css +9 -0
  1694. data/spec/fixtures/builder_tests/apps/stylesheet_test/sc_static.css +12 -0
  1695. data/spec/fixtures/builder_tests/apps/test_test/lib/alt_layout.rhtml +1 -0
  1696. data/spec/fixtures/builder_tests/apps/test_test/lib/test_layout.rhtml +3 -0
  1697. data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test.js +1 -0
  1698. data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test2.js +1 -0
  1699. data/spec/fixtures/builder_tests/apps/test_test/tests/rhtml_test.rhtml +4 -0
  1700. data/spec/fixtures/builder_tests/frameworks/debug/core.js +0 -0
  1701. data/spec/fixtures/builder_tests/frameworks/debug/english.lproj/dummy.css +0 -0
  1702. data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
  1703. data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
  1704. data/spec/fixtures/builder_tests/frameworks/qunit/core.js +0 -0
  1705. data/spec/fixtures/builder_tests/frameworks/qunit/english.lproj/dummy.css +0 -0
  1706. data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/req_style_1.css +0 -0
  1707. data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/strings.js +4 -0
  1708. data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/test.rhtml +1 -0
  1709. data/spec/fixtures/builder_tests/frameworks/req_target_1/req_js_1.js +0 -0
  1710. data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/req_style_2.css +0 -0
  1711. data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/test.rhtml +1 -0
  1712. data/spec/fixtures/builder_tests/frameworks/req_target_2/javascript.js +1 -0
  1713. data/spec/fixtures/builder_tests/frameworks/req_target_2/lib/alt_layout.rhtml +0 -0
  1714. data/spec/fixtures/builder_tests/frameworks/req_target_2/req_js_2.js +0 -0
  1715. data/spec/fixtures/builder_tests/themes/sample_theme/Buildfile +1 -0
  1716. data/spec/fixtures/buildfiles/basic/Buildfile +11 -0
  1717. data/spec/fixtures/buildfiles/basic/task_module.rake +6 -0
  1718. data/spec/fixtures/buildfiles/installed/Buildfile +5 -0
  1719. data/spec/fixtures/buildfiles/installed/Buildfile2 +5 -0
  1720. data/spec/fixtures/buildfiles/project_test/Buildfile +4 -0
  1721. data/spec/fixtures/buildfiles/project_test/not_project/Buildfile +2 -0
  1722. data/spec/fixtures/buildfiles/project_test/not_project/child/PLACEHOLDER +0 -0
  1723. data/spec/fixtures/entry_for_project/Buildfile +1 -0
  1724. data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
  1725. data/spec/fixtures/entry_for_project/apps/test_app/frameworks/nested/PLACEHOLDER +0 -0
  1726. data/spec/fixtures/entry_for_project/frameworks/shared/PLACEHOLDER +0 -0
  1727. data/spec/fixtures/entry_for_project/frameworks/unrelated/PLACEHOLDER +0 -0
  1728. data/spec/fixtures/find_targets/custom/Buildfile +8 -0
  1729. data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar1/PLACEHOLDER +0 -0
  1730. data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar2/PLACEHOLDER +0 -0
  1731. data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo1/PLACEHOLDER +0 -0
  1732. data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo2/PLACEHOLDER +0 -0
  1733. data/spec/fixtures/find_targets/custom/foos/custom_foos/Buildfile +5 -0
  1734. data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo1/PLACEHOLDER +0 -0
  1735. data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo2/PLACEHOLDER +0 -0
  1736. data/spec/fixtures/find_targets/custom/foos/custom_foos/foos/not_foo1/PLACEHOLDER +0 -0
  1737. data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar1/PLACEHOLDER +0 -0
  1738. data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar2/PLACEHOLDER +0 -0
  1739. data/spec/fixtures/find_targets/nested/Buildfile +8 -0
  1740. data/spec/fixtures/find_targets/nested/apps/app1/Buildfile +1 -0
  1741. data/spec/fixtures/find_targets/nested/apps/app1/apps/nested_app/PLACEHOLDER +0 -0
  1742. data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework1/PLACEHOLDER +0 -0
  1743. data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework2/PLACEHOLDER +0 -0
  1744. data/spec/fixtures/find_targets/standard/clients/client1/PLACEHOLDER +0 -0
  1745. data/spec/fixtures/find_targets/standard/frameworks/framework1/frameworks/framework1/PLACEHOLDER +0 -0
  1746. data/spec/fixtures/find_targets/standard/frameworks/framework2/PLACEHOLDER +0 -0
  1747. data/spec/fixtures/find_targets/standard/themes/theme1/PLACEHOLDER +0 -0
  1748. data/spec/fixtures/find_targets/standard/themes/theme2/PLACEHOLDER +0 -0
  1749. data/spec/fixtures/helper_tests/apps/minifier_test/core.js +8 -0
  1750. data/spec/fixtures/languages/apps/caps_long_names/English.lproj/PLACEHOLDER +0 -0
  1751. data/spec/fixtures/languages/apps/caps_long_names/FreNCH.lproj/PLACEHOLDER +0 -0
  1752. data/spec/fixtures/languages/apps/caps_long_names/UnknOWN.lproj/PLACEHOLDER +0 -0
  1753. data/spec/fixtures/languages/apps/long_names/english.lproj/PLACEHOLDER +0 -0
  1754. data/spec/fixtures/languages/apps/long_names/french.lproj/PLACEHOLDER +0 -0
  1755. data/spec/fixtures/languages/apps/long_names/german.lproj/PLACEHOLDER +0 -0
  1756. data/spec/fixtures/languages/apps/long_names/italian.lproj/PLACEHOLDER +0 -0
  1757. data/spec/fixtures/languages/apps/long_names/japanese.lproj/PLACEHOLDER +0 -0
  1758. data/spec/fixtures/languages/apps/long_names/spanish.lproj/PLACEHOLDER +0 -0
  1759. data/spec/fixtures/languages/apps/long_names/unknown.lproj/PLACEHOLDER +0 -0
  1760. data/spec/fixtures/languages/apps/no_names/PLACEHOLDER +0 -0
  1761. data/spec/fixtures/languages/apps/short_names/de.lproj/PLACEHOLDER +0 -0
  1762. data/spec/fixtures/languages/apps/short_names/en-CA.lproj/PLACEHOLDER +0 -0
  1763. data/spec/fixtures/languages/apps/short_names/en-GB.lproj/PLACEHOLDER +0 -0
  1764. data/spec/fixtures/languages/apps/short_names/en-US.lproj/PLACEHOLDER +0 -0
  1765. data/spec/fixtures/languages/apps/short_names/en.lproj/PLACEHOLDER +0 -0
  1766. data/spec/fixtures/languages/apps/short_names/es.lproj/PLACEHOLDER +0 -0
  1767. data/spec/fixtures/languages/apps/short_names/foo.lproj/PLACEHOLDER +0 -0
  1768. data/spec/fixtures/languages/apps/short_names/fr.lproj/PLACEHOLDER +0 -0
  1769. data/spec/fixtures/languages/apps/short_names/it.lproj/PLACEHOLDER +0 -0
  1770. data/spec/fixtures/languages/apps/short_names/ja.lproj/PLACEHOLDER +0 -0
  1771. data/spec/fixtures/ordered_entries/apps/no_requires/1.js +1 -0
  1772. data/spec/fixtures/ordered_entries/apps/no_requires/B.js +1 -0
  1773. data/spec/fixtures/ordered_entries/apps/no_requires/a/a.js +1 -0
  1774. data/spec/fixtures/ordered_entries/apps/no_requires/a/b.js +1 -0
  1775. data/spec/fixtures/ordered_entries/apps/no_requires/a.js +1 -0
  1776. data/spec/fixtures/ordered_entries/apps/no_requires/b/a.js +1 -0
  1777. data/spec/fixtures/ordered_entries/apps/no_requires/c.js +1 -0
  1778. data/spec/fixtures/ordered_entries/apps/no_requires/core.js +1 -0
  1779. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/B.css +0 -0
  1780. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/a.css +0 -0
  1781. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/b.css +0 -0
  1782. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a.css +0 -0
  1783. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/b/a.css +0 -0
  1784. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/c.css +0 -0
  1785. data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/strings.js +1 -0
  1786. data/spec/fixtures/ordered_entries/apps/no_requires/main.js +1 -0
  1787. data/spec/fixtures/ordered_entries/apps/no_requires/resources/main_page.js +1 -0
  1788. data/spec/fixtures/ordered_entries/apps/no_requires/t.js +1 -0
  1789. data/spec/fixtures/ordered_entries/apps/no_requires/utils.js +1 -0
  1790. data/spec/fixtures/ordered_entries/apps/with_requires/a.js +2 -0
  1791. data/spec/fixtures/ordered_entries/apps/with_requires/b.js +3 -0
  1792. data/spec/fixtures/ordered_entries/apps/with_requires/c.js +2 -0
  1793. data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/a.css +2 -0
  1794. data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/b.css +2 -0
  1795. data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/c.css +2 -0
  1796. data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/d.js +1 -0
  1797. data/spec/fixtures/real_world/Buildfile +22 -0
  1798. data/spec/fixtures/real_world/apps/account/README +1 -0
  1799. data/spec/fixtures/real_world/apps/account/modules/preferences/README +0 -0
  1800. data/spec/fixtures/real_world/apps/calendar/README +1 -0
  1801. data/spec/fixtures/real_world/apps/calendar/modules/preferences/README +0 -0
  1802. data/spec/fixtures/real_world/apps/contacts/README_BEFORE_EDITING +1 -0
  1803. data/spec/fixtures/real_world/apps/contacts/modules/preferences/README +0 -0
  1804. data/spec/fixtures/real_world/apps/contacts/modules/printing/README +0 -0
  1805. data/spec/fixtures/real_world/apps/files/README +1 -0
  1806. data/spec/fixtures/real_world/apps/mail/README +1 -0
  1807. data/spec/fixtures/real_world/apps/mail/modules/preferences/README +0 -0
  1808. data/spec/fixtures/real_world/apps/mail/modules/printing/README +0 -0
  1809. data/spec/fixtures/real_world/apps/mobile_photos/README +1 -0
  1810. data/spec/fixtures/real_world/apps/photos/README +1 -0
  1811. data/spec/fixtures/real_world/apps/photos/modules/email/README +0 -0
  1812. data/spec/fixtures/real_world/apps/photos/modules/preferences/README +0 -0
  1813. data/spec/fixtures/real_world/apps/uploader/README +1 -0
  1814. data/spec/fixtures/real_world/frameworks/core_files/PLACEHOLDER +0 -0
  1815. data/spec/fixtures/real_world/frameworks/core_photos/PLACEHOLDER +0 -0
  1816. data/spec/fixtures/real_world/frameworks/no_2x/resources/test.css +1 -0
  1817. data/spec/fixtures/real_world/frameworks/no_2x/resources/test.png +0 -0
  1818. data/spec/fixtures/real_world/frameworks/shared/PLACEHOLDER +0 -0
  1819. data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +26 -0
  1820. data/spec/fixtures/real_world/frameworks/sproutcore/README +1 -0
  1821. data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
  1822. data/spec/fixtures/real_world/frameworks/sproutcore/apps/test_runner/PLACEHOLDER +0 -0
  1823. data/spec/fixtures/real_world/frameworks/sproutcore/core.js +0 -0
  1824. data/spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html +0 -0
  1825. data/spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js +0 -0
  1826. data/spec/fixtures/real_world/frameworks/sproutcore/demo2.js +0 -0
  1827. data/spec/fixtures/real_world/frameworks/sproutcore/demo3.scss +0 -0
  1828. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js +0 -0
  1829. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css +4 -0
  1830. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html +1 -0
  1831. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo2.sass +0 -0
  1832. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo3.scss +0 -0
  1833. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo4.less +0 -0
  1834. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.haml +0 -0
  1835. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.html.erb +1 -0
  1836. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.rhtml +0 -0
  1837. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/fixtures/sample_fixtures-loc.js +0 -0
  1838. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/has_require.css +4 -0
  1839. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_require.css +1 -0
  1840. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_sc_resource.rhtml +1 -0
  1841. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/protocols/sample-loc.js +0 -0
  1842. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.css +6 -0
  1843. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.rhtml +3 -0
  1844. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/strings.js +1 -0
  1845. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/templates/demo.handlebars +4 -0
  1846. data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/tests/sample-loc.js +0 -0
  1847. data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample-json-fixture.json +1 -0
  1848. data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample_fixtures.js +0 -0
  1849. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/application/PLACEHOLDER +0 -0
  1850. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/costello/core.js +0 -0
  1851. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/data_store/PLACEHOLDER +0 -0
  1852. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/debug/PLACEHOLDER +0 -0
  1853. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/desktop/PLACEHOLDER +0 -0
  1854. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/empty_theme/PLACEHOLDER +0 -0
  1855. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/foundation/PLACEHOLDER +0 -0
  1856. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/mobile/PLACEHOLDER +0 -0
  1857. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/qunit/PLACEHOLDER +0 -0
  1858. data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/uploader/PLACEHOLDER +0 -0
  1859. data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/french-resource.js +0 -0
  1860. data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/strings.js +1 -0
  1861. data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/german-resource.js +0 -0
  1862. data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/strings.js +0 -0
  1863. data/spec/fixtures/real_world/frameworks/sproutcore/has_require.js +4 -0
  1864. data/spec/fixtures/real_world/frameworks/sproutcore/lib/index.html +1 -0
  1865. data/spec/fixtures/real_world/frameworks/sproutcore/no_require.js +1 -0
  1866. data/spec/fixtures/real_world/frameworks/sproutcore/protocols/sample.js +0 -0
  1867. data/spec/fixtures/real_world/frameworks/sproutcore/resources/boo.png +0 -0
  1868. data/spec/fixtures/real_world/frameworks/sproutcore/resources/force@2x.png +0 -0
  1869. data/spec/fixtures/real_world/frameworks/sproutcore/sc_resource.js +6 -0
  1870. data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample1.js +0 -0
  1871. data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample2.js +0 -0
  1872. data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.js +0 -0
  1873. data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.rhtml +1 -0
  1874. data/spec/fixtures/real_world/frameworks/sproutcore/themes/standard_theme/README +0 -0
  1875. data/spec/fixtures/real_world/frameworks/sproutcore/views/view.js +1 -0
  1876. data/spec/fixtures/real_world/generators/sample_custom/Buildfile +0 -0
  1877. data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
  1878. data/spec/fixtures/recursive_project/Buildfile +8 -0
  1879. data/spec/fixtures/recursive_project/frameworks/sproutcore/frameworks/costello/PLACEHOLDER +0 -0
  1880. data/spec/lib/builders/chance_file_spec.rb +44 -0
  1881. data/spec/lib/builders/combine_spec.rb +67 -0
  1882. data/spec/lib/builders/handlebars_spec.rb +29 -0
  1883. data/spec/lib/builders/html_spec.rb +580 -0
  1884. data/spec/lib/builders/javascript_spec.rb +82 -0
  1885. data/spec/lib/builders/less_spec.rb +51 -0
  1886. data/spec/lib/builders/module_spec.rb +133 -0
  1887. data/spec/lib/builders/sass_spec.rb +72 -0
  1888. data/spec/lib/builders/spec_helper.rb +30 -0
  1889. data/spec/lib/builders/strings_spec.rb +56 -0
  1890. data/spec/lib/builders/stylesheet_spec.rb +64 -0
  1891. data/spec/lib/builders/test_index_spec.rb +45 -0
  1892. data/spec/lib/builders/test_spec.rb +137 -0
  1893. data/spec/lib/buildfile/config_for_spec.rb +81 -0
  1894. data/spec/lib/buildfile/define_spec.rb +59 -0
  1895. data/spec/lib/buildfile/dup_spec.rb +65 -0
  1896. data/spec/lib/buildfile/invoke_spec.rb +135 -0
  1897. data/spec/lib/buildfile/load_spec.rb +51 -0
  1898. data/spec/lib/buildfile/task/dup_spec.rb +55 -0
  1899. data/spec/lib/buildfile/task_defined_spec.rb +17 -0
  1900. data/spec/lib/buildfile_commands/build_task_spec.rb +19 -0
  1901. data/spec/lib/buildfile_commands/config_spec.rb +97 -0
  1902. data/spec/lib/buildfile_commands/import_spec.rb +17 -0
  1903. data/spec/lib/buildfile_commands/namespace_spec.rb +18 -0
  1904. data/spec/lib/buildfile_commands/proxies_spec.rb +38 -0
  1905. data/spec/lib/buildfile_commands/replace_task_spec.rb +29 -0
  1906. data/spec/lib/buildfile_commands/task_spec.rb +36 -0
  1907. data/spec/lib/helpers/minifier.rb +31 -0
  1908. data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +26 -0
  1909. data/spec/lib/models/hash_struct/deep_clone_spec.rb +27 -0
  1910. data/spec/lib/models/hash_struct/has_options_spec.rb +32 -0
  1911. data/spec/lib/models/hash_struct/hash_spec.rb +29 -0
  1912. data/spec/lib/models/hash_struct/merge_spec.rb +19 -0
  1913. data/spec/lib/models/hash_struct/method_missing.rb +41 -0
  1914. data/spec/lib/models/manifest/add_entry_spec.rb +36 -0
  1915. data/spec/lib/models/manifest/add_transform_spec.rb +93 -0
  1916. data/spec/lib/models/manifest/build_spec.rb +78 -0
  1917. data/spec/lib/models/manifest/entry_for_spec.rb +94 -0
  1918. data/spec/lib/models/manifest/find_entry.rb +119 -0
  1919. data/spec/lib/models/manifest/prepare_spec.rb +62 -0
  1920. data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +31 -0
  1921. data/spec/lib/models/manifest_entry/hyperdomain_prefix.rb +34 -0
  1922. data/spec/lib/models/manifest_entry/prepare_spec.rb +54 -0
  1923. data/spec/lib/models/project/add_target_spec.rb +44 -0
  1924. data/spec/lib/models/project/buildfile_spec.rb +35 -0
  1925. data/spec/lib/models/project/find_targets_for_spec.rb +78 -0
  1926. data/spec/lib/models/project/load_nearest_project_spec.rb +23 -0
  1927. data/spec/lib/models/project/target_for_spec.rb +33 -0
  1928. data/spec/lib/models/project/targets_spec.rb +62 -0
  1929. data/spec/lib/models/target/compute_build_number_spec.rb +126 -0
  1930. data/spec/lib/models/target/config_spec.rb +30 -0
  1931. data/spec/lib/models/target/expand_required_targets_spec.rb +48 -0
  1932. data/spec/lib/models/target/installed_languages_spec.rb +47 -0
  1933. data/spec/lib/models/target/lproj_for_spec.rb +38 -0
  1934. data/spec/lib/models/target/manifest_for_spec.rb +42 -0
  1935. data/spec/lib/models/target/parent_target_spec.rb +21 -0
  1936. data/spec/lib/models/target/prepare_spec.rb +53 -0
  1937. data/spec/lib/models/target/required_targets_spec.rb +129 -0
  1938. data/spec/lib/models/target/target_for_spec.rb +56 -0
  1939. data/spec/lib/tools/build_number_spec.rb +35 -0
  1940. data/spec/lib/tools/gen_spec.rb +209 -0
  1941. data/spec/lib/tools/tools_spec.rb +96 -0
  1942. data/spec/spec.opts +4 -0
  1943. data/spec/spec_helper.rb +138 -0
  1944. data/sproutcore.gemspec +65 -0
  1945. data/vendor/chance/.gitignore +5 -0
  1946. data/vendor/chance/Gemfile +4 -0
  1947. data/vendor/chance/Rakefile +2 -0
  1948. data/vendor/chance/bin/chance +46 -0
  1949. data/vendor/chance/chance.gemspec +28 -0
  1950. data/vendor/chance/lib/chance/instance/data_url.rb +85 -0
  1951. data/vendor/chance/lib/chance/instance/javascript.rb +19 -0
  1952. data/vendor/chance/lib/chance/instance/slicing.rb +181 -0
  1953. data/vendor/chance/lib/chance/instance/spriting.rb +311 -0
  1954. data/vendor/chance/lib/chance/instance.rb +330 -0
  1955. data/vendor/chance/lib/chance/parser.rb +835 -0
  1956. data/vendor/chance/lib/chance/perf.rb +17 -0
  1957. data/vendor/chance/lib/chance/version.rb +3 -0
  1958. data/vendor/chance/lib/chance.rb +158 -0
  1959. data/vendor/chance/lib/tester/test.rb +108 -0
  1960. data/vendor/chance/lib/tester/test_runner.rb +27 -0
  1961. data/vendor/chance/test/case/abc.png +0 -0
  1962. data/vendor/chance/test/case/more/abc.png +0 -0
  1963. data/vendor/chance/test/case/more/another.css +4 -0
  1964. data/vendor/chance/test/case/test1.css +22 -0
  1965. data/vendor/chance/test/case/test2.css +6 -0
  1966. data/vendor/chance/tests/parser/basic/input/test.css +4 -0
  1967. data/vendor/chance/tests/parser/basic/output/test.parsed.css +5 -0
  1968. data/vendor/jsdoc/README.txt +151 -0
  1969. data/vendor/jsdoc/app/frame/Chain.js +102 -0
  1970. data/vendor/jsdoc/app/frame/Dumper.js +144 -0
  1971. data/vendor/jsdoc/app/frame/Hash.js +47 -0
  1972. data/vendor/jsdoc/app/frame/Link.js +142 -0
  1973. data/vendor/jsdoc/app/frame/Namespace.js +10 -0
  1974. data/vendor/jsdoc/app/frame/Opt.js +134 -0
  1975. data/vendor/jsdoc/app/frame/Reflection.js +26 -0
  1976. data/vendor/jsdoc/app/frame/String.js +93 -0
  1977. data/vendor/jsdoc/app/frame/Testrun.js +129 -0
  1978. data/vendor/jsdoc/app/frame.js +33 -0
  1979. data/vendor/jsdoc/app/handlers/FOODOC.js +26 -0
  1980. data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
  1981. data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
  1982. data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
  1983. data/vendor/jsdoc/app/handlers/XMLDOC.js +26 -0
  1984. data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
  1985. data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
  1986. data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +162 -0
  1987. data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
  1988. data/vendor/jsdoc/app/lib/JSDOC/Lang.js +144 -0
  1989. data/vendor/jsdoc/app/lib/JSDOC/Parser.js +109 -0
  1990. data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
  1991. data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +681 -0
  1992. data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +226 -0
  1993. data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
  1994. data/vendor/jsdoc/app/lib/JSDOC/Token.js +18 -0
  1995. data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +332 -0
  1996. data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
  1997. data/vendor/jsdoc/app/lib/JSDOC/Util.js +32 -0
  1998. data/vendor/jsdoc/app/lib/JSDOC/Walker.js +453 -0
  1999. data/vendor/jsdoc/app/lib/JSDOC.js +98 -0
  2000. data/vendor/jsdoc/app/main.js +74 -0
  2001. data/vendor/jsdoc/app/plugins/commentSrcJson.js +19 -0
  2002. data/vendor/jsdoc/app/plugins/frameworkPrototype.js +16 -0
  2003. data/vendor/jsdoc/app/plugins/functionCall.js +10 -0
  2004. data/vendor/jsdoc/app/plugins/publishSrcHilite.js +62 -0
  2005. data/vendor/jsdoc/app/plugins/sproutcoreTags.js +26 -0
  2006. data/vendor/jsdoc/app/plugins/symbolLink.js +9 -0
  2007. data/vendor/jsdoc/app/plugins/tagParamConfig.js +31 -0
  2008. data/vendor/jsdoc/app/plugins/tagSynonyms.js +43 -0
  2009. data/vendor/jsdoc/app/run.js +346 -0
  2010. data/vendor/jsdoc/app/t/TestDoc.js +144 -0
  2011. data/vendor/jsdoc/app/t/runner.js +13 -0
  2012. data/vendor/jsdoc/app/test/addon.js +24 -0
  2013. data/vendor/jsdoc/app/test/anon_inner.js +14 -0
  2014. data/vendor/jsdoc/app/test/augments.js +31 -0
  2015. data/vendor/jsdoc/app/test/augments2.js +26 -0
  2016. data/vendor/jsdoc/app/test/borrows.js +41 -0
  2017. data/vendor/jsdoc/app/test/borrows2.js +23 -0
  2018. data/vendor/jsdoc/app/test/config.js +22 -0
  2019. data/vendor/jsdoc/app/test/constructs.js +18 -0
  2020. data/vendor/jsdoc/app/test/encoding.js +10 -0
  2021. data/vendor/jsdoc/app/test/encoding_other.js +12 -0
  2022. data/vendor/jsdoc/app/test/functions_anon.js +39 -0
  2023. data/vendor/jsdoc/app/test/functions_nested.js +33 -0
  2024. data/vendor/jsdoc/app/test/global.js +13 -0
  2025. data/vendor/jsdoc/app/test/globals.js +25 -0
  2026. data/vendor/jsdoc/app/test/ignore.js +10 -0
  2027. data/vendor/jsdoc/app/test/inner.js +16 -0
  2028. data/vendor/jsdoc/app/test/jsdoc_test.js +477 -0
  2029. data/vendor/jsdoc/app/test/lend.js +33 -0
  2030. data/vendor/jsdoc/app/test/memberof.js +20 -0
  2031. data/vendor/jsdoc/app/test/memberof_constructor.js +15 -0
  2032. data/vendor/jsdoc/app/test/name.js +19 -0
  2033. data/vendor/jsdoc/app/test/namespace_nested.js +23 -0
  2034. data/vendor/jsdoc/app/test/nocode.js +13 -0
  2035. data/vendor/jsdoc/app/test/oblit_anon.js +20 -0
  2036. data/vendor/jsdoc/app/test/overview.js +20 -0
  2037. data/vendor/jsdoc/app/test/param_inline.js +37 -0
  2038. data/vendor/jsdoc/app/test/params_optional.js +8 -0
  2039. data/vendor/jsdoc/app/test/prototype.js +17 -0
  2040. data/vendor/jsdoc/app/test/prototype_nested.js +9 -0
  2041. data/vendor/jsdoc/app/test/prototype_oblit.js +13 -0
  2042. data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +24 -0
  2043. data/vendor/jsdoc/app/test/public.js +10 -0
  2044. data/vendor/jsdoc/app/test/shared.js +42 -0
  2045. data/vendor/jsdoc/app/test/shared2.js +2 -0
  2046. data/vendor/jsdoc/app/test/shortcuts.js +22 -0
  2047. data/vendor/jsdoc/app/test/static_this.js +13 -0
  2048. data/vendor/jsdoc/app/test/synonyms.js +23 -0
  2049. data/vendor/jsdoc/app/test/tosource.js +23 -0
  2050. data/vendor/jsdoc/app/test/variable_redefine.js +14 -0
  2051. data/vendor/jsdoc/app/test.js +304 -0
  2052. data/vendor/jsdoc/changes.txt +47 -0
  2053. data/vendor/jsdoc/conf/sample.conf +31 -0
  2054. data/vendor/jsdoc/java/build.xml +36 -0
  2055. data/vendor/jsdoc/java/build_1.4.xml +36 -0
  2056. data/vendor/jsdoc/java/classes/js.jar +0 -0
  2057. data/vendor/jsdoc/java/src/JsDebugRun.java +21 -0
  2058. data/vendor/jsdoc/java/src/JsRun.java +21 -0
  2059. data/vendor/jsdoc/jsdebug.jar +0 -0
  2060. data/vendor/jsdoc/jsrun.jar +0 -0
  2061. data/vendor/jsdoc/t/TestDoc.js +144 -0
  2062. data/vendor/jsdoc/t/runner.js +13 -0
  2063. data/vendor/jsdoc/test/addon.js +24 -0
  2064. data/vendor/jsdoc/test/anon_inner.js +14 -0
  2065. data/vendor/jsdoc/test/augments.js +31 -0
  2066. data/vendor/jsdoc/test/augments2.js +26 -0
  2067. data/vendor/jsdoc/test/borrows.js +41 -0
  2068. data/vendor/jsdoc/test/borrows2.js +23 -0
  2069. data/vendor/jsdoc/test/config.js +22 -0
  2070. data/vendor/jsdoc/test/constructs.js +18 -0
  2071. data/vendor/jsdoc/test/encoding.js +10 -0
  2072. data/vendor/jsdoc/test/encoding_other.js +12 -0
  2073. data/vendor/jsdoc/test/functions_anon.js +39 -0
  2074. data/vendor/jsdoc/test/functions_nested.js +33 -0
  2075. data/vendor/jsdoc/test/global.js +13 -0
  2076. data/vendor/jsdoc/test/globals.js +25 -0
  2077. data/vendor/jsdoc/test/ignore.js +10 -0
  2078. data/vendor/jsdoc/test/inner.js +16 -0
  2079. data/vendor/jsdoc/test/jsdoc_test.js +477 -0
  2080. data/vendor/jsdoc/test/lend.js +33 -0
  2081. data/vendor/jsdoc/test/memberof.js +20 -0
  2082. data/vendor/jsdoc/test/memberof_constructor.js +15 -0
  2083. data/vendor/jsdoc/test/name.js +19 -0
  2084. data/vendor/jsdoc/test/namespace_nested.js +23 -0
  2085. data/vendor/jsdoc/test/nocode.js +13 -0
  2086. data/vendor/jsdoc/test/oblit_anon.js +20 -0
  2087. data/vendor/jsdoc/test/overview.js +20 -0
  2088. data/vendor/jsdoc/test/param_inline.js +37 -0
  2089. data/vendor/jsdoc/test/params_optional.js +8 -0
  2090. data/vendor/jsdoc/test/prototype.js +17 -0
  2091. data/vendor/jsdoc/test/prototype_nested.js +9 -0
  2092. data/vendor/jsdoc/test/prototype_oblit.js +13 -0
  2093. data/vendor/jsdoc/test/prototype_oblit_constructor.js +24 -0
  2094. data/vendor/jsdoc/test/public.js +10 -0
  2095. data/vendor/jsdoc/test/shared.js +42 -0
  2096. data/vendor/jsdoc/test/shared2.js +2 -0
  2097. data/vendor/jsdoc/test/shortcuts.js +22 -0
  2098. data/vendor/jsdoc/test/static_this.js +13 -0
  2099. data/vendor/jsdoc/test/synonyms.js +23 -0
  2100. data/vendor/jsdoc/test/tosource.js +23 -0
  2101. data/vendor/jsdoc/test/variable_redefine.js +14 -0
  2102. data/vendor/jsdoc/test.js +304 -0
  2103. data/vendor/sproutcore/lib/htmlcompressor-0.9.3.jar +0 -0
  2104. data/vendor/sproutcore/lib/yuicompressor-2.4.6.jar +0 -0
  2105. metadata +2339 -0
@@ -0,0 +1,1521 @@
1
+ // ==========================================================================
2
+ // Project: SproutCore - JavaScript Application Framework
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
+ // Portions ©2008-2011 Apple Inc. All rights reserved.
5
+ // License: Licensed under MIT license (see license.js)
6
+ // ==========================================================================
7
+
8
+ sc_require('system/browser');
9
+ sc_require('system/event');
10
+ sc_require('system/cursor');
11
+ sc_require('system/responder') ;
12
+ sc_require('system/theme');
13
+
14
+ sc_require('system/string') ;
15
+ sc_require('views/view/base') ;
16
+
17
+
18
+ /**
19
+ Default property to disable or enable by default the contextMenu
20
+ */
21
+ SC.CONTEXT_MENU_ENABLED = YES;
22
+
23
+ /**
24
+ Default property to disable or enable if the focus can jump to the address
25
+ bar or not.
26
+ */
27
+ SC.TABBING_ONLY_INSIDE_DOCUMENT = YES;
28
+
29
+ /**
30
+ Tells the property (when fetched with themed()) to get its value from the renderer (if any).
31
+ */
32
+ SC.FROM_THEME = "__FROM_THEME__"; // doesn't really matter what it is, so long as it is unique. Readability is a plus.
33
+
34
+ /** @private - custom array used for child views */
35
+ SC.EMPTY_CHILD_VIEWS_ARRAY = [];
36
+ SC.EMPTY_CHILD_VIEWS_ARRAY.needsClone = YES;
37
+
38
+ /**
39
+ @class
40
+
41
+ */
42
+ SC.CoreView.reopen(
43
+ /** @scope SC.View.prototype */ {
44
+
45
+ concatenatedProperties: ['outlets', 'displayProperties', 'classNames', 'renderMixin', 'didCreateLayerMixin', 'willDestroyLayerMixin'],
46
+
47
+ /**
48
+ The current pane.
49
+ @property {SC.Pane}
50
+ */
51
+ pane: function() {
52
+ var view = this ;
53
+ while (view && !view.isPane) { view = view.get('parentView') ; }
54
+ return view ;
55
+ }.property('parentView').cacheable(),
56
+
57
+ /**
58
+ The page this view was instantiated from. This is set by the page object
59
+ during instantiation.
60
+
61
+ @property {SC.Page}
62
+ */
63
+ page: null,
64
+
65
+ /**
66
+ If the view is currently inserted into the DOM of a parent view, this
67
+ property will point to the parent of the view.
68
+ */
69
+ parentView: null,
70
+
71
+ /**
72
+ The isVisible property determines if the view is shown in the view
73
+ hierarchy it is a part of. A view can have isVisible == YES and still have
74
+ isVisibleInWindow == NO. This occurs, for instance, when a parent view has
75
+ isVisible == NO. Default is YES.
76
+
77
+ The isVisible property is considered part of the layout and so changing it
78
+ will trigger a layout update.
79
+
80
+ @property {Boolean}
81
+ */
82
+ isVisible: YES,
83
+ isVisibleBindingDefault: SC.Binding.bool(),
84
+
85
+ /**
86
+ Whether the view should be displayed. This is always YES,
87
+ unless the visibility module is added to SC.View.
88
+
89
+ If the visibility module is added, this property will be used to
90
+ optimize certain behaviors on the view. For example, updates to the
91
+ view layer will not be performed until the view becomes visible
92
+ in the window.
93
+ */
94
+ isVisibleInWindow: YES,
95
+
96
+ // ..........................................................
97
+ // CHILD VIEW SUPPORT
98
+ //
99
+
100
+ /**
101
+ Array of child views. You should never edit this array directly unless
102
+ you are implementing createChildViews(). Most of the time, you should
103
+ use the accessor methods such as appendChild(), insertBefore() and
104
+ removeChild().
105
+
106
+ @property {Array}
107
+ */
108
+ childViews: SC.EMPTY_CHILD_VIEWS_ARRAY,
109
+
110
+ // ..........................................................
111
+ // LAYER SUPPORT
112
+ //
113
+
114
+ /**
115
+ Returns the current layer for the view. The layer for a view is only
116
+ generated when the view first becomes visible in the window and even
117
+ then it will not be computed until you request this layer property.
118
+
119
+ If the layer is not actually set on the view itself, then the layer will
120
+ be found by calling this.findLayerInParentLayer().
121
+
122
+ You can also set the layer by calling set on this property.
123
+
124
+ @property {DOMElement} the layer
125
+ */
126
+ layer: function(key, value) {
127
+ if (value !== undefined) {
128
+ this._view_layer = value ;
129
+
130
+ // no layer...attempt to discover it...
131
+ } else {
132
+ value = this._view_layer;
133
+ if (!value) {
134
+ var parent = this.get('parentView');
135
+ if (parent) { parent = parent.get('layer'); }
136
+ if (parent) { this._view_layer = value = this.findLayerInParentLayer(parent); }
137
+ }
138
+ }
139
+ return value ;
140
+ }.property('isVisibleInWindow').cacheable(),
141
+
142
+ /**
143
+ Get a CoreQuery object for this view's layer, or pass in a selector string
144
+ to get a CoreQuery object for a DOM node nested within this layer.
145
+
146
+ @param {String} sel a CoreQuery-compatible selector string
147
+ @returns {SC.CoreQuery} the CoreQuery object for the DOM node
148
+ */
149
+ $: function(sel) {
150
+ var layer = this.get('layer') ;
151
+
152
+ if(!layer) { return SC.$(); }
153
+ else if(sel === undefined) { return SC.$(layer); }
154
+ else { return SC.$(sel, layer); }
155
+ },
156
+
157
+ /**
158
+ Returns the DOM element that should be used to hold child views when they
159
+ are added/remove via DOM manipulation. The default implementation simply
160
+ returns the layer itself. You can override this to return a DOM element
161
+ within the layer.
162
+
163
+ @property {DOMElement} the container layer
164
+ */
165
+ containerLayer: function() {
166
+ return this.get('layer') ;
167
+ }.property('layer').cacheable(),
168
+
169
+ /**
170
+ The ID to use when trying to locate the layer in the DOM. If you do not
171
+ set the layerId explicitly, then the view's GUID will be used instead.
172
+ This ID must be set at the time the view is created.
173
+
174
+ @property {String}
175
+ @readOnly
176
+ */
177
+ layerId: function(key, value) {
178
+ if (value) { this._layerId = value; }
179
+ if (this._layerId) { return this._layerId; }
180
+ return SC.guidFor(this) ;
181
+ }.property().cacheable(),
182
+
183
+ /**
184
+ Attempts to discover the layer in the parent layer. The default
185
+ implementation looks for an element with an ID of layerId (or the view's
186
+ guid if layerId is null). You can override this method to provide your
187
+ own form of lookup. For example, if you want to discover your layer using
188
+ a CSS class name instead of an ID.
189
+
190
+ @param {DOMElement} parentLayer the parent's DOM layer
191
+ @returns {DOMElement} the discovered layer
192
+ */
193
+ findLayerInParentLayer: function(parentLayer) {
194
+ var id = "#" + this.get('layerId');
195
+ return jQuery(id)[0] || jQuery(id, parentLayer)[0] ;
196
+ },
197
+
198
+ /**
199
+ Returns YES if the receiver is a subview of a given view or if it's
200
+ identical to that view. Otherwise, it returns NO.
201
+
202
+ @property {SC.View} view
203
+ */
204
+ isDescendantOf: function(view) {
205
+ var parentView = this.get('parentView');
206
+
207
+ if(this === view) { return YES; }
208
+ else if(parentView) { return parentView.isDescendantOf(view); }
209
+ else { return NO; }
210
+ },
211
+
212
+ /**
213
+ This method is invoked whenever a display property changes. It will set
214
+ the layerNeedsUpdate method to YES. If you need to perform additional
215
+ setup whenever the display changes, you can override this method as well.
216
+
217
+ @returns {SC.View} receiver
218
+ */
219
+ displayDidChange: function() {
220
+ this.set('layerNeedsUpdate', YES) ;
221
+ return this;
222
+ },
223
+
224
+ /**
225
+ Marks the view as needing a display update if the isVisible property changes.
226
+
227
+ Note that this behavior is identical to a display property. It is broken out
228
+ into its own observer so that it can be overridden with additional
229
+ functionality if the visibility module is applied to SC.View.
230
+ */
231
+ _sc_isVisibleDidChange: function() {
232
+ this.displayDidChange();
233
+ }.observes('isVisible'),
234
+
235
+ /**
236
+ Setting this property to YES will cause the updateLayerIfNeeded method to
237
+ be invoked at the end of the runloop. You can also force a view to update
238
+ sooner by calling updateLayerIfNeeded() directly. The method will update
239
+ the layer only if this property is YES.
240
+
241
+ @property {Boolean}
242
+ @test in updateLayer
243
+ */
244
+ layerNeedsUpdate: NO,
245
+
246
+ /** @private
247
+ Schedules the updateLayerIfNeeded method to run at the end of the runloop
248
+ if layerNeedsUpdate is set to YES.
249
+ */
250
+ _view_layerNeedsUpdateDidChange: function() {
251
+ if (this.get('layerNeedsUpdate')) {
252
+ this.invokeOnce(this.updateLayerIfNeeded) ;
253
+ }
254
+ }.observes('layerNeedsUpdate'),
255
+
256
+ /**
257
+ Updates the layer only if the view is visible onscreen and if
258
+ layerNeedsUpdate is set to YES. Normally you will not invoke this method
259
+ directly. Instead you set the layerNeedsUpdate property to YES and this
260
+ method will be called once at the end of the runloop.
261
+
262
+ If you need to update view's layer sooner than the end of the runloop, you
263
+ can call this method directly. If your view is not visible in the window
264
+ but you want it to update anyway, then call this method, passing YES for
265
+ the 'skipIsVisibleInWindowCheck' parameter.
266
+
267
+ You should not override this method. Instead override updateLayer() or
268
+ render().
269
+
270
+ @returns {SC.View} receiver
271
+ @test in updateLayer
272
+ */
273
+ updateLayerIfNeeded: function(skipIsVisibleInWindowCheck) {
274
+ var needsUpdate = this.get('layerNeedsUpdate'),
275
+ shouldUpdate = needsUpdate && (skipIsVisibleInWindowCheck || this.get('isVisibleInWindow'));
276
+ if (shouldUpdate) {
277
+ // only update a layer if it already exists
278
+ if (this.get('layer')) {
279
+ this.beginPropertyChanges() ;
280
+ this.set('layerNeedsUpdate', NO) ;
281
+ this.updateLayer() ;
282
+ this.endPropertyChanges() ;
283
+ }
284
+ }
285
+
286
+ return this ;
287
+ },
288
+
289
+ /**
290
+ This is the core method invoked to update a view layer whenever it has
291
+ changed. This method simply creates a render context focused on the
292
+ layer element and then calls your render() method.
293
+
294
+ You will not usually call or override this method directly. Instead you
295
+ should set the layerNeedsUpdate property to YES to cause this method to
296
+ run at the end of the run loop, or you can call updateLayerIfNeeded()
297
+ to force the layer to update immediately.
298
+
299
+ Instead of overriding this method, consider overidding the render() method
300
+ instead, which is called both when creating and updating a layer. If you
301
+ do not want your render() method called when updating a layer, then you
302
+ should override this method instead.
303
+
304
+ @param optionalContext provided only for backwards-compatibility.
305
+
306
+ @returns {SC.View} receiver
307
+ */
308
+ updateLayer: function(optionalContext) {
309
+ var mixins, idx, len, hasLegacyRenderMethod;
310
+
311
+ var context = optionalContext || this.renderContext(this.get('layer')) ;
312
+ this._renderLayerSettings(context, NO);
313
+
314
+ // If the render method takes two parameters, we assume that it is a
315
+ // legacy implementation that takes context and firstTime. If it has only
316
+ // one parameter, we assume it is the render delegates style that requires
317
+ // only context. Note that, for backwards compatibility, the default
318
+ // SC.View implementation of render uses the old style.
319
+ hasLegacyRenderMethod = !this.update;
320
+ // Call render with firstTime set to NO to indicate an update, rather than
321
+ // full re-render, should be performed.
322
+ if (hasLegacyRenderMethod) {
323
+ this.render(context, NO);
324
+ }
325
+ else {
326
+ this.update(context.$());
327
+ }
328
+ if (mixins = this.renderMixin) {
329
+ len = mixins.length;
330
+ for(idx=0; idx<len; ++idx) { mixins[idx].call(this, context, NO) ; }
331
+ }
332
+
333
+ context.update() ;
334
+ if (context._innerHTMLReplaced) {
335
+ var pane = this.get('pane');
336
+ if(pane && pane.get('isPaneAttached')) {
337
+ this._notifyDidAppendToDocument();
338
+ }
339
+ }
340
+
341
+ // If this view uses static layout, then notify that the frame (likely)
342
+ // changed.
343
+ if (this.useStaticLayout) { this.viewDidResize(); }
344
+
345
+ if (this.didUpdateLayer) { this.didUpdateLayer(); } // call to update DOM
346
+ if(this.designer && this.designer.viewDidUpdateLayer) {
347
+ this.designer.viewDidUpdateLayer(); //let the designer know
348
+ }
349
+ return this ;
350
+ },
351
+
352
+ parentViewDidResize: function() {
353
+ if (!this.get('hasLayout')) { this.notifyPropertyChange('frame'); }
354
+ this.viewDidResize();
355
+ },
356
+
357
+ /**
358
+ Override this in a child class to define behavior that should be invoked
359
+ when a parent's view was resized.
360
+ */
361
+ viewDidResize: function() {},
362
+
363
+ /**
364
+ Creates a new renderContext with the passed tagName or element. You
365
+ can override this method to provide further customization to the context
366
+ if needed. Normally you will not need to call or override this method.
367
+
368
+ @returns {SC.RenderContext}
369
+ */
370
+ renderContext: function(tagNameOrElement) {
371
+ return SC.RenderContext(tagNameOrElement) ;
372
+ },
373
+
374
+ /**
375
+ Creates the layer by creating a renderContext and invoking the view's
376
+ render() method. This will only create the layer if the layer does not
377
+ already exist.
378
+
379
+ When you create a layer, it is expected that your render() method will
380
+ also render the HTML for all child views as well. This method will
381
+ notify the view along with any of its childViews that its layer has been
382
+ created.
383
+
384
+ @returns {SC.View} receiver
385
+ */
386
+ createLayer: function() {
387
+ if (this.get('layer')) { return this ; } // nothing to do
388
+
389
+ var context = this.renderContext(this.get('tagName')) ;
390
+
391
+ // now prepare the content like normal.
392
+ this.renderToContext(context) ;
393
+ this.set('layer', context.element()) ;
394
+
395
+ // now notify the view and its child views..
396
+ this._notifyDidCreateLayer() ;
397
+
398
+ return this ;
399
+ },
400
+
401
+ /** @private -
402
+ Invokes the receivers didCreateLayer() method if it exists and then
403
+ invokes the same on all child views.
404
+ */
405
+ _notifyDidCreateLayer: function() {
406
+ this.notifyPropertyChange('layer');
407
+
408
+ if (this.didCreateLayer) { this.didCreateLayer() ; }
409
+
410
+ // and notify others
411
+ var mixins = this.didCreateLayerMixin, len, idx,
412
+ childViews = this.get('childViews'),
413
+ childView;
414
+ if (mixins) {
415
+ len = mixins.length ;
416
+ for (idx=0; idx<len; ++idx) { mixins[idx].call(this) ; }
417
+ }
418
+
419
+ len = childViews.length ;
420
+ for (idx=0; idx<len; ++idx) {
421
+ childView = childViews[idx];
422
+ if (!childView) { continue; }
423
+
424
+ // A parent view creating a layer might result in the creation of a
425
+ // child view's DOM node being created via a render context without
426
+ // createLayer() being invoked on the child. In such cases, if anyone
427
+ // had requested 'layer' and it was cached as null, we need to
428
+ // invalidate it.
429
+ childView.notifyPropertyChange('layer');
430
+
431
+ // A strange case, that a childView's frame won't be correct before
432
+ // we have a layer, if the childView doesn't have a fixed layout
433
+ // and we are using static layout
434
+ if (this.get('useStaticLayout')) {
435
+ if (!childView.get('isFixedLayout')) { childView.viewDidResize(); }
436
+ }
437
+
438
+ childView._notifyDidCreateLayer() ;
439
+ }
440
+ },
441
+
442
+ /**
443
+ Destroys any existing layer along with the layer for any child views as
444
+ well. If the view does not currently have a layer, then this method will
445
+ do nothing.
446
+
447
+ If you implement willDestroyLayer() on your view or if any mixins
448
+ implement willDestroLayerMixin(), then this method will be invoked on your
449
+ view before your layer is destroyed to give you a chance to clean up any
450
+ event handlers, etc.
451
+
452
+ If you write a willDestroyLayer() handler, you can assume that your
453
+ didCreateLayer() handler was called earlier for the same layer.
454
+
455
+ Normally you will not call or override this method yourself, but you may
456
+ want to implement the above callbacks when it is run.
457
+
458
+ @returns {SC.View} receiver
459
+ */
460
+ destroyLayer: function() {
461
+ var layer = this.get('layer') ;
462
+ if (layer) {
463
+
464
+ // Now notify the view and its child views. It will also set the
465
+ // layer property to null.
466
+ this._notifyWillDestroyLayer() ;
467
+
468
+ // do final cleanup
469
+ if (layer.parentNode) { layer.parentNode.removeChild(layer) ; }
470
+ layer = null ;
471
+ }
472
+ return this ;
473
+ },
474
+
475
+ /**
476
+ Destroys and recreates the current layer. This can be more efficient than
477
+ modifying individual child views.
478
+
479
+ @returns {SC.View} receiver
480
+ */
481
+ replaceLayer: function() {
482
+ this.destroyLayer();
483
+ //this.set('layerLocationNeedsUpdate', YES) ;
484
+ this.invokeOnce(this.updateLayerLocation) ;
485
+ },
486
+
487
+ /**
488
+ If the parent view has changed, we need to insert this
489
+ view's layer into the layer of the new parent view.
490
+ */
491
+ parentViewDidChange: function() {
492
+ this.parentViewDidResize();
493
+ this.updateLayerLocation();
494
+ },
495
+
496
+ /**
497
+ Set to YES when the view's layer location is dirty. You can call
498
+ updateLayerLocationIfNeeded() to clear this flag if it is set.
499
+
500
+ @property {Boolean}
501
+ */
502
+ layerLocationNeedsUpdate: NO,
503
+
504
+ /**
505
+ Calls updateLayerLocation(), but only if the view's layer location
506
+ currently needs to be updated. This method is called automatically at
507
+ the end of a run loop if you have called parentViewDidChange() at some
508
+ point.
509
+
510
+ @property {Boolean} force This property is ignored.
511
+ @returns {SC.View} receiver
512
+ @test in updateLayerLocation
513
+ */
514
+ updateLayerLocationIfNeeded: function(force) {
515
+ if (this.get('layerLocationNeedsUpdate')) {
516
+ this.updateLayerLocation() ;
517
+ }
518
+ return this ;
519
+ },
520
+
521
+ /**
522
+ This method is called when a view changes its location in the view
523
+ hierarchy. This method will update the underlying DOM-location of the
524
+ layer so that it reflects the new location.
525
+
526
+ @returns {SC.View} receiver
527
+ */
528
+ updateLayerLocation: function() {
529
+ // collect some useful value
530
+ // if there is no node for some reason, just exit
531
+ var node = this.get('layer'),
532
+ parentView = this.get('parentView'),
533
+ parentNode = parentView ? parentView.get('containerLayer') : null ;
534
+
535
+ // remove node from current parentNode if the node does not match the new
536
+ // parent node.
537
+ if (node && node.parentNode && node.parentNode !== parentNode) {
538
+ node.parentNode.removeChild(node);
539
+ }
540
+
541
+ // CASE 1: no new parentView. just remove from parent (above).
542
+ if (!parentView) {
543
+ if (node && node.parentNode) { node.parentNode.removeChild(node); }
544
+
545
+ // CASE 2: parentView has no layer, view has layer. destroy layer
546
+ // CASE 3: parentView has no layer, view has no layer, nothing to do
547
+ } else if (!parentNode) {
548
+ if (node) {
549
+ if (node.parentNode) { node.parentNode.removeChild(node); }
550
+ this.destroyLayer();
551
+ }
552
+
553
+ // CASE 4: parentView has layer, view has no layer. create layer & add
554
+ // CASE 5: parentView has layer, view has layer. move layer
555
+ } else {
556
+ if (!node) {
557
+ this.createLayer() ;
558
+ node = this.get('layer') ;
559
+ if (!node) { return; } // can't do anything without a node.
560
+ }
561
+
562
+ var siblings = parentView.get('childViews'),
563
+ nextView = siblings.objectAt(siblings.indexOf(this)+1),
564
+ nextNode = (nextView) ? nextView.get('layer') : null ;
565
+
566
+ // before we add to parent node, make sure that the nextNode exists...
567
+ if (nextView && (!nextNode || nextNode.parentNode!==parentNode)) {
568
+ nextView.updateLayerLocationIfNeeded() ;
569
+ nextNode = nextView.get('layer') ;
570
+ }
571
+
572
+ // add to parentNode if needed.
573
+ if ((node.parentNode!==parentNode) || (node.nextSibling!==nextNode)) {
574
+ parentNode.insertBefore(node, nextNode) ;
575
+ }
576
+ }
577
+
578
+ parentNode = parentView = node = nextNode = null ; // avoid memory leaks
579
+
580
+ this.set('layerLocationNeedsUpdate', NO) ;
581
+
582
+ return this ;
583
+ },
584
+
585
+ /** @private -
586
+ Invokes willDestroyLayer() on view and child views. Then sets layer to
587
+ null for receiver.
588
+ */
589
+ _notifyWillDestroyLayer: function() {
590
+ if (this.willDestroyLayer) { this.willDestroyLayer() ; }
591
+ var mixins = this.willDestroyLayerMixin, len, idx,
592
+ childViews = this.get('childViews') ;
593
+ if (mixins) {
594
+ len = mixins.length ;
595
+ for (idx=0; idx<len; ++idx) { mixins[idx].call(this) ; }
596
+ }
597
+
598
+ len = childViews.length ;
599
+ for (idx=0; idx<len; ++idx) { childViews[idx]._notifyWillDestroyLayer() ; }
600
+
601
+ this.set('layer', null) ;
602
+ },
603
+
604
+
605
+
606
+ /**
607
+ @private
608
+
609
+ Renders to a context.
610
+ Rendering only happens for the initial rendering. Further updates happen in updateLayer,
611
+ and are not done to contexts, but to layers.
612
+ Note: You should not generally override nor directly call this method. This method is only
613
+ called by createLayer to set up the layer initially, and by renderChildViews, to write to
614
+ a context.
615
+
616
+ @param {SC.RenderContext} context the render context.
617
+ @param {Boolean} firstTime Provided for compatibility when rendering legacy views only.
618
+ */
619
+ renderToContext: function(context, firstTime) {
620
+ var hasLegacyRenderMethod, mixins, idx, len;
621
+
622
+ this.beginPropertyChanges() ;
623
+ this.set('layerNeedsUpdate', NO) ;
624
+
625
+ if (SC.none(firstTime)) { firstTime = YES; }
626
+
627
+ this._renderLayerSettings(context, firstTime);
628
+
629
+ // If the render method takes two parameters, we assume that it is a
630
+ // legacy implementation that takes context and firstTime. If it has only
631
+ // one parameter, we assume it is the render delegates style that requires
632
+ // only context. Note that, for backwards compatibility, the default
633
+ // SC.View implementation of render uses the old style.
634
+ hasLegacyRenderMethod = !this.update;
635
+
636
+ // Let the render method handle rendering. If we have a render delegate
637
+ // object set, it will be used there.
638
+ if (hasLegacyRenderMethod) {
639
+ this.render(context, firstTime);
640
+ }
641
+ // This view implements the render delegate protocol.
642
+ else {
643
+ if (firstTime) {
644
+ this.render(context);
645
+ } else {
646
+ this.update(context.$());
647
+ }
648
+ }
649
+
650
+ // If we've made it this far and renderChildViews() was never called,
651
+ // render any child views now.
652
+ if (firstTime && !this._didRenderChildViews) { this.renderChildViews(context, firstTime); }
653
+ // Reset the flag so that if the layer is recreated we re-render the child views
654
+ this._didRenderChildViews = NO;
655
+
656
+
657
+ if (mixins = this.renderMixin) {
658
+ len = mixins.length;
659
+ for(idx=0; idx<len; ++idx) { mixins[idx].call(this, context, firstTime) ; }
660
+ }
661
+
662
+ this.endPropertyChanges() ;
663
+ },
664
+
665
+ _renderLayerSettings: function(context, firstTime) {
666
+ context.resetClassNames();
667
+ context.resetStyles();
668
+
669
+ this.applyAttributesToContext(context);
670
+ },
671
+
672
+ applyAttributesToContext: function(context) {
673
+ context.addClass(this.get('classNames'));
674
+
675
+ if (this.get('isTextSelectable')) { context.addClass('allow-select'); }
676
+ if (!this.get('isVisible')) { context.addClass('sc-hidden'); }
677
+ if (this.get('isFirstResponder')) { context.addClass('focus'); }
678
+
679
+ context.id(this.get('layerId'));
680
+ context.attr('role', this.get('ariaRole'));
681
+ },
682
+
683
+ /**
684
+ @private
685
+
686
+ Invoked by createLayer() and updateLayer() to actually render a context.
687
+ This method calls the render() method on your view along with any
688
+ renderMixin() methods supplied by mixins you might have added.
689
+
690
+ You should not override this method directly. Nor should you call it. It is OLD.
691
+
692
+ @param {SC.RenderContext} context the render context
693
+ @param {Boolean} firstTime YES if this is creating a layer
694
+ @returns {void}
695
+ */
696
+ prepareContext: function(context, firstTime) {
697
+ // eventually, firstTime will be removed because it is ugly.
698
+ // for now, we will sense whether we are doing things the ugly way or not.
699
+ // if ugly, we will allow updates through.
700
+ if (firstTime !== false) { firstTime = YES; } // the GOOD code path :)
701
+
702
+ if (firstTime) {
703
+ this.renderToContext(context);
704
+ } else {
705
+ this.updateLayer(context);
706
+ }
707
+ },
708
+
709
+ /**
710
+ Your render method should invoke this method to render any child views,
711
+ especially if this is the first time the view will be rendered. This will
712
+ walk down the childView chain, rendering all of the children in a nested
713
+ way.
714
+
715
+ @param {SC.RenderContext} context the context
716
+ @param {Boolean} firstName true if the layer is being created
717
+ @returns {SC.RenderContext} the render context
718
+ @test in render
719
+ */
720
+ renderChildViews: function(context, firstTime) {
721
+ var cv = this.get('childViews'), len = cv.length, idx, view ;
722
+ for (idx=0; idx<len; ++idx) {
723
+ view = cv[idx] ;
724
+ if (!view) { continue; }
725
+ context = context.begin(view.get('tagName')) ;
726
+ view.renderToContext(context, firstTime);
727
+ context = context.end() ;
728
+ }
729
+ this._didRenderChildViews = YES;
730
+
731
+ return context;
732
+ },
733
+
734
+ /** @private -
735
+ override to add support for theming or in your view
736
+ */
737
+ render: function() { },
738
+
739
+ /** @private -
740
+ Invokes the receivers didAppendLayerToDocument() method if it exists and
741
+ then invokes the same on all child views.
742
+ */
743
+
744
+ _notifyDidAppendToDocument: function() {
745
+ if (!this.get('hasLayout')) { this.notifyPropertyChange('frame'); }
746
+ if (this.didAppendToDocument) { this.didAppendToDocument(); }
747
+
748
+ var i=0, child, childLen, children = this.get('childViews');
749
+ for(i=0, childLen=children.length; i<childLen; i++) {
750
+ child = children[i];
751
+ if(child._notifyDidAppendToDocument){
752
+ child._notifyDidAppendToDocument();
753
+ }
754
+ }
755
+ },
756
+
757
+ childViewsObserver: function(){
758
+ var childViews = this.get('childViews'), i, iLen, child;
759
+ for(i=0, iLen = childViews.length; i<iLen; i++){
760
+ child = childViews[i];
761
+ if(child._notifyDidAppendToDocument){
762
+ child._notifyDidAppendToDocument();
763
+ }
764
+ }
765
+ }.observes('childViews'),
766
+
767
+ // ..........................................................
768
+ // STANDARD RENDER PROPERTIES
769
+ //
770
+
771
+ /**
772
+ Tag name for the view's outer element. The tag name is only used when
773
+ a layer is first created. If you change the tagName for an element, you
774
+ must destroy and recreate the view layer.
775
+
776
+ @property {String}
777
+ */
778
+ tagName: 'div',
779
+
780
+ /**
781
+ The WAI-ARIA role of the control represented by this view. For example, a
782
+ button may have a role of type 'button', or a pane may have a role of
783
+ type 'alertdialog'. This property is used by assistive software to help
784
+ visually challenged users navigate rich web applications.
785
+
786
+ The full list of valid WAI-ARIA roles is available at:
787
+ http://www.w3.org/TR/wai-aria/roles#roles_categorization
788
+
789
+ @property {String}
790
+ */
791
+ ariaRole: null,
792
+
793
+ /**
794
+ Standard CSS class names to apply to the view's outer element. This
795
+ property automatically inherits any class names defined by the view's
796
+ superclasses as well.
797
+
798
+ @property {Array}
799
+ */
800
+ classNames: [],
801
+
802
+ /**
803
+ Tool tip property that will be set to the title attribute on the HTML
804
+ rendered element.
805
+
806
+ @property {String}
807
+ */
808
+ toolTip: null,
809
+
810
+ /**
811
+ The computed tooltip. This is generated by localizing the toolTip
812
+ property if necessary.
813
+
814
+ @property {String}
815
+ */
816
+ displayToolTip: function() {
817
+ var ret = this.get('toolTip');
818
+ return (ret && this.get('localize')) ? SC.String.loc(ret) : (ret || '');
819
+ }.property('toolTip','localize').cacheable(),
820
+
821
+ /**
822
+ Determines if the user can select text within the view. Normally this is
823
+ set to NO to disable text selection. You should set this to YES if you
824
+ are creating a view that includes editable text. Otherwise, settings this
825
+ to YES will probably make your controls harder to use and it is not
826
+ recommended.
827
+
828
+ @property {Boolean}
829
+ @readOnly
830
+ */
831
+ isTextSelectable: NO,
832
+
833
+ /**
834
+ You can set this array to include any properties that should immediately
835
+ invalidate the display. The display will be automatically invalidated
836
+ when one of these properties change.
837
+
838
+ These are the properties that will be visible to any Render Delegate.
839
+ When the RenderDelegate asks for a property it needs, the view checks the
840
+ displayProperties array. It first looks for the property name prefixed
841
+ by 'display'; for instance, if the render delegate needs a 'title',
842
+ the view will attempt to find 'displayTitle'. If there is no 'displayTitle'
843
+ in displayProperties, the view will then try 'title'. If 'title' is not
844
+ in displayProperties either, an error will be thrown.
845
+
846
+ This allows you to avoid collisions between your view's API and the Render
847
+ Delegate's API.
848
+
849
+ Implementation note: 'isVisible' is also effectively a display property,
850
+ but it is not declared as such because the same effect is implemented
851
+ inside _sc_isVisibleDidChange(). This avoids having two observers on
852
+ 'isVisible', which is:
853
+ a. More efficient
854
+ b. More correct, because we can guarantee the order of operations
855
+
856
+ @property {Array}
857
+ @readOnly
858
+ */
859
+ displayProperties: [],
860
+
861
+ // .......................................................
862
+ // SC.RESPONDER SUPPORT
863
+ //
864
+
865
+ /** @property
866
+ The nextResponder is usually the parentView.
867
+ */
868
+ nextResponder: function() {
869
+ return this.get('parentView') ;
870
+ }.property('parentView').cacheable(),
871
+
872
+
873
+ /** @property
874
+ Set to YES if your view is willing to accept first responder status. This
875
+ is used when calculcating key responder loop.
876
+ */
877
+ acceptsFirstResponder: NO,
878
+
879
+ // .......................................................
880
+ // CORE DISPLAY METHODS
881
+ //
882
+
883
+ /** @private
884
+ Setup a view, but do not finish waking it up.
885
+
886
+ - configure childViews
887
+ - Determine the view's theme
888
+ - Fetch a render delegate from the theme, if necessary
889
+ - register the view with the global views hash, which is used for event
890
+ dispatch
891
+ */
892
+ init: function() {
893
+ var parentView = this.get('parentView'),
894
+ path, root, lp, displayProperties ;
895
+
896
+ sc_super();
897
+
898
+ // Register the view for event handling. This hash is used by
899
+ // SC.RootResponder to dispatch incoming events.
900
+ SC.View.views[this.get('layerId')] = this;
901
+
902
+ // setup child views. be sure to clone the child views array first
903
+ this.childViews = this.get('childViews').slice() ;
904
+ this.createChildViews() ; // setup child Views
905
+
906
+ // register display property observers ..
907
+ // TODO: Optimize into class setup
908
+ displayProperties = this.get('displayProperties') ;
909
+ for(var i=0, l=displayProperties.length; i<l; i++) {
910
+ this.addObserver(displayProperties[i], this, this.displayDidChange);
911
+ }
912
+ },
913
+
914
+ /**
915
+ Wakes up the view. The default implementation immediately syncs any
916
+ bindings, which may cause the view to need its display updated. You
917
+ can override this method to perform any additional setup. Be sure to
918
+ call sc_super to setup bindings and to call awake on childViews.
919
+
920
+ It is best to awake a view before you add it to the DOM. This way when
921
+ the DOM is generated, it will have the correct initial values and will
922
+ not require any additional setup.
923
+
924
+ @returns {void}
925
+ */
926
+ awake: function() {
927
+ sc_super();
928
+ var childViews = this.get('childViews'), len = childViews.length, idx ;
929
+ for (idx=0; idx<len; ++idx) {
930
+ if (!childViews[idx]) { continue ; }
931
+ childViews[idx].awake() ;
932
+ }
933
+ },
934
+
935
+ /**
936
+ Frame describes the current bounding rect for your view. This is always
937
+ measured from the top-left corner of the parent view.
938
+
939
+ @property {Rect}
940
+ @test in layoutStyle
941
+ */
942
+ frame: function() {
943
+ return this.computeFrameWithParentFrame(null) ;
944
+ }.property('useStaticLayout').cacheable(), // We depend on the layout, but layoutDidChange will call viewDidResize to check the frame for us
945
+
946
+ /**
947
+ Computes the frame of the view by examining the view's DOM representation.
948
+ If no representation exists, returns null.
949
+
950
+ If the view has a parent view, the parent's bounds will be taken into account when
951
+ calculating the frame.
952
+
953
+ @returns {Rect} the computed frame
954
+ */
955
+ computeFrameWithParentFrame: function() {
956
+ var layer, // The view's layer
957
+ pv = this.get('parentView'), // The view's parent view (if it exists)
958
+ f; // The layer's coordinates in the document
959
+
960
+ // need layer to be able to compute rect
961
+ if (layer = this.get('layer')) {
962
+ f = SC.offset(layer); // x,y
963
+ if (pv) { f = pv.convertFrameFromView(f, null); }
964
+
965
+ /*
966
+ TODO Can probably have some better width/height values - CC
967
+ FIXME This will probably not work right with borders - PW
968
+ */
969
+ f.width = layer.offsetWidth;
970
+ f.height = layer.offsetHeight;
971
+ return f;
972
+ }
973
+
974
+ // Unable to compute yet
975
+ if (this.get('hasLayout')) {
976
+ return null;
977
+ } else {
978
+ return { x: 0, y: 0, width: 0, height: 0 };
979
+ }
980
+ },
981
+
982
+ /**
983
+ The clipping frame returns the visible portion of the view, taking into
984
+ account the clippingFrame of the parent view. Keep in mind that
985
+ the clippingFrame is in the context of the view itself, not it's parent
986
+ view.
987
+
988
+ Normally this will be calculated based on the intersection of your own
989
+ clippingFrame and your parentView's clippingFrame.
990
+
991
+ @property {Rect}
992
+ */
993
+ clippingFrame: function() {
994
+ var f = this.get('frame'),
995
+ ret = f,
996
+ pv, cf;
997
+
998
+ if (!f) return null;
999
+ pv = this.get('parentView');
1000
+ if (pv) {
1001
+ cf = pv.get('clippingFrame');
1002
+ if (!cf) return f;
1003
+ ret = SC.intersectRects(cf, f);
1004
+ }
1005
+ ret.x -= f.x;
1006
+ ret.y -= f.y;
1007
+
1008
+ return ret;
1009
+ }.property('parentView', 'frame').cacheable(),
1010
+
1011
+ /** @private
1012
+ This method is invoked whenever the clippingFrame changes, notifying
1013
+ each child view that its clippingFrame has also changed.
1014
+ */
1015
+ _sc_view_clippingFrameDidChange: function() {
1016
+ var cvs = this.get('childViews'), len = cvs.length, idx, cv ;
1017
+ for (idx=0; idx<len; ++idx) {
1018
+ cv = cvs[idx] ;
1019
+
1020
+ cv.notifyPropertyChange('clippingFrame') ;
1021
+ cv._sc_view_clippingFrameDidChange();
1022
+ }
1023
+ },
1024
+
1025
+ /**
1026
+ Removes the child view from the parent view.
1027
+
1028
+ @param {SC.View} view
1029
+ @returns {SC.View} receiver
1030
+ */
1031
+ removeChild: function(view) {
1032
+ // update parent node
1033
+ view.set('parentView', null) ;
1034
+
1035
+ // remove view from childViews array.
1036
+ var childViews = this.get('childViews'),
1037
+ idx = childViews.indexOf(view) ;
1038
+ if (idx>=0) { childViews.removeAt(idx); }
1039
+
1040
+ return this ;
1041
+ },
1042
+
1043
+ /**
1044
+ Removes all children from the parentView.
1045
+
1046
+ @returns {SC.View} receiver
1047
+ */
1048
+ removeAllChildren: function() {
1049
+ var childViews = this.get('childViews'), view ;
1050
+ while (view = childViews.objectAt(childViews.get('length')-1)) {
1051
+ this.removeChild(view) ;
1052
+ }
1053
+ return this ;
1054
+ },
1055
+
1056
+ /**
1057
+ Removes the view from its parentView, if one is found. Otherwise
1058
+ does nothing.
1059
+
1060
+ @returns {SC.View} receiver
1061
+ */
1062
+ removeFromParent: function() {
1063
+ var parent = this.get('parentView') ;
1064
+ if (parent) { parent.removeChild(this) ; }
1065
+ return this ;
1066
+ },
1067
+
1068
+ /**
1069
+ You must call this method on a view to destroy the view (and all of its
1070
+ child views). This will remove the view from any parent node, then make
1071
+ sure that the DOM element managed by the view can be released by the
1072
+ memory manager.
1073
+ */
1074
+ destroy: function() {
1075
+ if (this.get('isDestroyed')) { return this; } // nothing to do
1076
+
1077
+ this._destroy(); // core destroy method
1078
+
1079
+ // remove from parent if found
1080
+ if (this.get('parentView')) { this.removeFromParent(); }
1081
+
1082
+ //Do generic destroy. It takes care of mixins and sets isDestroyed to YES.
1083
+ sc_super();
1084
+ return this; // done with cleanup
1085
+ },
1086
+
1087
+ _destroy: function() {
1088
+ if (this.get('isDestroyed')) { return this ; } // nothing to do
1089
+
1090
+ // destroy the layer -- this will avoid each child view destroying
1091
+ // the layer over and over again...
1092
+ this.destroyLayer() ;
1093
+
1094
+ // first destroy any children.
1095
+ var childViews = this.get('childViews'), len = childViews.length, idx ;
1096
+ if (len) {
1097
+ childViews = childViews.slice() ;
1098
+ for (idx=0; idx<len; ++idx) { childViews[idx].destroy() ; }
1099
+ }
1100
+
1101
+ // next remove view from global hash
1102
+ delete SC.View.views[this.get('layerId')] ;
1103
+ delete this._CQ ;
1104
+ delete this.page ;
1105
+
1106
+ return this ;
1107
+ },
1108
+
1109
+ /**
1110
+ This method is called when your view is first created to setup any child
1111
+ views that are already defined on your class. If any are found, it will
1112
+ instantiate them for you.
1113
+
1114
+ The default implementation of this method simply steps through your
1115
+ childViews array, which is expects to either be empty or to contain View
1116
+ designs that can be instantiated
1117
+
1118
+ Alternatively, you can implement this method yourself in your own
1119
+ subclasses to look for views defined on specific properties and then build
1120
+ a childViews array yourself.
1121
+
1122
+ Note that when you implement this method yourself, you should never
1123
+ instantiate views directly. Instead, you should use
1124
+ this.createChildView() method instead. This method can be much faster in
1125
+ a production environment than creating views yourself.
1126
+
1127
+ @returns {SC.View} receiver
1128
+ */
1129
+ createChildViews: function() {
1130
+ var childViews = this.get('childViews'),
1131
+ len = childViews.length,
1132
+ idx, key, views, view ;
1133
+
1134
+ this.beginPropertyChanges() ;
1135
+
1136
+ // swap the array
1137
+ for (idx=0; idx<len; ++idx) {
1138
+ if (key = (view = childViews[idx])) {
1139
+
1140
+ // is this is a key name, lookup view class
1141
+ if (typeof key === SC.T_STRING) {
1142
+ view = this[key];
1143
+ } else {
1144
+ key = null ;
1145
+ }
1146
+
1147
+ if (!view) {
1148
+ SC.Logger.error ("No view with name "+key+" has been found in "+this.toString());
1149
+ // skip this one.
1150
+ continue;
1151
+ }
1152
+
1153
+ // createChildView creates the view if necessary, but also sets
1154
+ // important properties, such as parentView
1155
+ view = this.createChildView(view) ;
1156
+ if (key) { this[key] = view ; } // save on key name if passed
1157
+ }
1158
+ childViews[idx] = view;
1159
+ }
1160
+
1161
+ this.endPropertyChanges() ;
1162
+ return this ;
1163
+ },
1164
+
1165
+ /**
1166
+ Instantiates a view to be added to the childViews array during view
1167
+ initialization. You generally will not call this method directly unless
1168
+ you are overriding createChildViews(). Note that this method will
1169
+ automatically configure the correct settings on the new view instance to
1170
+ act as a child of the parent.
1171
+
1172
+ @param {Class} viewClass
1173
+ @param {Hash} attrs optional attributes to add
1174
+ @returns {SC.View} new instance
1175
+ @test in createChildViews
1176
+ */
1177
+ createChildView: function(view, attrs) {
1178
+ if (!view.isClass) {
1179
+ attrs = view;
1180
+ } else {
1181
+ // attrs should always exist...
1182
+ if (!attrs) { attrs = {} ; }
1183
+ // clone the hash that was given so we dont pollute it if it's being reused
1184
+ else { attrs = SC.clone(attrs); }
1185
+ }
1186
+
1187
+ attrs.owner = attrs.parentView = this ;
1188
+
1189
+ // We need to set isVisibleInWindow before the init method is called on the view
1190
+ // The prototype check is a bit hackish and should be revisited - PDW
1191
+ if (view.isClass && view.prototype.hasVisibility) {
1192
+ attrs.isVisibleInWindow = this.get('isVisibleInWindow');
1193
+ }
1194
+
1195
+ if (!attrs.page) { attrs.page = this.page ; }
1196
+
1197
+ // Now add this to the attributes and create.
1198
+ if (view.isClass) { view = view.create(attrs); }
1199
+
1200
+ return view ;
1201
+ },
1202
+
1203
+ /** walk like a duck */
1204
+ isView: YES,
1205
+
1206
+ /**
1207
+ Default method called when a selectstart event is triggered. This event is
1208
+ only supported by IE. Used in sproutcore to disable text selection and
1209
+ IE8 accelerators. The accelerators will be enabled only in
1210
+ text selectable views. In FF and Safari we use the css style 'allow-select'.
1211
+
1212
+ If you want to enable text selection in certain controls is recommended
1213
+ to override this function to always return YES , instead of setting
1214
+ isTextSelectable to true.
1215
+
1216
+ For example in textfield you dont want to enable textSelection on the text
1217
+ hint only on the actual text you are entering. You can achieve that by
1218
+ only overriding this method.
1219
+
1220
+ @param evt {SC.Event} the selectstart event
1221
+ @returns YES if selectable
1222
+ */
1223
+ selectStart: function(evt) {
1224
+ return this.get('isTextSelectable');
1225
+ },
1226
+
1227
+ /**
1228
+ Used to block the contextMenu per view.
1229
+
1230
+ @param evt {SC.Event} the contextmenu event
1231
+ @returns YES if the contextmenu can show up
1232
+ */
1233
+ contextMenu: function(evt) {
1234
+ if (this.get('isContextMenuEnabled')) { return YES; }
1235
+ }
1236
+
1237
+ });
1238
+
1239
+ SC.CoreView.mixin(/** @scope SC.View.prototype */ {
1240
+
1241
+ /** @private walk like a duck -- used by SC.Page */
1242
+ isViewClass: YES,
1243
+
1244
+ /**
1245
+ This method works just like extend() except that it will also preserve
1246
+ the passed attributes in case you want to use a view builder later, if
1247
+ needed.
1248
+
1249
+ @param {Hash} attrs Attributes to add to view
1250
+ @returns {Class} SC.View subclass to create
1251
+ @function
1252
+ */
1253
+ design: function() {
1254
+ if (this.isDesign) {
1255
+ //@ if (debug)
1256
+ SC.Logger.warn("SC.View#design called twice for %@.".fmt(this));
1257
+ //@ endif
1258
+ return this;
1259
+ }
1260
+
1261
+ var ret = this.extend.apply(this, arguments);
1262
+ ret.isDesign = YES ;
1263
+ if (SC.ViewDesigner) {
1264
+ SC.ViewDesigner.didLoadDesign(ret, this, SC.A(arguments));
1265
+ }
1266
+ return ret ;
1267
+ },
1268
+
1269
+ extend: function() {
1270
+ var last = arguments[arguments.length - 1];
1271
+
1272
+ if (last && !SC.none(last.theme)) {
1273
+ last.themeName = last.theme;
1274
+ delete last.theme;
1275
+ }
1276
+
1277
+ return SC.Object.extend.apply(this, arguments);
1278
+ },
1279
+
1280
+ /**
1281
+ Helper applies the layout to the prototype.
1282
+ */
1283
+ layout: function(layout) {
1284
+ this.prototype.layout = layout ;
1285
+ return this ;
1286
+ },
1287
+
1288
+ /**
1289
+ Helper applies the classNames to the prototype
1290
+ */
1291
+ classNames: function(sc) {
1292
+ sc = (this.prototype.classNames || []).concat(sc);
1293
+ this.prototype.classNames = sc;
1294
+ return this ;
1295
+ },
1296
+
1297
+ /**
1298
+ Help applies the tagName
1299
+ */
1300
+ tagName: function(tg) {
1301
+ this.prototype.tagName = tg;
1302
+ return this ;
1303
+ },
1304
+
1305
+ /**
1306
+ Helper adds the childView
1307
+ */
1308
+ childView: function(cv) {
1309
+ var childViews = this.prototype.childViews || [];
1310
+ if (childViews === this.superclass.prototype.childViews) {
1311
+ childViews = childViews.slice();
1312
+ }
1313
+ childViews.push(cv) ;
1314
+ this.prototype.childViews = childViews;
1315
+ return this ;
1316
+ },
1317
+
1318
+ /**
1319
+ Helper adds a binding to a design
1320
+ */
1321
+ bind: function(keyName, path) {
1322
+ var p = this.prototype, s = this.superclass.prototype;
1323
+ var bindings = p._bindings ;
1324
+ if (!bindings || bindings === s._bindings) {
1325
+ bindings = p._bindings = (bindings || []).slice() ;
1326
+ }
1327
+
1328
+ keyName = keyName + "Binding";
1329
+ p[keyName] = path ;
1330
+ bindings.push(keyName);
1331
+
1332
+ return this ;
1333
+ },
1334
+
1335
+ /**
1336
+ Helper sets a generic property on a design.
1337
+ */
1338
+ prop: function(keyName, value) {
1339
+ this.prototype[keyName] = value;
1340
+ return this ;
1341
+ },
1342
+
1343
+ /**
1344
+ Used to construct a localization for a view. The default implementation
1345
+ will simply return the passed attributes.
1346
+ */
1347
+ localization: function(attrs, rootElement) {
1348
+ // add rootElement
1349
+ if (rootElement) attrs.rootElement = SC.$(rootElement)[0];
1350
+ return attrs;
1351
+ },
1352
+
1353
+ /**
1354
+ Creates a view instance, first finding the DOM element you name and then
1355
+ using that as the root element. You should not use this method very
1356
+ often, but it is sometimes useful if you want to attach to already
1357
+ existing HTML.
1358
+
1359
+ @param {String|Element} element
1360
+ @param {Hash} attrs
1361
+ @returns {SC.View} instance
1362
+ */
1363
+ viewFor: function(element, attrs) {
1364
+ var args = SC.$A(arguments); // prepare to edit
1365
+ if (SC.none(element)) {
1366
+ args.shift(); // remove if no element passed
1367
+ } else args[0] = { rootElement: SC.$(element)[0] } ;
1368
+ var ret = this.create.apply(this, arguments) ;
1369
+ args = args[0] = null;
1370
+ return ret ;
1371
+ },
1372
+
1373
+ /**
1374
+ Create a new view with the passed attributes hash. If you have the
1375
+ Designer module loaded, this will also create a peer designer if needed.
1376
+ */
1377
+ create: function() {
1378
+ var last = arguments[arguments.length - 1];
1379
+
1380
+ if (last && last.theme) {
1381
+ last.themeName = last.theme;
1382
+ delete last.theme;
1383
+ }
1384
+
1385
+ var C=this, ret = new C(arguments);
1386
+ if (SC.ViewDesigner) {
1387
+ SC.ViewDesigner.didCreateView(ret, SC.$A(arguments));
1388
+ }
1389
+ return ret ;
1390
+ },
1391
+
1392
+ /**
1393
+ Applies the passed localization hash to the component views. Call this
1394
+ method before you call create(). Returns the receiver. Typically you
1395
+ will do something like this:
1396
+
1397
+ view = SC.View.design({...}).loc(localizationHash).create();
1398
+
1399
+ @param {Hash} loc
1400
+ @param rootElement {String} optional rootElement with prepped HTML
1401
+ @returns {SC.View} receiver
1402
+ */
1403
+ loc: function(loc) {
1404
+ var childLocs = loc.childViews;
1405
+ delete loc.childViews; // clear out child views before applying to attrs
1406
+
1407
+ this.applyLocalizedAttributes(loc) ;
1408
+ if (SC.ViewDesigner) {
1409
+ SC.ViewDesigner.didLoadLocalization(this, SC.$A(arguments));
1410
+ }
1411
+
1412
+ // apply localization recursively to childViews
1413
+ var childViews = this.prototype.childViews, idx = childViews.length,
1414
+ viewClass;
1415
+ while(--idx>=0) {
1416
+ viewClass = childViews[idx];
1417
+ loc = childLocs[idx];
1418
+ if (loc && viewClass && typeof viewClass === SC.T_STRING) SC.String.loc(viewClass, loc);
1419
+ }
1420
+
1421
+ return this; // done!
1422
+ },
1423
+
1424
+ /**
1425
+ Internal method actually updates the localizated attributes on the view
1426
+ class. This is overloaded in design mode to also save the attributes.
1427
+ */
1428
+ applyLocalizedAttributes: function(loc) {
1429
+ SC.mixin(this.prototype, loc) ;
1430
+ },
1431
+
1432
+ views: {}
1433
+
1434
+ }) ;
1435
+
1436
+ // .......................................................
1437
+ // OUTLET BUILDER
1438
+ //
1439
+
1440
+ /**
1441
+ Generates a computed property that will look up the passed property path
1442
+ the first time you try to get the value. Use this whenever you want to
1443
+ define an outlet that points to another view or object. The root object
1444
+ used for the path will be the receiver.
1445
+ */
1446
+ SC.outlet = function(path, root) {
1447
+ return function(key) {
1448
+ return (this[key] = SC.objectForPropertyPath(path, (root !== undefined) ? root : this)) ;
1449
+ }.property();
1450
+ };
1451
+
1452
+ /** @private on unload clear cached divs. */
1453
+ SC.CoreView.unload = function() {
1454
+ // delete view items this way to ensure the views are cleared. The hash
1455
+ // itself may be owned by multiple view subclasses.
1456
+ var views = SC.View.views;
1457
+ if (views) {
1458
+ for(var key in views) {
1459
+ if (!views.hasOwnProperty(key)) continue ;
1460
+ delete views[key];
1461
+ }
1462
+ }
1463
+ } ;
1464
+
1465
+ /**
1466
+ @class
1467
+
1468
+ Base class for managing a view. Views provide two functions:
1469
+
1470
+ 1. They translate state and events into drawing instructions for the
1471
+ web browser and
1472
+ 2. They act as first responders for incoming keyboard, mouse, and
1473
+ touch events.
1474
+
1475
+ ## View Initialization
1476
+
1477
+ When a view is setup, there are several methods you can override that
1478
+ will be called at different times depending on how your view is created.
1479
+ Here is a guide to which method you want to override and when:
1480
+
1481
+ - `init` -- override this method for any general object setup (such as
1482
+ observers, starting timers and animations, etc) that you need to happen
1483
+ everytime the view is created, regardless of whether or not its layer
1484
+ exists yet.
1485
+ - `render` -- override this method to generate or update your HTML to reflect
1486
+ the current state of your view. This method is called both when your view
1487
+ is first created and later anytime it needs to be updated.
1488
+ - `didCreateLayer` -- the render() method is used to generate new HTML.
1489
+ Override this method to perform any additional setup on the DOM you might
1490
+ need to do after creating the view. For example, if you need to listen
1491
+ for events.
1492
+ - `willDestroyLayer` -- if you implement didCreateLayer() to setup event
1493
+ listeners, you should implement this method as well to remove the same
1494
+ just before the DOM for your view is destroyed.
1495
+ - `updateLayer` -- Normally, when a view needs to update its content, it will
1496
+ re-render the view using the render() method. If you would like to
1497
+ override this behavior with your own custom updating code, you can
1498
+ replace updateLayer() with your own implementation instead.
1499
+ - `didAppendToDocument` -- in theory all DOM setup could be done
1500
+ in didCreateLayer() as you already have a DOM element instantiated.
1501
+ However there is cases where the element has to be first appended to the
1502
+ Document because there is either a bug on the browser or you are using
1503
+ plugins which objects are not instantiated until you actually append the
1504
+ element to the DOM. This will allow you to do things like registering
1505
+ DOM events on flash or quicktime objects.
1506
+
1507
+ @extends SC.Responder
1508
+ @extends SC.DelegateSupport
1509
+ @since SproutCore 1.0
1510
+
1511
+ */
1512
+ SC.View = SC.CoreView.extend(/** @scope SC.View.prototype */{
1513
+ classNames: ['sc-view'],
1514
+
1515
+ displayProperties: ['isFirstResponder']
1516
+ });
1517
+
1518
+ //unload views for IE, trying to collect memory.
1519
+ if(SC.browser.msie) SC.Event.add(window, 'unload', SC.View, SC.View.unload) ;
1520
+
1521
+