sproutcore 1.4.4-java → 1.4.5-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (468) hide show
  1. data/README.txt +2 -2
  2. data/Rakefile +7 -0
  3. data/VERSION.yml +1 -1
  4. data/bin/sc-build +2 -2
  5. data/bin/sc-build-number +2 -2
  6. data/bin/sc-docs +2 -2
  7. data/bin/sc-gen +2 -2
  8. data/bin/sc-init +2 -2
  9. data/bin/sc-manifest +2 -2
  10. data/bin/sc-server +2 -2
  11. data/bin/sproutcore +2 -2
  12. data/lib/Buildfile +1 -1
  13. data/lib/buildtasks/build.rake +1 -1
  14. data/lib/buildtasks/entry.rake +1 -1
  15. data/lib/buildtasks/manifest.rake +1 -1
  16. data/lib/buildtasks/render.rake +1 -1
  17. data/lib/buildtasks/target.rake +1 -1
  18. data/lib/frameworks/sproutcore/Buildfile +1 -1
  19. data/lib/frameworks/sproutcore/CHANGELOG +32 -0
  20. data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/main_page.js +1 -1
  21. data/lib/frameworks/sproutcore/apps/greenhouse/views/simple_button.js +1 -1
  22. data/lib/frameworks/sproutcore/apps/tests/core.js +1 -1
  23. data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +1 -1
  24. data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +1 -1
  25. data/lib/frameworks/sproutcore/apps/tests/states/ready.js +1 -1
  26. data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +1 -1
  27. data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +1 -1
  28. data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +1 -1
  29. data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +1 -1
  30. data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +1 -1
  31. data/lib/frameworks/sproutcore/apps/tests/states/start.js +1 -1
  32. data/lib/frameworks/sproutcore/apps/welcome/core.js +1 -1
  33. data/lib/frameworks/sproutcore/frameworks/animation/core.js +76 -79
  34. data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +1 -1
  35. data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +1 -1
  36. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
  37. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +1 -1
  38. data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +1 -1
  39. data/lib/frameworks/sproutcore/frameworks/datastore/core.js +1 -1
  40. data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +6 -6
  41. data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +1 -1
  42. data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +1 -1
  43. data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +1 -1
  44. data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +1 -1
  45. data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +2 -2
  46. data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +1 -1
  47. data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +1 -1
  48. data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +1 -1
  49. data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +1 -1
  50. data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +14 -15
  51. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +1 -1
  52. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +26 -15
  53. data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
  54. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +1 -1
  55. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +1 -1
  56. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +1 -1
  57. data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +1 -1
  58. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +41 -0
  59. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +37 -0
  60. data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
  61. data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
  62. data/lib/frameworks/sproutcore/frameworks/designer/coders/design.js +1 -1
  63. data/lib/frameworks/sproutcore/frameworks/designer/coders/localization.js +1 -1
  64. data/lib/frameworks/sproutcore/frameworks/designer/coders/object.js +1 -1
  65. data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_design.js +1 -1
  66. data/lib/frameworks/sproutcore/frameworks/designer/core.js +1 -1
  67. data/lib/frameworks/sproutcore/frameworks/designer/css/css_rule.js +1 -1
  68. data/lib/frameworks/sproutcore/frameworks/designer/css/css_style.js +1 -1
  69. data/lib/frameworks/sproutcore/frameworks/designer/css/css_style_sheet.js +1 -1
  70. data/lib/frameworks/sproutcore/frameworks/designer/designers/button.js +1 -1
  71. data/lib/frameworks/sproutcore/frameworks/designer/designers/label.js +1 -1
  72. data/lib/frameworks/sproutcore/frameworks/designer/designers/object_designer.js +1 -1
  73. data/lib/frameworks/sproutcore/frameworks/designer/designers/tab.js +1 -1
  74. data/lib/frameworks/sproutcore/frameworks/designer/designers/text_field.js +1 -1
  75. data/lib/frameworks/sproutcore/frameworks/designer/designers/view_designer.js +1 -1
  76. data/lib/frameworks/sproutcore/frameworks/designer/ext/object.js +1 -1
  77. data/lib/frameworks/sproutcore/frameworks/designer/ext/page.js +1 -1
  78. data/lib/frameworks/sproutcore/frameworks/designer/ext/view.js +1 -1
  79. data/lib/frameworks/sproutcore/frameworks/designer/mixins/button.js +1 -1
  80. data/lib/frameworks/sproutcore/frameworks/designer/views/selection_handles.js +1 -1
  81. data/lib/frameworks/sproutcore/frameworks/desktop/core.js +1 -1
  82. data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +1 -1
  83. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +1 -1
  84. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +1 -1
  85. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +3 -3
  86. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +1 -1
  87. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +1 -1
  88. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +1 -1
  89. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +1 -1
  90. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +1 -1
  91. data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +2 -2
  92. data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +1 -1
  93. data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +1 -1
  94. data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
  95. data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +2 -2
  96. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +1 -1
  97. data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
  98. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +1 -1
  99. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +1 -1
  100. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +1 -1
  101. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
  102. data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +1 -1
  103. data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +1 -1
  104. data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
  105. data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +1 -1
  106. data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +1 -1
  107. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +1 -1
  108. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +1 -1
  109. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +1 -1
  110. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +1 -1
  111. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +1 -1
  112. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +1 -1
  113. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +1 -1
  114. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +1 -1
  115. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +1 -1
  116. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +1 -1
  117. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +1 -1
  118. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +1 -1
  119. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +1 -1
  120. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +1 -1
  121. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +1 -1
  122. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +1 -1
  123. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +1 -1
  124. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +1 -1
  125. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +1 -1
  126. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +1 -1
  127. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +1 -1
  128. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +1 -1
  129. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +1 -1
  130. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +1 -1
  131. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +1 -1
  132. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +1 -1
  133. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +1 -1
  134. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +1 -1
  135. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +1 -1
  136. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +1 -1
  137. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +1 -1
  138. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +1 -1
  139. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +1 -1
  140. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +1 -1
  141. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +1 -1
  142. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +1 -1
  143. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +1 -1
  144. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +1 -1
  145. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +1 -1
  146. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +1 -1
  147. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +1 -1
  148. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +1 -1
  149. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +1 -1
  150. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +1 -1
  151. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +1 -1
  152. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +1 -1
  153. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +1 -1
  154. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +1 -1
  155. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +1 -1
  156. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +1 -1
  157. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +1 -1
  158. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +1 -1
  159. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +1 -1
  160. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +1 -1
  161. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +1 -1
  162. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +1 -1
  163. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +1 -1
  164. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +1 -1
  165. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +1 -1
  166. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +1 -1
  167. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +1 -1
  168. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +1 -1
  169. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +1 -1
  170. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +1 -1
  171. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +1 -1
  172. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +1 -1
  173. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +1 -1
  174. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +1 -1
  175. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +1 -1
  176. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -1
  177. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +1 -1
  178. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +1 -1
  179. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +1 -1
  180. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +1 -1
  181. data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +3 -3
  182. data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +1 -1
  183. data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +8 -5
  184. data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +1 -1
  185. data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +1 -1
  186. data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +1 -1
  187. data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +1 -1
  188. data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +1 -1
  189. data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +1 -1
  190. data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +1 -1
  191. data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +1 -1
  192. data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +1 -1
  193. data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +1 -1
  194. data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1 -1
  195. data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +1 -1
  196. data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +1 -1
  197. data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
  198. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +4 -1
  199. data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +1 -1
  200. data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +1 -1
  201. data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +1 -1
  202. data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +1 -1
  203. data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +1 -1
  204. data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +1 -1
  205. data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +1 -1
  206. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
  207. data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +1 -1
  208. data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +1 -1
  209. data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +1 -1
  210. data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +1 -1
  211. data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +1 -1
  212. data/lib/frameworks/sproutcore/frameworks/foundation/controllers/array.js +1 -1
  213. data/lib/frameworks/sproutcore/frameworks/foundation/controllers/controller.js +1 -1
  214. data/lib/frameworks/sproutcore/frameworks/foundation/controllers/object.js +1 -1
  215. data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +1 -1
  216. data/lib/frameworks/sproutcore/frameworks/foundation/core.js +1 -1
  217. data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +1 -1
  218. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +1 -1
  219. data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +1 -1
  220. data/lib/frameworks/sproutcore/frameworks/foundation/ext/object.js +1 -1
  221. data/lib/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +1 -1
  222. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +1 -1
  223. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +1 -1
  224. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +44 -26
  225. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +1 -1
  226. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +1 -1
  227. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +1 -1
  228. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/responder_context.js +1 -1
  229. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +1 -1
  230. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +1 -1
  231. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +1 -1
  232. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +1 -1
  233. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +1 -1
  234. data/lib/frameworks/sproutcore/frameworks/foundation/panes/main.js +1 -1
  235. data/lib/frameworks/sproutcore/frameworks/foundation/panes/pane.js +1 -1
  236. data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +1 -1
  237. data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +1 -1
  238. data/lib/frameworks/sproutcore/frameworks/foundation/system/application.js +1 -1
  239. data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +1 -1
  240. data/lib/frameworks/sproutcore/frameworks/foundation/system/browser.js +1 -1
  241. data/lib/frameworks/sproutcore/frameworks/foundation/system/builder.js +1 -1
  242. data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +1 -1
  243. data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +1 -1
  244. data/lib/frameworks/sproutcore/frameworks/foundation/system/cursor.js +1 -1
  245. data/lib/frameworks/sproutcore/frameworks/foundation/system/datetime.js +1 -1
  246. data/lib/frameworks/sproutcore/frameworks/foundation/system/device.js +1 -1
  247. data/lib/frameworks/sproutcore/frameworks/foundation/system/event.js +2 -2
  248. data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +1 -1
  249. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +3 -2
  250. data/lib/frameworks/sproutcore/frameworks/foundation/system/json.js +1 -1
  251. data/lib/frameworks/sproutcore/frameworks/foundation/system/locale.js +1 -1
  252. data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +1 -1
  253. data/lib/frameworks/sproutcore/frameworks/foundation/system/page.js +1 -1
  254. data/lib/frameworks/sproutcore/frameworks/foundation/system/platform.js +1 -1
  255. data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +1 -1
  256. data/lib/frameworks/sproutcore/frameworks/foundation/system/render_context.js +1 -1
  257. data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +1 -1
  258. data/lib/frameworks/sproutcore/frameworks/foundation/system/responder.js +1 -1
  259. data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +1 -1
  260. data/lib/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +3 -3
  261. data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +1 -1
  262. data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +1 -1
  263. data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +1 -1
  264. data/lib/frameworks/sproutcore/frameworks/foundation/system/time.js +1 -1
  265. data/lib/frameworks/sproutcore/frameworks/foundation/system/timer.js +1 -1
  266. data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +1 -1
  267. data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +1 -1
  268. data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +1 -1
  269. data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +1 -1
  270. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/array_case.js +1 -1
  271. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/enum_case.js +1 -1
  272. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/null_case.js +1 -1
  273. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/selection_support.js +1 -1
  274. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/single_case.js +1 -1
  275. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/empty_case.js +1 -1
  276. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/multiple_case.js +1 -1
  277. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_case.js +1 -1
  278. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_enumerable_case.js +1 -1
  279. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +1 -1
  280. data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +1 -1
  281. data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +1 -1
  282. data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +1 -1
  283. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +51 -0
  284. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +1 -1
  285. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +1 -1
  286. data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +1 -1
  287. data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +1 -1
  288. data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +1 -1
  289. data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +1 -1
  290. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/begin.js +1 -1
  291. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/element.js +1 -1
  292. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +1 -1
  293. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/get.js +1 -1
  294. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_attr.js +1 -1
  295. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_basic.js +1 -1
  296. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_className.js +1 -1
  297. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +1 -1
  298. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/init.js +1 -1
  299. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js +1 -1
  300. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/push_text.js +1 -1
  301. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/tag.js +1 -1
  302. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +1 -1
  303. data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/targetForAction.js +17 -4
  304. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +1 -1
  305. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +1 -1
  306. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +1 -1
  307. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +1 -1
  308. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +1 -1
  309. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +1 -1
  310. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/didAppendToDocument.js +1 -1
  311. data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +1 -1
  312. data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +1 -1
  313. data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +1 -1
  314. data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +1 -1
  315. data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +1 -1
  316. data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +1 -1
  317. data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +1 -1
  318. data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +1 -1
  319. data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +1 -1
  320. data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +1 -1
  321. data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +4 -4
  322. data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +1 -1
  323. data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +1 -1
  324. data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +1 -1
  325. data/lib/frameworks/sproutcore/frameworks/foundation/views/view.js +2 -2
  326. data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +4 -0
  327. data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +1 -1
  328. data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +1 -1
  329. data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +1 -1
  330. data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +1 -1
  331. data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +1 -1
  332. data/lib/frameworks/sproutcore/frameworks/media/views/video.js +1 -1
  333. data/lib/frameworks/sproutcore/frameworks/mini/license.js +1 -1
  334. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +1 -1
  335. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +1 -1
  336. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +1 -1
  337. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +1 -1
  338. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +1 -1
  339. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +1 -1
  340. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +1 -1
  341. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +1 -1
  342. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +1 -1
  343. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +1 -1
  344. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +1 -1
  345. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +1 -1
  346. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +1 -1
  347. data/lib/frameworks/sproutcore/frameworks/runtime/license.js +1 -1
  348. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +1 -1
  349. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +1 -1
  350. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +1 -1
  351. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/delegate_support.js +1 -1
  352. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1 -1
  353. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +1 -1
  354. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +2 -2
  355. data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +1 -1
  356. data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +1 -1
  357. data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +1 -1
  358. data/lib/frameworks/sproutcore/frameworks/runtime/protocols/observable_protocol.js +1 -1
  359. data/lib/frameworks/sproutcore/frameworks/runtime/protocols/sparse_array_delegate.js +1 -1
  360. data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1 -1
  361. data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +1 -1
  362. data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +1 -1
  363. data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1 -1
  364. data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +5 -1
  365. data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +1 -1
  366. data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +1 -1
  367. data/lib/frameworks/sproutcore/frameworks/runtime/system/selection_set.js +1 -1
  368. data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +1 -1
  369. data/lib/frameworks/sproutcore/frameworks/runtime/system/sparse_array.js +1 -1
  370. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +1 -1
  371. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +1 -1
  372. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +1 -1
  373. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +1 -1
  374. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +1 -1
  375. data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +1 -1
  376. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +1 -1
  377. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +1 -1
  378. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +14 -0
  379. data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +1 -1
  380. data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +1 -1
  381. data/lib/frameworks/sproutcore/frameworks/table/views/table.js +1 -1
  382. data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +1 -1
  383. data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +1 -1
  384. data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +1 -1
  385. data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +1 -1
  386. data/lib/frameworks/sproutcore/frameworks/testing/core.js +1 -1
  387. data/lib/frameworks/sproutcore/frameworks/testing/extras.js +1 -1
  388. data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +1 -1
  389. data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +1 -1
  390. data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +1 -1
  391. data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +1 -1
  392. data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +1 -1
  393. data/lib/frameworks/sproutcore/frameworks/testing/utils.js +1 -1
  394. data/lib/frameworks/sproutcore/license.js +2 -2
  395. data/lib/gen/app/Buildfile +1 -1
  396. data/lib/gen/controller/Buildfile +1 -1
  397. data/lib/gen/data-source/Buildfile +1 -1
  398. data/lib/gen/design/Buildfile +1 -1
  399. data/lib/gen/framework/Buildfile +1 -1
  400. data/lib/gen/language/Buildfile +1 -1
  401. data/lib/gen/model/Buildfile +1 -1
  402. data/lib/gen/page/Buildfile +1 -1
  403. data/lib/gen/project/Buildfile +1 -1
  404. data/lib/gen/responder/Buildfile +1 -1
  405. data/lib/gen/test/Buildfile +1 -1
  406. data/lib/gen/theme/Buildfile +1 -1
  407. data/lib/gen/view/Buildfile +1 -1
  408. data/lib/sproutcore.rb +1 -1
  409. data/lib/sproutcore/builders/base.rb +1 -1
  410. data/lib/sproutcore/builders/bundle.rb +1 -1
  411. data/lib/sproutcore/builders/combine.rb +1 -1
  412. data/lib/sproutcore/builders/html.rb +1 -1
  413. data/lib/sproutcore/builders/javascript.rb +1 -1
  414. data/lib/sproutcore/builders/less.rb +1 -1
  415. data/lib/sproutcore/builders/minify.rb +1 -1
  416. data/lib/sproutcore/builders/sass.rb +1 -1
  417. data/lib/sproutcore/builders/strings.rb +1 -1
  418. data/lib/sproutcore/builders/stylesheet.rb +1 -1
  419. data/lib/sproutcore/builders/test.rb +1 -1
  420. data/lib/sproutcore/builders/test_index.rb +1 -1
  421. data/lib/sproutcore/buildfile.rb +1 -1
  422. data/lib/sproutcore/buildfile/build_task.rb +1 -1
  423. data/lib/sproutcore/buildfile/buildfile_dsl.rb +1 -1
  424. data/lib/sproutcore/buildfile/cloneable.rb +1 -1
  425. data/lib/sproutcore/buildfile/early_time.rb +1 -1
  426. data/lib/sproutcore/buildfile/invocation_chain.rb +1 -1
  427. data/lib/sproutcore/buildfile/namespace.rb +1 -1
  428. data/lib/sproutcore/buildfile/task.rb +1 -1
  429. data/lib/sproutcore/buildfile/task_arguments.rb +1 -1
  430. data/lib/sproutcore/buildfile/task_manager.rb +1 -1
  431. data/lib/sproutcore/deprecated/view_helper.rb +1 -1
  432. data/lib/sproutcore/helpers/capture_helper.rb +2 -2
  433. data/lib/sproutcore/helpers/cssmin.rb +1 -1
  434. data/lib/sproutcore/helpers/dom_id_helper.rb +1 -1
  435. data/lib/sproutcore/helpers/entry_sorter.rb +1 -1
  436. data/lib/sproutcore/helpers/html5_manifest.rb +1 -1
  437. data/lib/sproutcore/helpers/packed_optimizer.rb +1 -1
  438. data/lib/sproutcore/helpers/static_helper.rb +2 -2
  439. data/lib/sproutcore/helpers/tag_helper.rb +1 -1
  440. data/lib/sproutcore/helpers/text_helper.rb +1 -1
  441. data/lib/sproutcore/models/generator.rb +1 -1
  442. data/lib/sproutcore/models/hash_struct.rb +1 -1
  443. data/lib/sproutcore/models/manifest.rb +1 -1
  444. data/lib/sproutcore/models/manifest_entry.rb +1 -1
  445. data/lib/sproutcore/models/project.rb +1 -1
  446. data/lib/sproutcore/models/target.rb +1 -1
  447. data/lib/sproutcore/rack/builder.rb +1 -1
  448. data/lib/sproutcore/rack/dev.rb +1 -1
  449. data/lib/sproutcore/rack/docs.rb +1 -1
  450. data/lib/sproutcore/rack/filesystem.rb +1 -1
  451. data/lib/sproutcore/rack/proxy.rb +1 -1
  452. data/lib/sproutcore/rack/service.rb +1 -1
  453. data/lib/sproutcore/rack/test_runner.rb +1 -1
  454. data/lib/sproutcore/render_engines/erubis.rb +1 -1
  455. data/lib/sproutcore/render_engines/haml.rb +1 -1
  456. data/lib/sproutcore/tools.rb +1 -1
  457. data/lib/sproutcore/tools/build.rb +1 -1
  458. data/lib/sproutcore/tools/build_number.rb +1 -1
  459. data/lib/sproutcore/tools/docs.rb +1 -1
  460. data/lib/sproutcore/tools/gen.rb +1 -1
  461. data/lib/sproutcore/tools/init.rb +1 -1
  462. data/lib/sproutcore/tools/manifest.rb +1 -1
  463. data/lib/sproutcore/tools/server.rb +1 -1
  464. data/spec/lib/builders/bundle_spec.rb +2 -2
  465. data/sproutcore.gemspec +2 -2
  466. metadata +10 -9
  467. data/lib/frameworks/sproutcore/HISTORY +0 -697
  468. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/video.css +0 -3
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -94,7 +94,7 @@ SC.CascadeDataSource = SC.DataSource.extend(
94
94
 
95
95
  for(idx=0; (ret !== YES) && idx<len; idx++) {
96
96
  source = sources.objectAt(idx);
97
- cur = source.fetch ? source.fetch.call(source, store, query) : NO;
97
+ cur = source.fetch ? source.fetch.apply(source, arguments) : NO;
98
98
  ret = this._handleResponse(ret, cur);
99
99
  }
100
100
 
@@ -103,7 +103,7 @@ SC.CascadeDataSource = SC.DataSource.extend(
103
103
 
104
104
 
105
105
  /** @private - just cascades */
106
- retrieveRecords: function(store, storeKeys) {
106
+ retrieveRecords: function(store, storeKeys, ids) {
107
107
  var sources = this.get('dataSources'),
108
108
  len = sources ? sources.length : 0,
109
109
  ret = NO,
@@ -111,7 +111,7 @@ SC.CascadeDataSource = SC.DataSource.extend(
111
111
 
112
112
  for(idx=0; (ret !== YES) && idx<len; idx++) {
113
113
  source = sources.objectAt(idx);
114
- cur = source.retrieveRecords.call(source, store, storeKeys);
114
+ cur = source.retrieveRecords.apply(source, arguments);
115
115
  ret = this._handleResponse(ret, cur);
116
116
  }
117
117
 
@@ -127,7 +127,7 @@ SC.CascadeDataSource = SC.DataSource.extend(
127
127
 
128
128
  for(idx=0; (ret !== YES) && idx<len; idx++) {
129
129
  source = sources.objectAt(idx);
130
- cur = source.commitRecords.call(source, store, createStoreKeys, updateStoreKeys, destroyStoreKeys);
130
+ cur = source.commitRecords.apply(source, arguments);
131
131
  ret = this._handleResponse(ret, cur);
132
132
  }
133
133
 
@@ -143,7 +143,7 @@ SC.CascadeDataSource = SC.DataSource.extend(
143
143
 
144
144
  for(idx=0; (ret !== YES) && idx<len; idx++) {
145
145
  source = sources.objectAt(idx);
146
- cur = source.cancel.call(source, store, storeKeys);
146
+ cur = source.cancel.apply(source, arguments);
147
147
  ret = this._handleResponse(ret, cur);
148
148
  }
149
149
 
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -513,7 +513,7 @@ SC.Record = SC.Object.extend(
513
513
  attrValue.normalize();
514
514
  }
515
515
  } else if (isRecord) {
516
- attrValue = recHash[key];
516
+ attrValue = recHash[keyForDataHash];
517
517
  if (attrValue !== undefined) {
518
518
  // write value already there
519
519
  dataHash[keyForDataHash] = attrValue;
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -755,20 +755,19 @@ SC.Query = SC.Object.extend(SC.Copyable, SC.Freezable,
755
755
  evaluate: function (r,w) {
756
756
  var all = this.leftSide.evaluate(r,w) || [];
757
757
  var value = this.rightSide.evaluate(r,w);
758
- switch(SC.typeOf(all)) {
759
- case SC.T_STRING:
760
- return (all.indexOf(value) !== -1);
761
- case SC.T_ARRAY:
762
- var found = false;
763
- var i = 0;
764
- while ( found===false && i<all.length ) {
765
- if ( value == all[i] ) found = true;
766
- i++;
767
- }
768
- return found;
769
- default:
770
- //do nothing
771
- break;
758
+
759
+ var allType = SC.typeOf(all);
760
+ if (allType === SC.T_STRING) {
761
+ return (all.indexOf(value) !== -1);
762
+ } else if (allType === SC.T_ARRAY || all.toArray) {
763
+ if (allType !== SC.T_ARRAY) all = all.toArray();
764
+ var found = false;
765
+ var i = 0;
766
+ while ( found===false && i<all.length ) {
767
+ if ( value == all[i] ) found = true;
768
+ i++;
769
+ }
770
+ return found;
772
771
  }
773
772
  }
774
773
  },
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1,6 +1,6 @@
1
1
  // ==========================================================================
2
2
  // Project: SproutCore - JavaScript Application Framework
3
- // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
3
+ // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
4
  // Portions ©2008-2010 Apple Inc. All rights reserved.
5
5
  // License: Licensed under MIT license (see license.js)
6
6
  // ==========================================================================
@@ -1185,7 +1185,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
1185
1185
  Unloads a group of records. If you have a set of record ids, unloading
1186
1186
  them this way can be faster than retrieving each record and unloading
1187
1187
  it individually.
1188
-
1188
+
1189
1189
  You can pass either a single recordType or an array of recordTypes. If
1190
1190
  you pass a single recordType, then the record type will be used for each
1191
1191
  record. If you pass an array, then each id must have a matching record
@@ -1195,33 +1195,44 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
1195
1195
  and ids. In this case the first two parameters will be ignored. This
1196
1196
  is usually only used by low-level internal methods. You will not usually
1197
1197
  unload records this way.
1198
-
1198
+
1199
1199
  @param {SC.Record|Array} recordTypes class or array of classes
1200
- @param {Array} ids ids to unload
1200
+ @param {Array} ids (optional) ids to unload
1201
1201
  @param {Array} storeKeys (optional) store keys to unload
1202
1202
  @returns {SC.Store} receiver
1203
1203
  */
1204
1204
  unloadRecords: function(recordTypes, ids, storeKeys, newStatus) {
1205
1205
  var len, isArray, idx, id, recordType, storeKey;
1206
- if(storeKeys===undefined){
1207
- len = ids.length;
1206
+
1207
+ if (storeKeys === undefined) {
1208
1208
  isArray = SC.typeOf(recordTypes) === SC.T_ARRAY;
1209
1209
  if (!isArray) recordType = recordTypes;
1210
- for(idx=0;idx<len;idx++) {
1211
- if (isArray) recordType = recordTypes[idx] || SC.Record;
1212
- id = ids ? ids[idx] : undefined ;
1213
- this.unloadRecord(recordType, id, undefined, newStatus);
1210
+ if (ids === undefined) {
1211
+ len = isArray ? recordTypes.length : 1;
1212
+ for (idx = 0; idx < len; idx++) {
1213
+ if (isArray) recordType = recordTypes[idx];
1214
+ storeKeys = this.storeKeysFor(recordType);
1215
+ this.unloadRecords(undefined, undefined, storeKeys, newStatus);
1216
+ }
1217
+ } else {
1218
+ len = ids.length;
1219
+ for (idx = 0; idx < len; idx++) {
1220
+ if (isArray) recordType = recordTypes[idx] || SC.Record;
1221
+ id = ids ? ids[idx] : undefined;
1222
+ this.unloadRecord(recordType, id, undefined, newStatus);
1223
+ }
1214
1224
  }
1215
- }else{
1225
+ } else {
1216
1226
  len = storeKeys.length;
1217
- for(idx=0;idx<len;idx++) {
1218
- storeKey = storeKeys ? storeKeys[idx] : undefined ;
1227
+ for (idx = 0; idx < len; idx++) {
1228
+ storeKey = storeKeys ? storeKeys[idx] : undefined;
1219
1229
  this.unloadRecord(undefined, undefined, storeKey, newStatus);
1220
1230
  }
1221
1231
  }
1222
- return this ;
1232
+
1233
+ return this;
1223
1234
  },
1224
-
1235
+
1225
1236
  /**
1226
1237
  Destroys a record, removing the data hash from the store and adding the
1227
1238
  record to the destroyed changelog. If you try to destroy a record that is
@@ -0,0 +1,133 @@
1
+ // ==========================================================================
2
+ // Project: SproutCore - JavaScript Application Framework
3
+ // Copyright: ©2006-2010 Apple Inc. and contributors.
4
+ // License: Licensed under MIT license (see license.js)
5
+ // ==========================================================================
6
+ /*globals module ok equals same test Sample */
7
+
8
+ var store;
9
+
10
+ module("SC.CascadeDataSource", {
11
+ setup: function () {
12
+ SC.RunLoop.begin();
13
+
14
+ var Sample = (window.Sample = SC.Object.create());
15
+
16
+ Sample.FooDataSource = SC.DataSource.extend({
17
+ commitRecords: function (st, createStoreKeys, updateStoreKeys, destroyStoreKeys, params) {
18
+ equals(store, st, "should equal store");
19
+ equals(0, createStoreKeys[0], "should equal [0]");
20
+ equals(1, updateStoreKeys[0], "should equal [1]");
21
+ equals(2, destroyStoreKeys[0], "should equal [2]");
22
+ equals('world', params.hello, 'should equal { hello: "world" }');
23
+ return YES;
24
+ },
25
+
26
+ retriveRecords: function () {
27
+ ok(true, "retriveRecords should be handled by baz");
28
+ return NO;
29
+ },
30
+
31
+ fetch: function (store, query) {
32
+ ok(true, "fetch should be handled by bar");
33
+ return NO;
34
+ },
35
+
36
+ cancel: function (st, storeKeys) {
37
+ equals(store, st, "should equal store");
38
+ equals(1, storeKeys[0], "should equal [1]");
39
+ return NO;
40
+ }
41
+ });
42
+ Sample.fooDataSource = Sample.FooDataSource.create();
43
+
44
+ Sample.BarDataSource = SC.DataSource.extend({
45
+ commitRecords: function () {
46
+ ok(false, "should never be called, since foo handles commitRecords first");
47
+ return NO;
48
+ },
49
+
50
+ retriveRecords: function () {
51
+ ok(true, "retriveRecords should be handled by baz");
52
+ return NO;
53
+ },
54
+
55
+ fetch: function (st, query) {
56
+ equals(store, st, "should equal store");
57
+ equals('query', query, "should equal 'query'");
58
+ return YES;
59
+ }
60
+ });
61
+ Sample.barDataSource = Sample.BarDataSource.create();
62
+
63
+ Sample.BazDataSource = SC.DataSource.extend({
64
+ commitRecords: function () {
65
+ ok(false, "should never be called, since foo handles commitRecords first");
66
+ return NO;
67
+ },
68
+
69
+ retrieveRecords: function (st, storeKeys, ids) {
70
+ equals(store, st, "should equal store");
71
+ equals(0, storeKeys[0], "should equal [0]");
72
+ equals("id", ids[0], 'should equal ["id"]');
73
+ return YES;
74
+ },
75
+
76
+ fetch: function () {
77
+ ok(false, "should never be called, since bar handles fetch first");
78
+ return NO;
79
+ }
80
+ });
81
+ Sample.bazDataSource = Sample.BazDataSource.create();
82
+
83
+ Sample.dataSource = SC.CascadeDataSource.create({
84
+ dataSources: "foo bar baz".w(),
85
+
86
+ foo: Sample.fooDataSource,
87
+ bar: Sample.barDataSource,
88
+ baz: Sample.bazDataSource
89
+ });
90
+
91
+ store = SC.Store.create({ dataSource: Sample.dataSource });
92
+ },
93
+
94
+ teardown: function () {
95
+ SC.RunLoop.end();
96
+ }
97
+ });
98
+
99
+ test("Verify dataSources points to the actual dataSource", function () {
100
+ var dataSource = Sample.dataSource;
101
+ equals(dataSource.dataSources[0], dataSource.foo, 'should equal data source foo');
102
+ equals(dataSource.dataSources[1], dataSource.bar, 'should equal data source bar');
103
+ equals(dataSource.dataSources[2], dataSource.baz, 'should equal data source baz');
104
+ });
105
+
106
+ test("Verify dataSources added using 'from' are appended in order", function () {
107
+ Sample.dataSource = SC.CascadeDataSource.create()
108
+ .from(Sample.fooDataSource)
109
+ .from(Sample.barDataSource)
110
+ .from(Sample.bazDataSource);
111
+
112
+ var dataSource = Sample.dataSource;
113
+ equals(dataSource.dataSources[0], Sample.fooDataSource, 'should equal data source foo');
114
+ equals(dataSource.dataSources[1], Sample.barDataSource, 'should equal data source bar');
115
+ equals(dataSource.dataSources[2], Sample.bazDataSource, 'should equal data source baz');
116
+ });
117
+
118
+ test("Verify dataSource returns 'YES' when handled by a child dataSource for commitRecords", function () {
119
+ ok(Sample.dataSource.commitRecords(store, [0], [1], [2], { hello: "world" }),
120
+ "commitRecords should be handled by foo");
121
+ });
122
+
123
+ test("Verify dataSource returns 'YES' when handled by a child dataSource for fetch", function () {
124
+ ok(Sample.dataSource.fetch(store, 'query'), "fetch should be handled by bar");
125
+ });
126
+
127
+ test("Verify dataSource returns 'YES' when handled by a child dataSource for retriveRecords", function () {
128
+ ok(Sample.dataSource.retrieveRecords(store, [0], ['id']), "retrieveRecords should be handled by baz");
129
+ });
130
+
131
+ test("Verify dataSource returns 'NO' when not handled by a child dataSource", function () {
132
+ ok(!Sample.dataSource.cancel(store, [1]), "cancel should be handled by no data source");
133
+ });