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.
- data/README.txt +2 -2
- data/Rakefile +7 -0
- data/VERSION.yml +1 -1
- data/bin/sc-build +2 -2
- data/bin/sc-build-number +2 -2
- data/bin/sc-docs +2 -2
- data/bin/sc-gen +2 -2
- data/bin/sc-init +2 -2
- data/bin/sc-manifest +2 -2
- data/bin/sc-server +2 -2
- data/bin/sproutcore +2 -2
- data/lib/Buildfile +1 -1
- data/lib/buildtasks/build.rake +1 -1
- data/lib/buildtasks/entry.rake +1 -1
- data/lib/buildtasks/manifest.rake +1 -1
- data/lib/buildtasks/render.rake +1 -1
- data/lib/buildtasks/target.rake +1 -1
- data/lib/frameworks/sproutcore/Buildfile +1 -1
- data/lib/frameworks/sproutcore/CHANGELOG +32 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/main_page.js +1 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/views/simple_button.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/core.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +1 -1
- data/lib/frameworks/sproutcore/apps/welcome/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +76 -79
- data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +14 -15
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +26 -15
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/coders/design.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/coders/localization.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/coders/object.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_design.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_rule.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style_sheet.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/designers/button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/designers/label.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/designers/object_designer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/designers/tab.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/designers/text_field.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/designers/view_designer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/ext/object.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/ext/page.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/ext/view.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/designer/views/selection_handles.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +8 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +4 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/controller.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/object.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/object.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +44 -26
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/responder_context.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/main.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/pane.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/application.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/browser.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/builder.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cursor.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/datetime.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/device.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/event.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/system/json.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/locale.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/page.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/platform.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/render_context.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/responder.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/time.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/timer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/array_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/enum_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/null_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/selection_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/single_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/empty_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/multiple_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_enumerable_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/begin.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/element.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/get.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_attr.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_basic.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_className.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/init.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/push_text.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/tag.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/targetForAction.js +17 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/didAppendToDocument.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/view.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +4 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/delegate_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/observable_protocol.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/sparse_array_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/selection_set.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/sparse_array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/extras.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/utils.js +1 -1
- data/lib/frameworks/sproutcore/license.js +2 -2
- data/lib/gen/app/Buildfile +1 -1
- data/lib/gen/controller/Buildfile +1 -1
- data/lib/gen/data-source/Buildfile +1 -1
- data/lib/gen/design/Buildfile +1 -1
- data/lib/gen/framework/Buildfile +1 -1
- data/lib/gen/language/Buildfile +1 -1
- data/lib/gen/model/Buildfile +1 -1
- data/lib/gen/page/Buildfile +1 -1
- data/lib/gen/project/Buildfile +1 -1
- data/lib/gen/responder/Buildfile +1 -1
- data/lib/gen/test/Buildfile +1 -1
- data/lib/gen/theme/Buildfile +1 -1
- data/lib/gen/view/Buildfile +1 -1
- data/lib/sproutcore.rb +1 -1
- data/lib/sproutcore/builders/base.rb +1 -1
- data/lib/sproutcore/builders/bundle.rb +1 -1
- data/lib/sproutcore/builders/combine.rb +1 -1
- data/lib/sproutcore/builders/html.rb +1 -1
- data/lib/sproutcore/builders/javascript.rb +1 -1
- data/lib/sproutcore/builders/less.rb +1 -1
- data/lib/sproutcore/builders/minify.rb +1 -1
- data/lib/sproutcore/builders/sass.rb +1 -1
- data/lib/sproutcore/builders/strings.rb +1 -1
- data/lib/sproutcore/builders/stylesheet.rb +1 -1
- data/lib/sproutcore/builders/test.rb +1 -1
- data/lib/sproutcore/builders/test_index.rb +1 -1
- data/lib/sproutcore/buildfile.rb +1 -1
- data/lib/sproutcore/buildfile/build_task.rb +1 -1
- data/lib/sproutcore/buildfile/buildfile_dsl.rb +1 -1
- data/lib/sproutcore/buildfile/cloneable.rb +1 -1
- data/lib/sproutcore/buildfile/early_time.rb +1 -1
- data/lib/sproutcore/buildfile/invocation_chain.rb +1 -1
- data/lib/sproutcore/buildfile/namespace.rb +1 -1
- data/lib/sproutcore/buildfile/task.rb +1 -1
- data/lib/sproutcore/buildfile/task_arguments.rb +1 -1
- data/lib/sproutcore/buildfile/task_manager.rb +1 -1
- data/lib/sproutcore/deprecated/view_helper.rb +1 -1
- data/lib/sproutcore/helpers/capture_helper.rb +2 -2
- data/lib/sproutcore/helpers/cssmin.rb +1 -1
- data/lib/sproutcore/helpers/dom_id_helper.rb +1 -1
- data/lib/sproutcore/helpers/entry_sorter.rb +1 -1
- data/lib/sproutcore/helpers/html5_manifest.rb +1 -1
- data/lib/sproutcore/helpers/packed_optimizer.rb +1 -1
- data/lib/sproutcore/helpers/static_helper.rb +2 -2
- data/lib/sproutcore/helpers/tag_helper.rb +1 -1
- data/lib/sproutcore/helpers/text_helper.rb +1 -1
- data/lib/sproutcore/models/generator.rb +1 -1
- data/lib/sproutcore/models/hash_struct.rb +1 -1
- data/lib/sproutcore/models/manifest.rb +1 -1
- data/lib/sproutcore/models/manifest_entry.rb +1 -1
- data/lib/sproutcore/models/project.rb +1 -1
- data/lib/sproutcore/models/target.rb +1 -1
- data/lib/sproutcore/rack/builder.rb +1 -1
- data/lib/sproutcore/rack/dev.rb +1 -1
- data/lib/sproutcore/rack/docs.rb +1 -1
- data/lib/sproutcore/rack/filesystem.rb +1 -1
- data/lib/sproutcore/rack/proxy.rb +1 -1
- data/lib/sproutcore/rack/service.rb +1 -1
- data/lib/sproutcore/rack/test_runner.rb +1 -1
- data/lib/sproutcore/render_engines/erubis.rb +1 -1
- data/lib/sproutcore/render_engines/haml.rb +1 -1
- data/lib/sproutcore/tools.rb +1 -1
- data/lib/sproutcore/tools/build.rb +1 -1
- data/lib/sproutcore/tools/build_number.rb +1 -1
- data/lib/sproutcore/tools/docs.rb +1 -1
- data/lib/sproutcore/tools/gen.rb +1 -1
- data/lib/sproutcore/tools/init.rb +1 -1
- data/lib/sproutcore/tools/manifest.rb +1 -1
- data/lib/sproutcore/tools/server.rb +1 -1
- data/spec/lib/builders/bundle_spec.rb +2 -2
- data/sproutcore.gemspec +2 -2
- metadata +10 -9
- data/lib/frameworks/sproutcore/HISTORY +0 -697
- 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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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.
|
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.
|
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.
|
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.
|
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-
|
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-
|
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-
|
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-
|
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-
|
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[
|
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-
|
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-
|
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-
|
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-
|
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-
|
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
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
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-
|
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-
|
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
|
-
|
1207
|
-
|
1206
|
+
|
1207
|
+
if (storeKeys === undefined) {
|
1208
1208
|
isArray = SC.typeOf(recordTypes) === SC.T_ARRAY;
|
1209
1209
|
if (!isArray) recordType = recordTypes;
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
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
|
-
|
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
|
+
});
|