sproutcore 1.4.5 → 1.5.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +35 -0
- data/VERSION.yml +2 -2
- data/lib/Buildfile +13 -4
- data/lib/buildtasks/build.rake +20 -17
- data/lib/buildtasks/manifest.rake +143 -78
- data/lib/buildtasks/target.rake +1 -0
- data/lib/doc_templates/sproutcore/index.tmpl +18 -4
- data/lib/doc_templates/sproutcore/publish.js +1 -1
- data/lib/frameworks/sproutcore/Buildfile +24 -13
- data/lib/frameworks/sproutcore/{CHANGELOG-1.4.md → CHANGELOG.md} +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/file.js +8 -48
- data/lib/frameworks/sproutcore/apps/greenhouse/core.js +3 -5
- data/lib/frameworks/sproutcore/apps/greenhouse/data_source.js +1 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +26 -4
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +7 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/main.js +1 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/models/design.js +6 -2
- data/lib/frameworks/sproutcore/apps/greenhouse/models/dir.js +8 -7
- data/lib/frameworks/sproutcore/apps/greenhouse/models/file.js +2 -2
- data/lib/frameworks/sproutcore/apps/greenhouse/states/inspector.js +133 -125
- data/lib/frameworks/sproutcore/apps/greenhouse/states/library.js +121 -112
- data/lib/frameworks/sproutcore/apps/greenhouse/states/main.js +233 -191
- data/lib/frameworks/sproutcore/apps/greenhouse/states/modals.js +265 -258
- data/lib/frameworks/sproutcore/apps/greenhouse/states/ready.js +153 -141
- data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +108 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +36 -0
- data/lib/frameworks/sproutcore/apps/test_controls/core.js +29 -0
- data/lib/frameworks/sproutcore/apps/test_controls/main.js +14 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +142 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +45 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +84 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +144 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +42 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +48 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +76 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +98 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +44 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +41 -0
- data/lib/frameworks/sproutcore/apps/test_controls/theme.js +34 -0
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +7 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +24 -6
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +36 -46
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/controllers/array.js +175 -195
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/controllers/controller.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/controllers/object.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/core.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/ext/object.js +23 -23
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/ext/run_loop.js +47 -47
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/mixins/delegate_support.js +36 -36
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/mixins/responder_context.js +55 -55
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/mixins/selection_support.js +45 -45
- data/lib/frameworks/sproutcore/frameworks/amber/mixins/string.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/panes/main.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/panes/pane.js +123 -9
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/protocols/observable_protocol.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/protocols/sparse_array_delegate.js +40 -40
- data/lib/frameworks/sproutcore/frameworks/{foundation/english.lproj → amber/resources}/core.css +0 -103
- data/lib/frameworks/sproutcore/frameworks/{foundation/english.lproj → amber/resources}/view.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/application.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/browser.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/builder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/system/core_query.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/cursor.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/device.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/event.js +34 -14
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/json.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/locale.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/platform.js +30 -10
- data/lib/frameworks/sproutcore/frameworks/amber/system/ready.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/render_context.js +330 -255
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/responder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/root_responder.js +152 -60
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/system/selection_set.js +140 -145
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/system/sparse_array.js +101 -87
- data/lib/frameworks/sproutcore/frameworks/amber/system/theme.js +316 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/system/timer.js +149 -147
- data/lib/frameworks/sproutcore/frameworks/amber/system/utils.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/amber/system/utils/rect.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/array_case.js +41 -41
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/enum_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/null_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/selection_support.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/array/single_case.js +9 -9
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/empty_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/multiple_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/single_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/controllers/object/single_enumerable_case.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/mixins/responder_context.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/mixins/string.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/builder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/core_query/within.js +7 -8
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/json.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/locale.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/begin.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/element.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/end.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/get.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_attr.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_basic.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_className.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/helpers_style.js +11 -3
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/init.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/join.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/push_text.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/tag.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/render_context/update.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/makeKeyPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/makeMainPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/makeMenuPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/root_responder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/root_responder/targetForAction.js +46 -9
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/add.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/copy.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/indexSetForSource.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/isEqual.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/selection_set/remove.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{runtime → amber}/tests/system/sparse_array.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/system/theme.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/invalidate.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/invokeLater.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/isPaused.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/performAction.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/timer/schedule.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/utils/normalizeURL.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/system/utils/rect.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/main_pane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/append_remove.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/firstResponder.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/keyPane.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/layout.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/pane/sendEvent.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/pane/sendTouchEvent.js +267 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/animation.js +320 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/build.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/build_children.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/clippingFrame.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/convertFrames.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/convertLayouts.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/createChildViews.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/createLayer.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/destroyLayer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/didAppendToDocument.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/findLayerInParentLayer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/init.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/insertBefore.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/isVisible.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/isVisibleInWindow.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layoutChildViews.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layoutDidChange.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/layoutStyle.js +135 -64
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/parentViewDidChange.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/prepareContext.js +16 -8
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/removeChild.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/render.js +37 -5
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/render_delegate_support.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/replaceChild.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/theme.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/updateLayer.js +12 -10
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/updateLayerLocation.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/tests/views/view/view.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/tests/views/view/viewDidResize.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/amber/views/base.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/amber/views/layout_style.js +478 -0
- data/lib/frameworks/sproutcore/frameworks/{foundation → amber}/views/view.js +1719 -1029
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +32 -18
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +10 -5
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +24 -17
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +1 -13
- data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +72 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +7 -3
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +66 -4
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +4 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +58 -10
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +5 -14
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +4 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +27 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +5 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +30 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +20 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +9 -27
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +32 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +57 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +175 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +79 -53
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +7 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +45 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +33 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +11 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +128 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +10 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +35 -15
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +153 -208
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +18 -48
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +26 -25
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +3 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +3 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +388 -309
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +257 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +8 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +237 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +181 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +14 -76
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +59 -164
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +80 -47
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +320 -289
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +212 -76
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +33 -36
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +347 -248
- 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/toolbar.js +41 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +2 -21
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +251 -0
- data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/default_styles.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/edit_mode.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/emptiness.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/forms/renderer_delegates/form.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/forms/renderer_delegates/form_row.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_label.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_radio_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_row.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_text_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/views/form.js +280 -0
- data/lib/frameworks/sproutcore/frameworks/forms/views/form_row.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +0 -150
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +2 -14
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +4 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +24 -26
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +244 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +68 -23
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +8 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +626 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +25 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +57 -209
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +7 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +360 -156
- data/lib/frameworks/sproutcore/frameworks/{runtime → foundation}/system/cookie.js +35 -35
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +19 -2012
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +3 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/{image_cache.js → image_queue.js} +19 -22
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +576 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +19 -22
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +73 -61
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +122 -23
- data/lib/frameworks/sproutcore/frameworks/foundation/system/staticqueue.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +18 -15
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +82 -90
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/colors.js +80 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/range.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +247 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/string.js +2 -57
- data/lib/frameworks/sproutcore/frameworks/{runtime → foundation}/tests/system/cookie.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +13 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/request.js +99 -49
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/routes.js +24 -20
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +9 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +31 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +454 -44
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +10 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/{view → text_field}/nextValidKeyView.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +9 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +381 -105
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +44 -171
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +69 -16
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +376 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +7179 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +1 -2
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +29 -28
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +366 -333
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +73 -73
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +29 -28
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +160 -150
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +9 -9
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +15 -15
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +228 -220
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +27 -27
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +355 -305
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +32 -32
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +53 -51
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +49 -106
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +252 -252
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +22 -22
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +31 -31
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +234 -234
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +167 -157
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +84 -85
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +104 -91
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +102 -98
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +19 -49
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +53 -126
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +62 -33
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +41 -5
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +133 -98
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +71 -45
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +3 -9
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +636 -99
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +951 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/async.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced_event_handling.js +310 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/namespace/access_substates.js +252 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/is_current_state.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_history_state.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_advanced.js +234 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_async.js +123 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_basic.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_intermediate.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/with_concurrent_states/send_event.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/default_responder.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_history_state.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state.js +256 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state_async.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/send_event.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/state_plugin.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/without_concurrent_states/transient.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +2 -1
- data/lib/frameworks/sproutcore/lib/index.rhtml +24 -1
- data/lib/frameworks/sproutcore/license.js +31 -30
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/body.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/button.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/button.css +84 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/button.css +66 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/button.css +34 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/button.css +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/button.js +69 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/button.css +84 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/button.css +66 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +20 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/loading.css +50 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +76 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.js +20 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/progress.js +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio.css +63 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/segmented.css +79 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.js +48 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +5 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/tab/tab.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.js +19 -0
- data/lib/frameworks/sproutcore/themes/ace/theme.js +14 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/segmented.css +16 -21
- data/lib/sproutcore.rb +9 -2
- data/lib/sproutcore/builders.rb +2 -1
- data/lib/sproutcore/builders/base.rb +7 -2
- data/lib/sproutcore/builders/combine.rb +49 -1
- data/lib/sproutcore/builders/html.rb +2 -0
- data/lib/sproutcore/builders/javascript.rb +1 -1
- data/lib/sproutcore/builders/minify.rb +12 -12
- data/lib/sproutcore/builders/module.rb +72 -0
- data/lib/sproutcore/builders/string_wrapper.rb +43 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +5 -9
- data/lib/sproutcore/helpers/static_helper.rb +13 -9
- data/lib/sproutcore/models/manifest_entry.rb +2 -2
- data/lib/sproutcore/models/target.rb +25 -11
- data/lib/sproutcore/rack/dev.rb +3 -3
- data/lib/sproutcore/tools.rb +51 -2
- data/lib/sproutcore/tools/build.rb +35 -7
- data/lib/sproutcore/version.rb +1 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/bundle_spec.rb +5 -5
- data/spec/fixtures/builder_tests/Buildfile +2 -2
- data/spec/lib/builders/bundle_spec.rb +8 -8
- data/spec/lib/builders/strings_spec.rb +1 -0
- data/sproutcore.gemspec +9 -2
- data/vendor/chance/.gitignore +5 -0
- data/vendor/chance/Gemfile +4 -0
- data/vendor/chance/Rakefile +2 -0
- data/vendor/chance/bin/chance +72 -0
- data/vendor/chance/chance.gemspec +28 -0
- data/vendor/chance/lib/chance.rb +139 -0
- data/vendor/chance/lib/chance/imager.rb +13 -0
- data/vendor/chance/lib/chance/imagers/data_url.rb +34 -0
- data/vendor/chance/lib/chance/importer.rb +64 -0
- data/vendor/chance/lib/chance/instance.rb +225 -0
- data/vendor/chance/lib/chance/parser.rb +831 -0
- data/vendor/chance/lib/chance/perf.rb +17 -0
- data/vendor/chance/lib/chance/sass_extensions.rb +24 -0
- data/vendor/chance/lib/chance/slicing.rb +104 -0
- data/vendor/chance/lib/chance/version.rb +3 -0
- data/vendor/chance/test/case/abc.png +0 -0
- data/vendor/chance/test/case/more/abc.png +0 -0
- data/vendor/chance/test/case/more/another.css +4 -0
- data/vendor/chance/test/case/test1.css +22 -0
- data/vendor/chance/test/case/test2.css +6 -0
- data/vendor/sproutcore/SCCompiler.jar +0 -0
- data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/lib/htmlcompressor-0.9.3.jar +0 -0
- data/{lib/sproutcore/vendor/yui-compressor → vendor/sproutcore/lib}/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/build.xml +74 -0
- data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
- data/{lib/sproutcore/vendor/yui-compressor/SCyuicompressor-2.4.2.jar → vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar} +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.4.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/manifest.mf +3 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +894 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +8 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +10 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +4 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +90 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +15 -0
- data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +348 -0
- metadata +686 -177
- data/lib/frameworks/sproutcore/CHANGELOG +0 -93
- data/lib/frameworks/sproutcore/frameworks/datejs/core.js +0 -865
- data/lib/frameworks/sproutcore/frameworks/datejs/english.lproj/en-US.js +0 -186
- data/lib/frameworks/sproutcore/frameworks/datejs/extras.js +0 -332
- data/lib/frameworks/sproutcore/frameworks/datejs/license.js +0 -25
- data/lib/frameworks/sproutcore/frameworks/datejs/parser.js +0 -1116
- data/lib/frameworks/sproutcore/frameworks/datejs/spanish.lproj/es-CO.js +0 -186
- data/lib/frameworks/sproutcore/frameworks/datejs/sugarpak.js +0 -475
- data/lib/frameworks/sproutcore/frameworks/datejs/time.js +0 -269
- data/lib/frameworks/sproutcore/frameworks/datejs/validators/datejs.js +0 -34
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +0 -84
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +0 -337
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +0 -197
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +0 -710
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_core.js +0 -1334
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_dimensions.js +0 -387
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_selector.js +0 -405
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +0 -25
- data/lib/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +0 -336
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/basic.js +0 -90
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/history.js +0 -71
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/nested.js +0 -59
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/transient.js +0 -148
- data/lib/sproutcore/builders/bundle.rb +0 -63
@@ -423,11 +423,11 @@ SC.Logger = SC.Object.create({
|
|
423
423
|
@param {Array} arguments The arguments property of a function
|
424
424
|
@returns {Array} An array containing the elements of arguments parameter
|
425
425
|
*/
|
426
|
-
_argumentsToArray: function(
|
427
|
-
if (!
|
426
|
+
_argumentsToArray: function(args) {
|
427
|
+
if (!args) return [];
|
428
428
|
var a = [];
|
429
|
-
for (var i = 0; i <
|
430
|
-
a[i] =
|
429
|
+
for (var i = 0; i < args.length; i++) {
|
430
|
+
a[i] = args[i];
|
431
431
|
}
|
432
432
|
return a;
|
433
433
|
},
|
@@ -17,17 +17,17 @@ SC.BENCHMARK_OBJECTS = NO;
|
|
17
17
|
|
18
18
|
// ..........................................................
|
19
19
|
// PRIVATE HELPER METHODS
|
20
|
-
//
|
20
|
+
//
|
21
21
|
// Private helper methods. These are not kept as part of the class
|
22
22
|
// definition because SC.Object is copied frequently and we want to keep the
|
23
23
|
// number of class methods to a minimum.
|
24
24
|
|
25
25
|
/** @private
|
26
26
|
Augments a base object by copying the properties from the extended hash.
|
27
|
-
In addition to simply copying properties, this method also performs a
|
27
|
+
In addition to simply copying properties, this method also performs a
|
28
28
|
number of optimizations that can make init'ing a new object much faster
|
29
29
|
including:
|
30
|
-
|
30
|
+
|
31
31
|
- concatenating concatenatedProperties
|
32
32
|
- prepping a list of bindings, observers, and dependent keys
|
33
33
|
- caching local observers so they don't need to be manually constructed.
|
@@ -62,18 +62,18 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
62
62
|
}
|
63
63
|
|
64
64
|
// setup arrays for bindings, observers, and properties. Normally, just
|
65
|
-
// save the arrays from the base. If these need to be changed during
|
65
|
+
// save the arrays from the base. If these need to be changed during
|
66
66
|
// processing, then they will be cloned first.
|
67
67
|
var bindings = base._bindings, clonedBindings = NO;
|
68
68
|
var observers = base._observers, clonedObservers = NO;
|
69
69
|
var properties = base._properties, clonedProperties = NO;
|
70
70
|
var paths, pathLoc, local ;
|
71
71
|
|
72
|
-
// outlets are treated a little differently because you can manually
|
72
|
+
// outlets are treated a little differently because you can manually
|
73
73
|
// name outlets in the passed in hash. If this is the case, then clone
|
74
74
|
// the array first.
|
75
75
|
var outlets = base.outlets, clonedOutlets = NO ;
|
76
|
-
if (ext.outlets) {
|
76
|
+
if (ext.outlets) {
|
77
77
|
outlets = (outlets || SC.EMPTY_ARRAY).concat(ext.outlets);
|
78
78
|
clonedOutlets = YES ;
|
79
79
|
}
|
@@ -84,10 +84,10 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
84
84
|
if (key === '_kvo_cloned') continue; // do not copy
|
85
85
|
|
86
86
|
// avoid copying builtin methods
|
87
|
-
if (!ext.hasOwnProperty(key)) continue ;
|
87
|
+
if (!ext.hasOwnProperty(key)) continue ;
|
88
88
|
|
89
89
|
// get the value. use concats if defined
|
90
|
-
var value = (concats.hasOwnProperty(key) ? concats[key] : null) || ext[key]
|
90
|
+
var value = (concats.hasOwnProperty(key) ? concats[key] : null) || ext[key];
|
91
91
|
|
92
92
|
// Possibly add to a bindings.
|
93
93
|
if (key.length > 7 && key.slice(-7) === "Binding") {
|
@@ -102,7 +102,7 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
102
102
|
// Also add observers, outlets, and properties for functions...
|
103
103
|
} else if (value && (value instanceof Function)) {
|
104
104
|
|
105
|
-
// add super to funcs. Be sure not to set the base of a func to
|
105
|
+
// add super to funcs. Be sure not to set the base of a func to
|
106
106
|
// itself to avoid infinite loops.
|
107
107
|
if (!value.superclass && (value !== (cur=base[key]))) {
|
108
108
|
value.superclass = value.base = cur || K;
|
@@ -118,7 +118,7 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
118
118
|
|
119
119
|
// handle local properties
|
120
120
|
}
|
121
|
-
|
121
|
+
|
122
122
|
if (paths = value.localPropertyPaths) {
|
123
123
|
pathLoc = paths.length;
|
124
124
|
while(--pathLoc >= 0) {
|
@@ -129,7 +129,7 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
129
129
|
|
130
130
|
// handle computed properties
|
131
131
|
}
|
132
|
-
|
132
|
+
|
133
133
|
if (value.dependentKeys) {
|
134
134
|
if (!clonedProperties) {
|
135
135
|
properties = (properties || SC.EMPTY_ARRAY).slice() ;
|
@@ -139,20 +139,20 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
139
139
|
|
140
140
|
// handle outlets
|
141
141
|
}
|
142
|
-
|
142
|
+
|
143
143
|
if (value.autoconfiguredOutlet) {
|
144
144
|
if (!clonedOutlets) {
|
145
145
|
outlets = (outlets || SC.EMPTY_ARRAY).slice();
|
146
146
|
clonedOutlets = YES ;
|
147
147
|
}
|
148
|
-
outlets[outlets.length] = key ;
|
148
|
+
outlets[outlets.length] = key ;
|
149
149
|
}
|
150
150
|
}
|
151
151
|
|
152
152
|
// copy property
|
153
153
|
base[key] = value ;
|
154
154
|
}
|
155
|
-
|
155
|
+
|
156
156
|
// Manually set base on toString() because some JS engines (such as IE8) do
|
157
157
|
// not enumerate it
|
158
158
|
if (ext.hasOwnProperty('toString')) {
|
@@ -167,7 +167,7 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
167
167
|
}
|
168
168
|
|
169
169
|
|
170
|
-
// copy bindings, observers, and properties
|
170
|
+
// copy bindings, observers, and properties
|
171
171
|
base._bindings = bindings || [];
|
172
172
|
base._observers = observers || [] ;
|
173
173
|
base._properties = properties || [] ;
|
@@ -180,26 +180,26 @@ SC._object_extend = function _object_extend(base, ext) {
|
|
180
180
|
|
181
181
|
Root object for the SproutCore framework. SC.Object is the root class for
|
182
182
|
most classes defined by SproutCore. It builds on top of the native object
|
183
|
-
support provided by JavaScript to provide support for class-like
|
184
|
-
inheritance, automatic bindings, properties observers, and more.
|
185
|
-
|
186
|
-
Most of the classes you define in your application should inherit from
|
183
|
+
support provided by JavaScript to provide support for class-like
|
184
|
+
inheritance, automatic bindings, properties observers, and more.
|
185
|
+
|
186
|
+
Most of the classes you define in your application should inherit from
|
187
187
|
SC.Object or one of its subclasses. If you are writing objects of your
|
188
|
-
own, you should read this documentation to learn some of the details of
|
188
|
+
own, you should read this documentation to learn some of the details of
|
189
189
|
how SC.Object's behave and how they differ from other frameworks.
|
190
|
-
|
190
|
+
|
191
191
|
h2. About SproutCore Classes
|
192
|
-
|
193
|
-
JavaScript is not a class-based language. Instead it uses a type of
|
194
|
-
inheritence inspired by self called "prototypical" inheritance.
|
192
|
+
|
193
|
+
JavaScript is not a class-based language. Instead it uses a type of
|
194
|
+
inheritence inspired by self called "prototypical" inheritance.
|
195
195
|
...
|
196
196
|
|
197
197
|
h2. Using SproutCore objects with other JavaScript object.
|
198
|
-
|
198
|
+
|
199
199
|
You can create a SproutCore object just like any other object...
|
200
200
|
obj = new SC.Object() ;
|
201
|
-
|
202
|
-
@extends SC.Observable
|
201
|
+
|
202
|
+
@extends SC.Observable
|
203
203
|
@since SproutCore 1.0
|
204
204
|
*/
|
205
205
|
SC.Object = function(props) { return this._object_init(props); };
|
@@ -207,12 +207,12 @@ SC.Object = function(props) { return this._object_init(props); };
|
|
207
207
|
SC.mixin(SC.Object, /** @scope SC.Object */ {
|
208
208
|
|
209
209
|
/**
|
210
|
-
Adds the passed properties to the object's class definition. You can
|
211
|
-
pass as many hashes as you want, including Mixins, and they will be
|
210
|
+
Adds the passed properties to the object's class definition. You can
|
211
|
+
pass as many hashes as you want, including Mixins, and they will be
|
212
212
|
added in the order they are passed.
|
213
213
|
|
214
214
|
This is a shorthand for calling SC.mixin(MyClass, props...);
|
215
|
-
|
215
|
+
|
216
216
|
@params {Hash} props the properties you want to add.
|
217
217
|
@returns {Object} receiver
|
218
218
|
*/
|
@@ -229,20 +229,20 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
229
229
|
/**
|
230
230
|
Points to the superclass for this class. You can use this to trace a
|
231
231
|
class hierarchy.
|
232
|
-
|
232
|
+
|
233
233
|
@property {SC.Object}
|
234
234
|
*/
|
235
235
|
superclass: null,
|
236
|
-
|
236
|
+
|
237
237
|
/**
|
238
238
|
Creates a new subclass of the receiver, adding any passed properties to
|
239
239
|
the instance definition of the new class. You should use this method
|
240
|
-
when you plan to create several objects based on a class with similar
|
240
|
+
when you plan to create several objects based on a class with similar
|
241
241
|
properties.
|
242
242
|
|
243
243
|
h2. Init
|
244
244
|
|
245
|
-
If you define an init() method, it will be called when you create
|
245
|
+
If you define an init() method, it will be called when you create
|
246
246
|
instances of your new class. Since SproutCore uses the init() method to
|
247
247
|
do important setup, you must be sure to always call sc_super() somewhere
|
248
248
|
in your init() to allow the normal setup to proceed.
|
@@ -250,24 +250,24 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
250
250
|
@params {Hash} props the methods of properties you want to add
|
251
251
|
@returns {Class} A new object class
|
252
252
|
*/
|
253
|
-
extend: function(props) {
|
253
|
+
extend: function(props) {
|
254
254
|
var bench = SC.BENCHMARK_OBJECTS ;
|
255
255
|
if (bench) SC.Benchmark.start('SC.Object.extend') ;
|
256
256
|
|
257
|
-
// build a new constructor and copy class methods. Do this before
|
257
|
+
// build a new constructor and copy class methods. Do this before
|
258
258
|
// adding any other properties so they are not overwritten by the copy.
|
259
259
|
var prop, ret = function(props) { return this._object_init(props); } ;
|
260
260
|
for(prop in this) {
|
261
261
|
if (!this.hasOwnProperty(prop)) continue ;
|
262
262
|
ret[prop] = this[prop];
|
263
263
|
}
|
264
|
-
|
264
|
+
|
265
265
|
// manually copy toString() because some JS engines do not enumerate it
|
266
266
|
if (this.hasOwnProperty('toString')) ret.toString = this.toString;
|
267
267
|
|
268
268
|
// now setup superclass, guid
|
269
269
|
ret.superclass = this ;
|
270
|
-
SC.generateGuid(ret); // setup guid
|
270
|
+
SC.generateGuid(ret, "sc"); // setup guid
|
271
271
|
|
272
272
|
ret.subclasses = SC.Set.create();
|
273
273
|
this.subclasses.add(ret); // now we can walk a class hierarchy
|
@@ -282,50 +282,54 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
282
282
|
return ret ;
|
283
283
|
},
|
284
284
|
|
285
|
+
reopen: function(props) {
|
286
|
+
return SC._object_extend(this.prototype, props);
|
287
|
+
},
|
288
|
+
|
285
289
|
/**
|
286
290
|
Creates a new instance of the class.
|
287
291
|
|
288
292
|
Unlike most frameworks, you do not pass parameters to the init function
|
289
|
-
for an object. Instead, you pass a hash of additional properties you
|
293
|
+
for an object. Instead, you pass a hash of additional properties you
|
290
294
|
want to have assigned to the object when it is first created. This is
|
291
295
|
functionally like creating an anonymous subclass of the receiver and then
|
292
296
|
instantiating it, but more efficient.
|
293
297
|
|
294
|
-
You can use create() like you would a normal constructor in a
|
295
|
-
class-based system, or you can use it to create highly customized
|
296
|
-
singleton objects such as controllers or app-level objects. This is
|
297
|
-
often more efficient than creating subclasses and then instantiating
|
298
|
+
You can use create() like you would a normal constructor in a
|
299
|
+
class-based system, or you can use it to create highly customized
|
300
|
+
singleton objects such as controllers or app-level objects. This is
|
301
|
+
often more efficient than creating subclasses and then instantiating
|
298
302
|
them.
|
299
303
|
|
300
304
|
You can pass any hash of properties to this method, including mixins.
|
301
|
-
|
302
|
-
@param {Hash} props
|
305
|
+
|
306
|
+
@param {Hash} props
|
303
307
|
optional hash of method or properties to add to the instance.
|
304
|
-
|
308
|
+
|
305
309
|
@returns {SC.Object} new instance of the receiver class.
|
306
310
|
*/
|
307
311
|
create: function() {
|
308
|
-
var C=this, ret = new C(arguments);
|
312
|
+
var C=this, ret = new C(arguments);
|
309
313
|
if (SC.ObjectDesigner) {
|
310
314
|
SC.ObjectDesigner.didCreateObject(ret, SC.$A(arguments));
|
311
315
|
}
|
312
|
-
return ret ;
|
316
|
+
return ret ;
|
313
317
|
},
|
314
318
|
/**
|
315
319
|
Walk like a duck. You can use this to quickly test classes.
|
316
|
-
|
320
|
+
|
317
321
|
@property {Boolean}
|
318
322
|
*/
|
319
323
|
isClass: YES,
|
320
324
|
|
321
325
|
/**
|
322
|
-
Set of subclasses that extend from this class. You can observe this
|
326
|
+
Set of subclasses that extend from this class. You can observe this
|
323
327
|
array if you want to be notified when the object is extended.
|
324
|
-
|
328
|
+
|
325
329
|
@property {SC.Set}
|
326
330
|
*/
|
327
331
|
subclasses: SC.Set.create(),
|
328
|
-
|
332
|
+
|
329
333
|
/** @private */
|
330
334
|
toString: function() { return SC._object_className(this); },
|
331
335
|
|
@@ -333,13 +337,13 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
333
337
|
// PROPERTY SUPPORT METHODS
|
334
338
|
//
|
335
339
|
|
336
|
-
/**
|
337
|
-
Returns YES if the receiver is a subclass of the named class. If the
|
340
|
+
/**
|
341
|
+
Returns YES if the receiver is a subclass of the named class. If the
|
338
342
|
receiver is the class passed, this will return NO since the class is not
|
339
343
|
a subclass of itself. See also kindOf().
|
340
344
|
|
341
345
|
h2. Example
|
342
|
-
|
346
|
+
|
343
347
|
{{{
|
344
348
|
ClassA = SC.Object.extend();
|
345
349
|
ClassB = ClassA.extend();
|
@@ -347,9 +351,9 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
347
351
|
ClassB.subclassOf(ClassA) => YES
|
348
352
|
ClassA.subclassOf(ClassA) => NO
|
349
353
|
}}}
|
350
|
-
|
354
|
+
|
351
355
|
@param {Class} scClass class to compare
|
352
|
-
@returns {Boolean}
|
356
|
+
@returns {Boolean}
|
353
357
|
*/
|
354
358
|
subclassOf: function(scClass) {
|
355
359
|
if (this === scClass) return NO ;
|
@@ -357,11 +361,11 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
357
361
|
while(t = t.superclass) if (t === scClass) return YES ;
|
358
362
|
return NO ;
|
359
363
|
},
|
360
|
-
|
364
|
+
|
361
365
|
/**
|
362
|
-
Returns YES if the passed object is a subclass of the receiver. This is
|
366
|
+
Returns YES if the passed object is a subclass of the receiver. This is
|
363
367
|
the inverse of subclassOf() which you call on the class you want to test.
|
364
|
-
|
368
|
+
|
365
369
|
@param {Class} scClass class to compare
|
366
370
|
@returns {Boolean}
|
367
371
|
*/
|
@@ -370,9 +374,9 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
370
374
|
},
|
371
375
|
|
372
376
|
/**
|
373
|
-
Returns YES if the receiver is the passed class or is a subclass of the
|
377
|
+
Returns YES if the receiver is the passed class or is a subclass of the
|
374
378
|
passed class. Unlike subclassOf(), this method will return YES if you
|
375
|
-
pass the receiver itself, since class is a kind of itself. See also
|
379
|
+
pass the receiver itself, since class is a kind of itself. See also
|
376
380
|
subclassOf().
|
377
381
|
|
378
382
|
h2. Example
|
@@ -384,25 +388,25 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
384
388
|
ClassB.kindOf(ClassA) => YES
|
385
389
|
ClassA.kindOf(ClassA) => YES
|
386
390
|
}}}
|
387
|
-
|
391
|
+
|
388
392
|
@param {Class} scClass class to compare
|
389
|
-
@returns {Boolean}
|
393
|
+
@returns {Boolean}
|
390
394
|
*/
|
391
|
-
kindOf: function(scClass) {
|
395
|
+
kindOf: function(scClass) {
|
392
396
|
return (this === scClass) || this.subclassOf(scClass) ;
|
393
397
|
},
|
394
|
-
|
398
|
+
|
395
399
|
// ..........................................................
|
396
400
|
// Designers
|
397
|
-
//
|
401
|
+
//
|
398
402
|
/**
|
399
403
|
This method works just like extend() except that it will also preserve
|
400
404
|
the passed attributes.
|
401
|
-
|
405
|
+
|
402
406
|
@param {Hash} attrs Attributes to add to view
|
403
407
|
@returns {Class} SC.Object subclass to create
|
404
408
|
@function
|
405
|
-
*/
|
409
|
+
*/
|
406
410
|
design: function() {
|
407
411
|
if (this.isDesign) return this; // only run design one time
|
408
412
|
var ret = this.extend.apply(this, arguments);
|
@@ -416,16 +420,16 @@ SC.mixin(SC.Object, /** @scope SC.Object */ {
|
|
416
420
|
|
417
421
|
// ..........................................
|
418
422
|
// DEFAULT OBJECT INSTANCE
|
419
|
-
//
|
423
|
+
//
|
420
424
|
SC.Object.prototype = {
|
421
|
-
|
425
|
+
|
422
426
|
_kvo_enabled: YES,
|
423
|
-
|
427
|
+
|
424
428
|
/** @private
|
425
429
|
This is the first method invoked on a new instance. It will first apply
|
426
430
|
any added properties to the new instance and then calls the real init()
|
427
431
|
method.
|
428
|
-
|
432
|
+
|
429
433
|
@param {Array} extensions an array-like object with hashes to apply.
|
430
434
|
@returns {Object} receiver
|
431
435
|
*/
|
@@ -433,43 +437,43 @@ SC.Object.prototype = {
|
|
433
437
|
// apply any new properties
|
434
438
|
var idx, len = (extensions) ? extensions.length : 0;
|
435
439
|
for(idx=0;idx<len;idx++) SC._object_extend(this, extensions[idx]) ;
|
436
|
-
SC.generateGuid(this) ; // add guid
|
440
|
+
SC.generateGuid(this, "sc") ; // add guid
|
437
441
|
this.init() ; // call real init
|
438
|
-
|
442
|
+
|
439
443
|
// Call 'initMixin' methods to automatically setup modules.
|
440
444
|
var inits = this.initMixin; len = (inits) ? inits.length : 0 ;
|
441
445
|
for(idx=0;idx < len; idx++) inits[idx].call(this);
|
442
|
-
|
446
|
+
|
443
447
|
return this ; // done!
|
444
448
|
},
|
445
|
-
|
449
|
+
|
446
450
|
/**
|
447
|
-
You can call this method on an object to mixin one or more hashes of
|
448
|
-
properties on the receiver object. In addition to simply copying
|
449
|
-
properties, this method will also prepare the properties for use in
|
451
|
+
You can call this method on an object to mixin one or more hashes of
|
452
|
+
properties on the receiver object. In addition to simply copying
|
453
|
+
properties, this method will also prepare the properties for use in
|
450
454
|
bindings, computed properties, etc.
|
451
|
-
|
455
|
+
|
452
456
|
If you plan to use this method, you should call it before you call
|
453
|
-
the inherited init method from SC.Object or else your instance may not
|
457
|
+
the inherited init method from SC.Object or else your instance may not
|
454
458
|
function properly.
|
455
|
-
|
459
|
+
|
456
460
|
h2. Example
|
457
|
-
|
461
|
+
|
458
462
|
{{{
|
459
463
|
// dynamically apply a mixin specified in an object property
|
460
464
|
var MyClass = SC.Object.extend({
|
461
465
|
extraMixin: null,
|
462
|
-
|
466
|
+
|
463
467
|
init: function() {
|
464
468
|
this.mixin(this.extraMixin);
|
465
469
|
sc_super();
|
466
470
|
}
|
467
471
|
});
|
468
|
-
|
472
|
+
|
469
473
|
var ExampleMixin = { foo: "bar" };
|
470
|
-
|
474
|
+
|
471
475
|
var instance = MyClass.create({ extraMixin: ExampleMixin }) ;
|
472
|
-
|
476
|
+
|
473
477
|
instance.get('foo') => "bar"
|
474
478
|
}}}
|
475
479
|
|
@@ -489,15 +493,15 @@ SC.Object.prototype = {
|
|
489
493
|
},
|
490
494
|
|
491
495
|
/**
|
492
|
-
This method is invoked automatically whenever a new object is
|
496
|
+
This method is invoked automatically whenever a new object is
|
493
497
|
instantiated. You can override this method as you like to setup your
|
494
|
-
new object.
|
498
|
+
new object.
|
495
499
|
|
496
|
-
Within your object, be sure to call sc_super() to ensure that the
|
497
|
-
built-in init method is also called or your observers and computed
|
500
|
+
Within your object, be sure to call sc_super() to ensure that the
|
501
|
+
built-in init method is also called or your observers and computed
|
498
502
|
properties may not be configured.
|
499
503
|
|
500
|
-
Although the default init() method returns the receiver, the return
|
504
|
+
Although the default init() method returns the receiver, the return
|
501
505
|
value is ignored.
|
502
506
|
|
503
507
|
@returns {void}
|
@@ -508,22 +512,22 @@ SC.Object.prototype = {
|
|
508
512
|
},
|
509
513
|
|
510
514
|
/**
|
511
|
-
Set to NO once this object has been destroyed.
|
512
|
-
|
515
|
+
Set to NO once this object has been destroyed.
|
516
|
+
|
513
517
|
@property {Boolean}
|
514
518
|
*/
|
515
519
|
isDestroyed: NO,
|
516
520
|
|
517
521
|
/**
|
518
522
|
Call this method when you are finished with an object to teardown its
|
519
|
-
contents. Because JavaScript is garbage collected, you do not usually
|
523
|
+
contents. Because JavaScript is garbage collected, you do not usually
|
520
524
|
need to call this method. However, you may choose to do so for certain
|
521
|
-
objects, especially views, in order to let them reclaim memory they
|
525
|
+
objects, especially views, in order to let them reclaim memory they
|
522
526
|
consume immediately.
|
523
527
|
|
524
528
|
If you would like to perform additional cleanup when an object is
|
525
529
|
finished, you may override this method. Be sure to call sc_super().
|
526
|
-
|
530
|
+
|
527
531
|
@returns {SC.Object} receiver
|
528
532
|
*/
|
529
533
|
destroy: function() {
|
@@ -543,7 +547,7 @@ SC.Object.prototype = {
|
|
543
547
|
|
544
548
|
/**
|
545
549
|
Walk like a duck. Always YES since this is an object and not a class.
|
546
|
-
|
550
|
+
|
547
551
|
@property {Boolean}
|
548
552
|
*/
|
549
553
|
isObject: true,
|
@@ -557,13 +561,13 @@ SC.Object.prototype = {
|
|
557
561
|
respondsTo: function( methodName ) {
|
558
562
|
return !!(this[methodName] instanceof Function);
|
559
563
|
},
|
560
|
-
|
564
|
+
|
561
565
|
/**
|
562
|
-
Attemps to invoke the named method, passing the included two arguments.
|
563
|
-
Returns NO if the method is either not implemented or if the handler
|
564
|
-
returns NO (indicating that it did not handle the event). This method
|
565
|
-
is invoked to deliver actions from menu items and to deliver events.
|
566
|
-
You can override this method to provide additional handling if you
|
566
|
+
Attemps to invoke the named method, passing the included two arguments.
|
567
|
+
Returns NO if the method is either not implemented or if the handler
|
568
|
+
returns NO (indicating that it did not handle the event). This method
|
569
|
+
is invoked to deliver actions from menu items and to deliver events.
|
570
|
+
You can override this method to provide additional handling if you
|
567
571
|
prefer.
|
568
572
|
|
569
573
|
@param {String} methodName
|
@@ -575,32 +579,32 @@ SC.Object.prototype = {
|
|
575
579
|
return this.respondsTo(methodName) && (this[methodName](arg1, arg2) !== NO);
|
576
580
|
},
|
577
581
|
|
578
|
-
/**
|
582
|
+
/**
|
579
583
|
EXPERIMENTAL: You can use this to invoke a superclass implementation in
|
580
584
|
any method. This does not work in Safari 2 or earlier. If you need to
|
581
585
|
target these methods, you should use one of the alternatives below:
|
582
586
|
|
583
587
|
- *With Build Tools:* sc_super();
|
584
588
|
- *Without Build Tools:* arguments.callee.base.apply(this, arguments);
|
585
|
-
|
589
|
+
|
586
590
|
h2. Example
|
587
|
-
|
591
|
+
|
588
592
|
All of the following methods will call the superclass implementation of
|
589
593
|
your method:
|
590
|
-
|
594
|
+
|
591
595
|
{{{
|
592
596
|
SC.Object.create({
|
593
|
-
|
597
|
+
|
594
598
|
// DOES NOT WORK IN SAFARI 2 OR EARLIER
|
595
599
|
method1: function() {
|
596
600
|
this.superclass();
|
597
601
|
},
|
598
|
-
|
602
|
+
|
599
603
|
// REQUIRES SC-BUILD TOOLS
|
600
604
|
method2: function() {
|
601
605
|
sc_super();
|
602
606
|
},
|
603
|
-
|
607
|
+
|
604
608
|
// WORKS ANYTIME
|
605
609
|
method3: function() {
|
606
610
|
arguments.callee.base.apply(this, arguments);
|
@@ -612,48 +616,48 @@ SC.Object.prototype = {
|
|
612
616
|
@returns {Object} return value from super
|
613
617
|
*/
|
614
618
|
superclass: function(args) {
|
615
|
-
var caller = arguments.callee.caller;
|
619
|
+
var caller = arguments.callee.caller;
|
616
620
|
if (!caller) throw "superclass cannot determine the caller method" ;
|
617
621
|
return caller.superclass ? caller.superclass.apply(this, arguments) : null;
|
618
622
|
},
|
619
623
|
|
620
|
-
/**
|
624
|
+
/**
|
621
625
|
returns YES if the receiver is an instance of the named class. See also
|
622
626
|
kindOf().
|
623
627
|
|
624
628
|
h2. Example
|
625
|
-
|
629
|
+
|
626
630
|
{{{
|
627
631
|
var ClassA = SC.Object.extend();
|
628
632
|
var ClassB = SC.Object.extend();
|
629
|
-
|
633
|
+
|
630
634
|
var instA = ClassA.create();
|
631
635
|
var instB = ClassB.create();
|
632
|
-
|
636
|
+
|
633
637
|
instA.instanceOf(ClassA) => YES
|
634
638
|
instB.instanceOf(ClassA) => NO
|
635
639
|
}}}
|
636
|
-
|
640
|
+
|
637
641
|
@param {Class} scClass the class
|
638
642
|
@returns {Boolean}
|
639
643
|
*/
|
640
644
|
instanceOf: function(scClass) {
|
641
|
-
return this.constructor === scClass ;
|
645
|
+
return this.constructor === scClass ;
|
642
646
|
},
|
643
647
|
|
644
|
-
/**
|
645
|
-
Returns true if the receiver is an instance of the named class or any
|
648
|
+
/**
|
649
|
+
Returns true if the receiver is an instance of the named class or any
|
646
650
|
subclass of the named class. See also instanceOf().
|
647
651
|
|
648
652
|
h2. Example
|
649
|
-
|
653
|
+
|
650
654
|
{{{
|
651
655
|
var ClassA = SC.Object.extend();
|
652
656
|
var ClassB = SC.Object.extend();
|
653
|
-
|
657
|
+
|
654
658
|
var instA = ClassA.create();
|
655
659
|
var instB = ClassB.create();
|
656
|
-
|
660
|
+
|
657
661
|
instA.kindOf(ClassA) => YES
|
658
662
|
instB.kindOf(ClassA) => YES
|
659
663
|
}}}
|
@@ -671,15 +675,15 @@ SC.Object.prototype = {
|
|
671
675
|
var string = "%@:%@".fmt(klassName, SC.guidFor(this));
|
672
676
|
if (klassName) this._object_toString = string ;
|
673
677
|
else return string ;
|
674
|
-
}
|
678
|
+
}
|
675
679
|
return this._object_toString ;
|
676
680
|
},
|
677
681
|
|
678
|
-
/**
|
682
|
+
/**
|
679
683
|
Activates any outlet connections in object and syncs any bindings. This
|
680
684
|
method is called automatically for view classes but may be used for any
|
681
685
|
object.
|
682
|
-
|
686
|
+
|
683
687
|
@returns {void}
|
684
688
|
*/
|
685
689
|
awake: function(key) {
|
@@ -689,18 +693,18 @@ SC.Object.prototype = {
|
|
689
693
|
outlet = outlets[i];
|
690
694
|
this.get(outlet);
|
691
695
|
}
|
692
|
-
this.bindings.invoke('sync');
|
696
|
+
this.bindings.invoke('sync');
|
693
697
|
},
|
694
698
|
|
695
699
|
/**
|
696
700
|
Invokes the passed method or method name one time during the runloop. You
|
697
|
-
can use this method to schedule methods that need to execute but may be
|
701
|
+
can use this method to schedule methods that need to execute but may be
|
698
702
|
too expensive to execute more than once, such as methods that update the
|
699
703
|
DOM.
|
700
|
-
|
704
|
+
|
701
705
|
Note that in development mode only, the object and method that call this
|
702
706
|
method will be recorded, for help in debugging scheduled code.
|
703
|
-
|
707
|
+
|
704
708
|
@param {Function|String} method method or method name
|
705
709
|
@returns {SC.Object} receiver
|
706
710
|
*/
|
@@ -708,40 +712,40 @@ SC.Object.prototype = {
|
|
708
712
|
SC.RunLoop.currentRunLoop.invokeOnce(this, method) ;
|
709
713
|
return this ;
|
710
714
|
},
|
711
|
-
|
715
|
+
|
712
716
|
/**
|
713
|
-
Invokes the passed method once at the beginning of the next runloop,
|
717
|
+
Invokes the passed method once at the beginning of the next runloop,
|
714
718
|
before any other methods (including events) are processed. This is useful
|
715
719
|
for situations where you know you need to update something, but due to
|
716
720
|
the way the run loop works, you can't actually do the update until the
|
717
721
|
run loop has completed.
|
718
|
-
|
719
|
-
A simple example is setting the selection on a collection controller to a
|
722
|
+
|
723
|
+
A simple example is setting the selection on a collection controller to a
|
720
724
|
newly created object. Because the collection controller won't have its
|
721
|
-
content collection updated until later in the run loop, setting the
|
725
|
+
content collection updated until later in the run loop, setting the
|
722
726
|
selection immediately will have no effect. In this situation, you could do
|
723
727
|
this instead:
|
724
|
-
|
728
|
+
|
725
729
|
{{{
|
726
730
|
// Creates a new MyRecord object and sets the selection of the
|
727
731
|
// myRecord collection controller to the new object.
|
728
732
|
createObjectAction: function(sender, evt) {
|
729
733
|
// create a new record and add it to the store
|
730
734
|
var obj = MyRecord.newRecord() ;
|
731
|
-
|
735
|
+
|
732
736
|
// update the collection controller's selection
|
733
737
|
MyApp.myRecordCollectionController.invokeLast( function() {
|
734
738
|
this.set('selection', [obj]) ;
|
735
739
|
});
|
736
740
|
}
|
737
741
|
}}}
|
738
|
-
|
742
|
+
|
739
743
|
You can call invokeLast as many times as you like and the method will
|
740
744
|
only be invoked once.
|
741
|
-
|
745
|
+
|
742
746
|
Note that in development mode only, the object and method that call this
|
743
747
|
method will be recorded, for help in debugging scheduled code.
|
744
|
-
|
748
|
+
|
745
749
|
@param {Function|String} method method or method name
|
746
750
|
@returns {SC.Object} receiver
|
747
751
|
*/
|
@@ -749,19 +753,19 @@ SC.Object.prototype = {
|
|
749
753
|
SC.RunLoop.currentRunLoop.invokeLast(this, method) ;
|
750
754
|
return this ;
|
751
755
|
},
|
752
|
-
|
756
|
+
|
753
757
|
/**
|
754
758
|
The properties named in this array will be concatenated in subclasses
|
755
759
|
instead of replaced. This allows you to name special properties that
|
756
760
|
should contain any values you specify plus values specified by parents.
|
757
761
|
|
758
|
-
It is used by SproutCore and is available for your use, though you
|
759
|
-
should limit the number of properties you include in this list as it
|
762
|
+
It is used by SproutCore and is available for your use, though you
|
763
|
+
should limit the number of properties you include in this list as it
|
760
764
|
adds a slight overhead to new class and instance creation.
|
761
765
|
|
762
766
|
@property {Array}
|
763
767
|
*/
|
764
|
-
concatenatedProperties: ['concatenatedProperties', 'initMixin', 'destroyMixin']
|
768
|
+
concatenatedProperties: ['concatenatedProperties', 'initMixin', 'destroyMixin']
|
765
769
|
|
766
770
|
} ;
|
767
771
|
|
@@ -773,10 +777,10 @@ SC.mixin(SC.Object.prototype, SC.Observable) ;
|
|
773
777
|
|
774
778
|
// ..........................................................
|
775
779
|
// CLASS NAME SUPPORT
|
776
|
-
//
|
780
|
+
//
|
777
781
|
|
778
782
|
/** @private
|
779
|
-
This is a way of performing brute-force introspection. This searches
|
783
|
+
This is a way of performing brute-force introspection. This searches
|
780
784
|
through all the top-level properties looking for classes. When it finds
|
781
785
|
one, it saves the class path name.
|
782
786
|
*/
|
@@ -807,8 +811,14 @@ function findClassNames() {
|
|
807
811
|
var path = (root) ? [root,key].join('.') : key ;
|
808
812
|
var value = object[key] ;
|
809
813
|
|
814
|
+
try {
|
815
|
+
var type = SC.typeOf(value);
|
816
|
+
} catch (e) {
|
817
|
+
// Firefox gives security errors when trying to run typeOf on certain objects
|
818
|
+
break;
|
819
|
+
}
|
810
820
|
|
811
|
-
switch(
|
821
|
+
switch(type) {
|
812
822
|
case SC.T_CLASS:
|
813
823
|
if (!value._object_className) value._object_className = path;
|
814
824
|
if (levels>=0) searchObject(path, value, levels) ;
|
@@ -842,22 +852,22 @@ function findClassNames() {
|
|
842
852
|
searchObject(null, window, 2) ;
|
843
853
|
}
|
844
854
|
|
845
|
-
/**
|
855
|
+
/**
|
846
856
|
Same as the instance method, but lets you check instanceOf without
|
847
857
|
having to first check if instanceOf exists as a method.
|
848
|
-
|
858
|
+
|
849
859
|
@param {Object} scObject the object to check instance of
|
850
860
|
@param {Class} scClass the class
|
851
861
|
@returns {Boolean} if object1 is instance of class
|
852
862
|
*/
|
853
863
|
SC.instanceOf = function(scObject, scClass) {
|
854
|
-
return !!(scObject && scObject.constructor === scClass) ;
|
855
|
-
} ;
|
864
|
+
return !!(scObject && scObject.constructor === scClass) ;
|
865
|
+
} ;
|
856
866
|
|
857
867
|
/**
|
858
|
-
Same as the instance method, but lets you check kindOf without having to
|
868
|
+
Same as the instance method, but lets you check kindOf without having to
|
859
869
|
first check if kindOf exists as a method.
|
860
|
-
|
870
|
+
|
861
871
|
@param {Object} scObject object to check kind of
|
862
872
|
@param {Class} scClass the class to check
|
863
873
|
@returns {Boolean} if object is an instance of class or subclass
|
@@ -870,7 +880,7 @@ SC.kindOf = function(scObject, scClass) {
|
|
870
880
|
/** @private
|
871
881
|
Returns the name of this class. If the name is not known, triggers
|
872
882
|
a search. This can be expensive the first time it is called.
|
873
|
-
|
883
|
+
|
874
884
|
This method is used to allow classes to determine their own name.
|
875
885
|
*/
|
876
886
|
SC._object_className = function(obj) {
|
@@ -878,10 +888,10 @@ SC._object_className = function(obj) {
|
|
878
888
|
if (!obj._object_className) findClassNames() ;
|
879
889
|
if (obj._object_className) return obj._object_className ;
|
880
890
|
|
881
|
-
// if no direct classname was found, walk up class chain looking for a
|
891
|
+
// if no direct classname was found, walk up class chain looking for a
|
882
892
|
// match.
|
883
893
|
var ret = obj ;
|
884
|
-
while(ret && !ret._object_className) ret = ret.superclass;
|
894
|
+
while(ret && !ret._object_className) ret = ret.superclass;
|
885
895
|
return (ret && ret._object_className) ? ret._object_className : 'Anonymous';
|
886
896
|
} ;
|
887
897
|
|