sproutcore 1.9.2 → 1.10.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/VERSION.yml +2 -2
- data/bin/sc-build +12 -9
- data/bin/sc-build-number +12 -9
- data/bin/sc-docs +12 -15
- data/bin/sc-gen +12 -9
- data/bin/sc-init +12 -9
- data/bin/sc-manifest +12 -9
- data/bin/sc-server +12 -9
- data/bin/sproutcore +12 -9
- data/lib/frameworks/sproutcore/Buildfile +14 -17
- data/lib/frameworks/sproutcore/CHANGELOG.md +214 -3
- data/lib/frameworks/sproutcore/README.md +4 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/Buildfile +13 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps/greenhouse/README → apps/greenhouse/README.md} +1 -1
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/TODO +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/beautify.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/design.js +3 -3
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/file.js +3 -3
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/files.js +3 -3
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/layout.js +9 -9
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/library.js +23 -23
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/page.js +1 -1
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/property.js +1 -1
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/property_editor.js +2 -2
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/target.js +1 -1
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/targets.js +12 -12
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/controllers/view_configs.js +15 -15
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/core.js +14 -14
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/core_file.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/data_source.js +42 -42
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/app_page.js +45 -45
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/app-selector.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/button.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/dock.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/general.css +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/icons.css +5 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/main-page.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/menu.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/modal.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/picker.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/search.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/css/text-field.css +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/dialogs.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/sc-icon-sproutcore-16.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/inspectors.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/loading.rhtml +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/main_page.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/english.lproj/strings.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/fixtures/file.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/main.js +5 -5
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/mixins/drop_down.js +14 -14
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/models/design.js +4 -4
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/models/dir.js +12 -12
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/models/file.js +7 -9
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/models/target.js +12 -12
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/models/view_config.js +10 -10
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/resources/test_page.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/states/inspector.js +11 -11
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/states/library.js +10 -10
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/states/main.js +26 -25
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/states/modals.js +10 -10
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/states/ready.js +15 -15
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/controllers/design.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/controllers/designs.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/controllers/file.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/controllers/files.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/models/file.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/models/view_config.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/views/list_item.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/tests/views/plist_item.js +1 -5
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/theme.js +6 -6
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/anchor.js +43 -43
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/application_list_item.js +2 -2
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/event_blocker.js +7 -7
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/label_designer.js +0 -0
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/list_item.js +8 -8
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/plist_item.js +23 -23
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/simple_button.js +31 -31
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/tear_off_picker.js +12 -12
- data/lib/frameworks/sproutcore/{frameworks/experimental/apps → apps}/greenhouse/views/web.js +5 -5
- data/lib/frameworks/sproutcore/apps/media_examples/core.js +5 -6
- data/lib/frameworks/sproutcore/apps/media_examples/views/audio_view.js +16 -17
- data/lib/frameworks/sproutcore/apps/media_examples/views/camera_view.js +4 -5
- data/lib/frameworks/sproutcore/apps/media_examples/views/capabilities_view.js +17 -18
- data/lib/frameworks/sproutcore/apps/media_examples/views/microphone_view.js +4 -5
- data/lib/frameworks/sproutcore/apps/media_examples/views/video_view.js +18 -19
- data/lib/frameworks/sproutcore/apps/showcase/Buildfile +2 -2
- data/lib/frameworks/sproutcore/apps/showcase/README +1 -1
- data/lib/frameworks/sproutcore/apps/showcase/controllers/source_tree_controller.js +27 -7
- data/lib/frameworks/sproutcore/apps/showcase/core.js +6 -4
- data/lib/frameworks/sproutcore/apps/showcase/main.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/patch.diff +529 -0
- data/lib/frameworks/sproutcore/apps/showcase/resources/images/sproutcore-128.png +0 -0
- data/lib/frameworks/sproutcore/apps/showcase/resources/main_page.js +3 -2
- data/lib/frameworks/sproutcore/apps/showcase/resources/stylesheet.css +35 -16
- data/lib/frameworks/sproutcore/apps/showcase/resources/views_page.js +195 -10
- data/lib/frameworks/sproutcore/apps/showcase/system/views_item_content.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/theme.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/checkbox_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/date_field_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/disclosure_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/label_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/list_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/popup_button_views.js +3 -2
- data/lib/frameworks/sproutcore/apps/showcase/views/progress_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/radio_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/scroll_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/segmented_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/select_views.js +10 -9
- data/lib/frameworks/sproutcore/apps/showcase/views/slider_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/source_list_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/split_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/stacked_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/static_content_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/tab_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/text_field_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/toolbar_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/views_item_view.js +15 -6
- data/lib/frameworks/sproutcore/apps/showcase/views/views_list_view.js +5 -4
- data/lib/frameworks/sproutcore/apps/showcase/views/web_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/well_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/showcase/views/workspace_views.js +2 -1
- data/lib/frameworks/sproutcore/apps/statechart_routing/core.js +5 -5
- data/lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js +15 -15
- data/lib/frameworks/sproutcore/apps/statechart_routing/resources/styles.css +3 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +11 -11
- data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +6 -12
- data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +28 -33
- data/lib/frameworks/sproutcore/apps/tests/controllers/{detail.js → test.js} +14 -12
- data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +11 -15
- data/lib/frameworks/sproutcore/apps/tests/core.js +8 -113
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.css +9 -19
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +81 -92
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +3 -1
- data/lib/frameworks/sproutcore/apps/tests/main.js +8 -13
- data/lib/frameworks/sproutcore/apps/tests/statechart.js +268 -0
- data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +4 -4
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +16 -16
- data/lib/frameworks/sproutcore/apps/welcome/core.js +9 -9
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +22 -25
- data/lib/frameworks/sproutcore/apps/welcome/main.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-startup-landscape.jpg b/data/lib/frameworks/sproutcore/design/Assorted → Images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-startup-landscape.png b/data/lib/frameworks/sproutcore/design/Assorted → Images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-startup-portrait.jpg b/data/lib/frameworks/sproutcore/design/Assorted → Images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-startup-portrait.png b/data/lib/frameworks/sproutcore/design/Assorted → Images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-startup.png b/data/lib/frameworks/sproutcore/design/Assorted → Images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +21 -7
- data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +35 -2
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +142 -75
- data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +20 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/child_view_layouts/horizontal_stack_layout.js +283 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/child_view_layouts/vertical_stack_layout.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +64 -65
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +14 -14
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +8 -8
- data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +19 -19
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/run_loop.js +10 -25
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/selection_support.js +12 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/body_overflow.js +53 -34
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/layout.js +30 -24
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/main.js +44 -40
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +105 -176
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane_statechart.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/visibility.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/view_transition_protocol.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/browser.js +225 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/core_query.js +54 -34
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/cursor.js +86 -71
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +35 -35
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +283 -120
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/ready.js +36 -37
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +653 -435
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +49 -42
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +422 -396
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/selection_set.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +10 -8
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/theme.js +37 -16
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/timer.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils/rect.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/cursor.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/platform.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +17 -17
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +9 -9
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +43 -43
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +4 -14
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +18 -30
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +78 -43
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/theme.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +31 -15
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +47 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +32 -31
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +23 -22
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +17 -16
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +626 -211
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/border_frame_test.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build.js +22 -20
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/childViewLayout_test.js +27 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +11 -10
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +5 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +10 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +17 -12
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/destroy.js +60 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +19 -26
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +14 -13
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/enabled_states_test.js +341 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +9 -8
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/init.js +26 -16
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +28 -68
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +35 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +93 -78
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +62 -64
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +69 -18
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +26 -21
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +129 -57
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +436 -238
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +38 -44
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render.js +14 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +29 -20
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/replaceAllChildren_test.js +229 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +33 -95
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +87 -39
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view_states_test.js +684 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +767 -625
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/acceleration.js +4 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +645 -77
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/cursor.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +218 -19
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +648 -321
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout_style.js +326 -534
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +120 -126
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/statechart.js +1526 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/theming.js +18 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/visibility.js +12 -94
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +19 -19
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +43 -27
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/core_tools/resources/icons.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/resources/sc-icon-sproutcore-16.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +41 -41
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +90 -90
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +31 -31
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +2 -8
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +74 -48
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +11 -16
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +187 -253
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +14 -14
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +49 -9
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +236 -127
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/instance_management.js +107 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +12 -11
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +42 -17
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +20 -15
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +205 -92
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/tests/system/datetime.js +61 -25
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/resources/strings.js +39 -9
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +45 -1
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/tests/system/datetime.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/coders/design.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/coders/object.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/controllers/controllers.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/controllers/design.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/controllers/designs.js +19 -19
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/controllers/page_design.js +44 -44
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/controllers/page_files.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/css/css_rule.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/css/css_style.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/css/css_style_sheet.js +37 -37
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/designers/button.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/designers/label.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/designers/object_designer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/designers/tab.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/designers/text_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/designers/view_designer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/css/designer.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/design_page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/high_light.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/controller.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/dock-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/dock-item-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/dock-item-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/page.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/pane.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/images/view.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/english.lproj/selection_handles.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/ext/binding.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/ext/object.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/ext/page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/ext/view.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/mixins/button.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/mixins/snap_lines.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/tests/coders/page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/tests/designers/view_designer.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/views/designer_drop_target.js +36 -37
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/views/drawing.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/views/high_light.js +17 -17
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/views/page_item_view.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/designer → designer}/views/selection_handles.js +14 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +1 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +51 -51
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view → desktop}/mixins/split_child.js +63 -52
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view → desktop}/mixins/split_thumb.js +64 -59
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +113 -112
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +182 -203
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +13 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +51 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +513 -307
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +69 -217
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +31 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +15 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +2 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +25 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +29 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/popup_button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +19 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +14 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +24 -24
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view → desktop}/render_delegates/split.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view → desktop}/render_delegates/split_divider.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/modal.css +2 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/panel.css +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/resources/segmented.css +24 -98
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +446 -442
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +42 -21
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +19 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +26 -28
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +11 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +5 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +32 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +27 -22
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +5 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +11 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/displayProperties.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/keyEquivalents.js +9 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +23 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +15 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/{mixins → views/collection}/collection_fast_path.js +18 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +46 -53
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +101 -47
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +26 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +89 -69
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +27 -25
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +32 -35
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +6 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +3 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/drag_and_drop.js +103 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +76 -38
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +3 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/drag_and_drop.js +91 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +2 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +70 -38
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +17 -19
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +10 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +37 -30
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +18 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +115 -28
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +37 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +194 -182
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +2 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +18 -21
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +5 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/slider/methods.js +5 -4
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view/tests → desktop/tests/views/split}/children.js +15 -15
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view/tests → desktop/tests/views/split}/dividers.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +341 -45
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view/tests → desktop/tests/views/split}/split_child.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{experimental/frameworks/split_view/tests → desktop/tests/views/split}/split_thumb.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +6 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +49 -52
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +23 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +2 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +4 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +47 -38
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +24 -24
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +887 -740
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +68 -55
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +8 -26
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +189 -167
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +55 -54
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +8 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +145 -146
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +21 -21
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +66 -66
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +40 -44
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +203 -200
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +11 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +6 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +87 -112
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +192 -179
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_button.js +23 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +64 -64
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +56 -56
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +784 -714
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +21 -39
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +45 -41
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +4 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +9 -47
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +40 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +62 -50
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +0 -9
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +45 -45
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +16 -16
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +46 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/simple.js +16 -2
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/scroll_view/render_delegates/desktop_scroller.js +12 -12
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/scroll_view/tests/scroll/ui.js +38 -40
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/ext/menu.js +8 -8
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/select_view/views/select.js +20 -20
- data/lib/frameworks/sproutcore/frameworks/formatters/formatters/date_formatter.js +16 -16
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +26 -14
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +43 -43
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/test-image.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/delegates/inline_text_field.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +63 -41
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +60 -61
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +72 -72
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +142 -142
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gesturable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inner_frame.js +10 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +36 -29
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/swap_transition_protocol.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +54 -29
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +23 -18
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +12 -11
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/benchmark.css +21 -20
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-128.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-256.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-32.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-48.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-512.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-64.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/label.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/app_cache.js +412 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +2 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +11 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +21 -21
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +8 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +33 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/delegates/inline_text_field/inline_text_field.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +9 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +5 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/flowed_layout/tests.js +49 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +29 -21
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +3 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +8 -10
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/app_cache_test.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/image_queue.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +0 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +40 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/transition_test.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +5 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +187 -84
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +6 -41
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +51 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +11 -16
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/adjust_bounce_transition.js +80 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/adjust_smooth_transition.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/adjust_spring_transition.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/bounce_transition.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/fade_transition.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/pop_transition.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/scale_transition.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/slide_transition.js +140 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/spring_transition.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/swap_dissolve_transition.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/swap_fade_color_transition.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/swap_move_in_transition.js +104 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/swap_push_transition.js +181 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/transitions/swap_reveal_transition.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +483 -95
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +65 -65
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +111 -100
- data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +30 -222
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +38 -24
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +74 -62
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-1.8.3-patched.js +9485 -0
- data/lib/frameworks/sproutcore/frameworks/media/media_capabilities.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/media/render_delegates/media_slider.js +20 -20
- data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +18 -17
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +19 -19
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +10 -11
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +7 -8
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +24 -24
- data/lib/frameworks/sproutcore/frameworks/qunit/test/test.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/routing/system/routes.js +32 -21
- data/lib/frameworks/sproutcore/frameworks/routing/tests/system/routes.js +72 -53
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +164 -156
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/array.js +20 -20
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +145 -140
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +393 -370
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1045 -999
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +41 -36
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +10 -4
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +11 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +275 -205
- data/lib/frameworks/sproutcore/frameworks/runtime/system/function.js +27 -27
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +229 -193
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +24 -24
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +186 -188
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +138 -65
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +11 -10
- data/lib/frameworks/sproutcore/frameworks/runtime/system/string.js +8 -4
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +4 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +112 -23
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +71 -18
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +97 -57
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +22 -22
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/infinite.js +184 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +63 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +73 -36
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +100 -25
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/string.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/sequence_matcher.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/statechart/private/state_path_matcher.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/statechart/system/history_state.js +32 -32
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +449 -422
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state_route_handler_context.js +19 -19
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +612 -562
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/routing/with_concurrent_states/basic.js +115 -62
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/routing/without_concurrent_states/basic.js +145 -64
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/respond_to_event.js +17 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +30 -30
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +34 -34
- data/lib/frameworks/sproutcore/frameworks/template_view/ext/handlebars/bind.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/template_view/ext/handlebars/collection.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/template_view/ext/handlebars/view.js +3 -5
- data/lib/frameworks/sproutcore/frameworks/template_view/tests/panes/template.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/template_view/tests/views/template/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/template_view/views/bindable_span.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/template_view/views/template.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/template_view/views/template_collection.js +15 -21
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +35 -35
- data/lib/frameworks/sproutcore/scripts/run_sc_server_master.sh +34 -0
- data/lib/frameworks/sproutcore/tests/phantomjs_runner.phantomjs +606 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/panel/PanelPane.opacity +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/panel/Pointers.opacity +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +3 -4
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +18 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/panel@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.css +34 -14
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/pointers@2x.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +5 -4
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +7 -2
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +5 -4
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +6 -3
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +7 -5
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/button.js +7 -7
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/progress.js +37 -37
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/slider.js +12 -12
- data/lib/sproutcore/helpers/static_helper.rb +35 -27
- data/sproutcore.gemspec +1 -0
- metadata +529 -451
- data/lib/frameworks/sproutcore/apps/showcase/resources/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/apps/showcase/views/button_views.js +0 -55
- data/lib/frameworks/sproutcore/apps/showcase/views/container_views.js +0 -29
- data/lib/frameworks/sproutcore/apps/showcase/views/grid_views.js +0 -28
- data/lib/frameworks/sproutcore/apps/showcase/views/image_button_views.js +0 -22
- data/lib/frameworks/sproutcore/apps/showcase/views/image_views.js +0 -51
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +0 -26
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +0 -56
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +0 -41
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +0 -48
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +0 -41
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +0 -44
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +0 -31
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +0 -39
- data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/animation/Buildfile +0 -3
- data/lib/frameworks/sproutcore/frameworks/animation/LICENSE +0 -25
- data/lib/frameworks/sproutcore/frameworks/animation/README.md +0 -79
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +0 -1208
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +0 -152
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +0 -67
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +0 -203
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +0 -213
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +0 -163
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +0 -97
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/methods.js +0 -312
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split.js +0 -961
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split_divider.js +0 -40
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/thumb.js +0 -27
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/resources/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +0 -394
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +0 -133
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +0 -18
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +0 -8981
- data/lib/frameworks/sproutcore/frameworks/jquery/tests/set_class.js +0 -40
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
@@ -62,7 +62,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
62
62
|
/** @scope SC.MenuPane.prototype */ {
|
63
63
|
|
64
64
|
/**
|
65
|
-
@
|
65
|
+
@type Array
|
66
66
|
@default ['sc-menu']
|
67
67
|
@see SC.View#classNames
|
68
68
|
*/
|
@@ -71,7 +71,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
71
71
|
/**
|
72
72
|
The WAI-ARIA role for menu pane.
|
73
73
|
|
74
|
-
@
|
74
|
+
@type String
|
75
75
|
@default 'menu'
|
76
76
|
@constant
|
77
77
|
*/
|
@@ -88,10 +88,10 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
88
88
|
various itemKey properties to tell the menu how to extract the information
|
89
89
|
it needs.
|
90
90
|
|
91
|
-
@
|
91
|
+
@type Array
|
92
92
|
@default []
|
93
93
|
*/
|
94
|
-
items:
|
94
|
+
items: null,
|
95
95
|
|
96
96
|
/**
|
97
97
|
The size of the menu. This will set a CSS style on the menu that can be
|
@@ -114,7 +114,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
114
114
|
|
115
115
|
Changing the controlSize once the menu is instantiated has no effect.
|
116
116
|
|
117
|
-
@
|
117
|
+
@type String
|
118
118
|
@default SC.REGULAR_CONTROL_SIZE
|
119
119
|
*/
|
120
120
|
controlSize: SC.REGULAR_CONTROL_SIZE,
|
@@ -128,7 +128,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
128
128
|
If you don't specify a value, the item height will be inferred from
|
129
129
|
`controlSize`.
|
130
130
|
|
131
|
-
@
|
131
|
+
@type Number
|
132
132
|
@default itemHeight from theme if present, or 20.
|
133
133
|
*/
|
134
134
|
itemHeight: SC.propertyFromRenderDelegate('itemHeight', 20),
|
@@ -142,7 +142,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
142
142
|
If you don't specify a value, the height of the separator menu items will
|
143
143
|
be inferred from `controlSize`.
|
144
144
|
|
145
|
-
@
|
145
|
+
@type Number
|
146
146
|
@default itemSeparatorHeight from theme, or 9.
|
147
147
|
*/
|
148
148
|
itemSeparatorHeight: SC.propertyFromRenderDelegate('itemSeparatorHeight', 9),
|
@@ -151,7 +151,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
151
151
|
The height of the menu pane. This is updated every time menuItemViews
|
152
152
|
is recalculated.
|
153
153
|
|
154
|
-
@
|
154
|
+
@type Number
|
155
155
|
@default 0
|
156
156
|
@isReadOnly
|
157
157
|
*/
|
@@ -167,7 +167,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
167
167
|
If you don't specify a value, the padding will be inferred from the
|
168
168
|
controlSize.
|
169
169
|
|
170
|
-
@
|
170
|
+
@type Number
|
171
171
|
@default menuHeightPadding from theme, or 6
|
172
172
|
*/
|
173
173
|
menuHeightPadding: SC.propertyFromRenderDelegate('menuHeightPadding', 6),
|
@@ -178,7 +178,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
178
178
|
If you don't specify a value, the padding will be inferred from the
|
179
179
|
controlSize.
|
180
180
|
|
181
|
-
@
|
181
|
+
@type Number
|
182
182
|
@default submenuOffsetX from theme, or 2
|
183
183
|
*/
|
184
184
|
submenuOffsetX: SC.propertyFromRenderDelegate('submenuOffsetX', 2),
|
@@ -189,7 +189,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
189
189
|
You can place an observer on this property to be notified when the user
|
190
190
|
makes a selection.
|
191
191
|
|
192
|
-
@
|
192
|
+
@type SC.Object
|
193
193
|
@default null
|
194
194
|
@isReadOnly
|
195
195
|
*/
|
@@ -202,7 +202,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
202
202
|
set here for each item in the `items` array. You may provide your own
|
203
203
|
subclass for this property to display the customized content.
|
204
204
|
|
205
|
-
@
|
205
|
+
@type SC.View
|
206
206
|
@default SC.MenuItemView
|
207
207
|
*/
|
208
208
|
exampleView: SC.MenuItemView,
|
@@ -250,7 +250,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
250
250
|
/**
|
251
251
|
Disable context menu.
|
252
252
|
|
253
|
-
@
|
253
|
+
@type Boolean
|
254
254
|
@default NO
|
255
255
|
*/
|
256
256
|
isContextMenuEnabled: NO,
|
@@ -271,10 +271,9 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
271
271
|
should anchor.
|
272
272
|
@param {Array} (preferMatrix) The prefer matrix used to position the pane.
|
273
273
|
*/
|
274
|
-
popup: function(anchorViewOrElement, preferMatrix) {
|
275
|
-
var anchor;
|
274
|
+
popup: function (anchorViewOrElement, preferMatrix) {
|
276
275
|
this.beginPropertyChanges();
|
277
|
-
if(anchorViewOrElement){
|
276
|
+
if (anchorViewOrElement) {
|
278
277
|
if (anchorViewOrElement.isView) {
|
279
278
|
this._anchorView = anchorViewOrElement;
|
280
279
|
this._setupScrollObservers(anchorViewOrElement);
|
@@ -283,7 +282,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
283
282
|
}
|
284
283
|
}
|
285
284
|
// this.set('anchor',anchorViewOrElement);
|
286
|
-
if (preferMatrix) this.set('preferMatrix',preferMatrix)
|
285
|
+
if (preferMatrix) this.set('preferMatrix', preferMatrix);
|
287
286
|
|
288
287
|
this.adjust('height', this.get('menuHeight'));
|
289
288
|
this.positionPane();
|
@@ -293,28 +292,11 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
293
292
|
// interpreted in keyUp.
|
294
293
|
this.set('defaultResponder', this);
|
295
294
|
this.endPropertyChanges();
|
296
|
-
this._hideOverflow();
|
297
|
-
|
298
|
-
this.append();
|
299
|
-
},
|
300
|
-
|
301
|
-
/**
|
302
|
-
Removes the menu from the screen.
|
303
|
-
|
304
|
-
@returns {SC.MenuPane} receiver
|
305
|
-
*/
|
306
|
-
remove: function() {
|
307
|
-
var parentMenu = this.get('parentMenu');
|
308
295
|
|
309
|
-
|
310
|
-
|
311
|
-
this.resignMenuPane();
|
296
|
+
// Prevent body overflow (we don't want to overflow because of shadows).
|
297
|
+
SC.bodyOverflowArbitrator.requestHidden(this, true);
|
312
298
|
|
313
|
-
|
314
|
-
parentMenu.becomeMenuPane();
|
315
|
-
}
|
316
|
-
|
317
|
-
return sc_super();
|
299
|
+
this.append();
|
318
300
|
},
|
319
301
|
|
320
302
|
// ..........................................................
|
@@ -484,10 +466,30 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
484
466
|
|
485
467
|
@private
|
486
468
|
@isReadOnly
|
487
|
-
@
|
469
|
+
@type Array
|
488
470
|
*/
|
489
471
|
menuItemKeys: ['itemTitleKey', 'itemValueKey', 'itemIsEnabledKey', 'itemIconKey', 'itemSeparatorKey', 'itemActionKey', 'itemCheckboxKey', 'itemShortCutKey', 'itemHeightKey', 'itemSubMenuKey', 'itemKeyEquivalentKey', 'itemTargetKey', 'itemLayerIdKey'],
|
490
472
|
|
473
|
+
// ..........................................................
|
474
|
+
// DEFAULT PROPERTIES
|
475
|
+
//
|
476
|
+
|
477
|
+
/*
|
478
|
+
If an item doesn't specify a target, this is used. (Only used if an action is found and is not a function.)
|
479
|
+
|
480
|
+
@type String
|
481
|
+
@default null
|
482
|
+
*/
|
483
|
+
target: null,
|
484
|
+
|
485
|
+
/*
|
486
|
+
If an item doesn't specify an action, this is used.
|
487
|
+
|
488
|
+
@type String
|
489
|
+
@default null
|
490
|
+
*/
|
491
|
+
action: null,
|
492
|
+
|
491
493
|
// ..........................................................
|
492
494
|
// INTERNAL PROPERTIES
|
493
495
|
//
|
@@ -504,32 +506,25 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
504
506
|
*/
|
505
507
|
isModal: YES,
|
506
508
|
|
507
|
-
/**
|
508
|
-
The view that contains the `MenuItemView`s that are visible on screen.
|
509
|
-
|
510
|
-
This is created and set in `createChildViews`.
|
511
|
-
|
512
|
-
@property SC.View
|
513
|
-
@private
|
514
|
-
*/
|
515
|
-
_menuView: null,
|
516
|
-
|
517
509
|
// ..........................................................
|
518
510
|
// INTERNAL METHODS
|
519
511
|
//
|
520
512
|
|
521
|
-
/**
|
522
|
-
|
523
|
-
|
513
|
+
/** @private */
|
514
|
+
init: function () {
|
515
|
+
// Initialize the items array.
|
516
|
+
if (!this.items) { this.items = []; }
|
524
517
|
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
518
|
+
// An associative array of the shortcut keys. The key is the shortcut in the
|
519
|
+
// form 'ctrl_z', and the value is the menu item of the action to trigger.
|
520
|
+
this._keyEquivalents = {};
|
521
|
+
|
522
|
+
// Continue initializing now that default values exist.
|
523
|
+
sc_super();
|
530
524
|
},
|
531
525
|
|
532
526
|
displayProperties: ['controlSize'],
|
527
|
+
|
533
528
|
renderDelegateName: 'menuRenderDelegate',
|
534
529
|
|
535
530
|
/**
|
@@ -540,7 +535,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
540
535
|
@private
|
541
536
|
@returns {SC.View} receiver
|
542
537
|
*/
|
543
|
-
createChildViews: function() {
|
538
|
+
createChildViews: function () {
|
544
539
|
var scroll, menuView, menuItemViews;
|
545
540
|
|
546
541
|
scroll = this._menuScrollView = this.createChildView(SC.MenuScrollView, {
|
@@ -549,11 +544,11 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
549
544
|
});
|
550
545
|
|
551
546
|
menuView = this._menuView = SC.View.create({
|
552
|
-
parentViewDidResize: function() {
|
547
|
+
parentViewDidResize: function () {
|
553
548
|
this.notifyPropertyChange('frame');
|
554
549
|
},
|
555
550
|
|
556
|
-
viewDidResize: function() {
|
551
|
+
viewDidResize: function () {
|
557
552
|
|
558
553
|
}
|
559
554
|
});
|
@@ -563,38 +558,39 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
563
558
|
menuView.replaceAllChildren(menuItemViews);
|
564
559
|
scroll.set('contentView', menuView);
|
565
560
|
|
561
|
+
|
566
562
|
this.childViews = [scroll];
|
567
563
|
|
568
564
|
return this;
|
569
565
|
},
|
570
566
|
|
571
567
|
/**
|
572
|
-
|
573
|
-
view to be visible in the window and register with the `RootResponder`.
|
568
|
+
Called when the pane is attached. Takes on menu pane status.
|
574
569
|
|
575
570
|
We don't call `sc_super()` here because `PanelPane` sets the current pane to
|
576
571
|
be the key pane when attached.
|
577
|
-
|
578
|
-
@returns {SC.MenuPane} receiver
|
579
572
|
*/
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
responder.panes.add(this);
|
584
|
-
|
585
|
-
// set currentWindowSize
|
586
|
-
this.set('currentWindowSize', responder.computeWindowSize()) ;
|
573
|
+
didAppendToDocument: function () {
|
574
|
+
this.becomeMenuPane();
|
575
|
+
},
|
587
576
|
|
588
|
-
|
589
|
-
|
590
|
-
|
577
|
+
/**
|
578
|
+
Called when the pane is detached. Closes all submenus and resigns menu pane
|
579
|
+
status.
|
591
580
|
|
592
|
-
|
593
|
-
|
581
|
+
We don't call `sc_super()` here because `PanelPane` resigns key pane when
|
582
|
+
detached.
|
583
|
+
*/
|
584
|
+
willRemoveFromDocument: function () {
|
585
|
+
var parentMenu = this.get('parentMenu');
|
594
586
|
|
595
|
-
this.
|
587
|
+
this.set('currentMenuItem', null);
|
588
|
+
this.closeOpenMenus();
|
589
|
+
this.resignMenuPane();
|
596
590
|
|
597
|
-
|
591
|
+
if (parentMenu) {
|
592
|
+
parentMenu.becomeMenuPane();
|
593
|
+
}
|
598
594
|
},
|
599
595
|
|
600
596
|
/**
|
@@ -604,9 +600,10 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
604
600
|
|
605
601
|
@returns {SC.Pane} receiver
|
606
602
|
*/
|
607
|
-
becomeMenuPane: function() {
|
608
|
-
if (this.rootResponder) this.rootResponder.makeMenuPane(this)
|
609
|
-
|
603
|
+
becomeMenuPane: function () {
|
604
|
+
if (this.rootResponder) this.rootResponder.makeMenuPane(this);
|
605
|
+
|
606
|
+
return this;
|
610
607
|
},
|
611
608
|
|
612
609
|
/**
|
@@ -615,9 +612,10 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
615
612
|
|
616
613
|
@returns {SC.Pane} receiver
|
617
614
|
*/
|
618
|
-
resignMenuPane: function() {
|
615
|
+
resignMenuPane: function () {
|
619
616
|
if (this.rootResponder) this.rootResponder.makeMenuPane(null);
|
620
|
-
|
617
|
+
|
618
|
+
return this;
|
621
619
|
},
|
622
620
|
|
623
621
|
/**
|
@@ -629,14 +627,11 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
629
627
|
This calls createMenuItemViews. If you want to override this property, override
|
630
628
|
that method.
|
631
629
|
|
632
|
-
|
633
|
-
that method.
|
634
|
-
|
635
|
-
@property
|
630
|
+
@type
|
636
631
|
@type Array
|
637
632
|
@readOnly
|
638
633
|
*/
|
639
|
-
menuItemViews: function() {
|
634
|
+
menuItemViews: function () {
|
640
635
|
return this.createMenuItemViews();
|
641
636
|
}.property('displayItems').cacheable(),
|
642
637
|
|
@@ -647,7 +642,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
647
642
|
|
648
643
|
@return Array
|
649
644
|
*/
|
650
|
-
createMenuItemViews: function() {
|
645
|
+
createMenuItemViews: function () {
|
651
646
|
var views = [], items = this.get('displayItems'),
|
652
647
|
exampleView = this.get('exampleView'), item, itemView, view,
|
653
648
|
exampleViewKey, itemExampleView,
|
@@ -657,6 +652,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
657
652
|
len;
|
658
653
|
|
659
654
|
if (!items) return views; // return an empty array
|
655
|
+
|
660
656
|
heightKey = this.get('itemHeightKey');
|
661
657
|
separatorKey = this.get('itemSeparatorKey');
|
662
658
|
exampleViewKey = this.get('itemExampleViewKey');
|
@@ -664,7 +660,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
664
660
|
keyEquivalentKey = this.get('itemKeyEquivalentKey');
|
665
661
|
separatorHeight = this.get('itemSeparatorHeight');
|
666
662
|
layerIdKey = this.get('itemLayerIdKey');
|
667
|
-
menuHeightPadding = Math.floor(this.get('menuHeightPadding')/2);
|
663
|
+
menuHeightPadding = Math.floor(this.get('menuHeightPadding') / 2);
|
668
664
|
menuHeight = menuHeightPadding;
|
669
665
|
|
670
666
|
keyArray = this.menuItemKeys.map(SC._menu_fetchKeys, this);
|
@@ -695,7 +691,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
695
691
|
parentMenu: this
|
696
692
|
};
|
697
693
|
|
698
|
-
if(item.get(layerIdKey)) {
|
694
|
+
if (item.get(layerIdKey)) {
|
699
695
|
propertiesHash.layerId = item.get(layerIdKey);
|
700
696
|
}
|
701
697
|
|
@@ -713,42 +709,33 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
713
709
|
keyEquivalent = item.get(keyEquivalentKey);
|
714
710
|
if (keyEquivalent) {
|
715
711
|
// if array, apply each one for this view
|
716
|
-
if(SC.typeOf(keyEquivalent)===SC.T_ARRAY) {
|
717
|
-
keyEquivalent.forEach(function(keyEq) {
|
712
|
+
if (SC.typeOf(keyEquivalent) === SC.T_ARRAY) {
|
713
|
+
keyEquivalent.forEach(function (keyEq) {
|
718
714
|
this._keyEquivalents[keyEq] = view;
|
719
715
|
}, this);
|
720
|
-
}
|
721
|
-
else {
|
716
|
+
} else {
|
722
717
|
this._keyEquivalents[keyEquivalent] = view;
|
723
718
|
}
|
724
719
|
}
|
725
720
|
}
|
726
721
|
|
727
|
-
this.set('menuHeight', menuHeight+menuHeightPadding);
|
722
|
+
this.set('menuHeight', menuHeight + menuHeightPadding);
|
728
723
|
return views;
|
729
724
|
},
|
730
725
|
|
731
726
|
/**
|
732
727
|
Returns the menu item view for the content object at the specified index.
|
733
728
|
|
734
|
-
@param
|
729
|
+
@param Number idx the item index
|
735
730
|
@returns {SC.MenuItemView} instantiated view
|
736
731
|
*/
|
737
|
-
menuItemViewForContentIndex: function(idx) {
|
732
|
+
menuItemViewForContentIndex: function (idx) {
|
738
733
|
var menuItemViews = this.get('menuItemViews');
|
739
734
|
|
740
735
|
if (!menuItemViews) return undefined;
|
741
736
|
return menuItemViews.objectAt(idx);
|
742
737
|
},
|
743
738
|
|
744
|
-
/**
|
745
|
-
An associative array of the shortcut keys. The key is the shortcut in the
|
746
|
-
form 'ctrl_z', and the value is the menu item of the action to trigger.
|
747
|
-
|
748
|
-
@private
|
749
|
-
*/
|
750
|
-
_keyEquivalents: { },
|
751
|
-
|
752
739
|
/**
|
753
740
|
If this is a submenu, this property corresponds to the
|
754
741
|
top-most parent menu. If this is the root menu, it returns
|
@@ -756,19 +743,39 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
756
743
|
|
757
744
|
@type SC.MenuPane
|
758
745
|
@isReadOnly
|
759
|
-
@
|
746
|
+
@type
|
760
747
|
*/
|
761
|
-
rootMenu: function() {
|
748
|
+
rootMenu: function () {
|
762
749
|
if (this.get('isSubMenu')) return this.getPath('parentMenu.rootMenu');
|
763
750
|
return this;
|
764
751
|
}.property('isSubMenu').cacheable(),
|
765
752
|
|
753
|
+
|
754
|
+
destroy: function () {
|
755
|
+
var ret = sc_super();
|
756
|
+
|
757
|
+
// Clean up previous enumerable observer.
|
758
|
+
if (this._sc_menu_items) {
|
759
|
+
this._sc_menu_items.removeObserver('[]', this, '_sc_menu_itemPropertiesDidChange');
|
760
|
+
}
|
761
|
+
|
762
|
+
// Destroy the menu view we created. The scroll view's container will NOT
|
763
|
+
// destroy this because it receives it already instantiated.
|
764
|
+
this._menuView.destroy();
|
765
|
+
|
766
|
+
// Clean up caches.
|
767
|
+
this._sc_menu_items = null;
|
768
|
+
this._menuView = null;
|
769
|
+
|
770
|
+
return ret;
|
771
|
+
},
|
772
|
+
|
766
773
|
/**
|
767
774
|
Close the menu if the user resizes the window.
|
768
775
|
|
769
776
|
@private
|
770
777
|
*/
|
771
|
-
windowSizeDidChange: function(
|
778
|
+
windowSizeDidChange: function () {
|
772
779
|
this.remove();
|
773
780
|
return sc_super();
|
774
781
|
},
|
@@ -786,24 +793,20 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
786
793
|
If an `items` member is a string, we create a hash with the title value
|
787
794
|
set to that string, and some sensible defaults for the other properties.
|
788
795
|
|
789
|
-
As a last resort, if an `items` member is an array, we have a legacy
|
790
|
-
handler that converts the array into a hash. This behavior is deprecated
|
791
|
-
and is not guaranteed to be supported in the future.
|
792
|
-
|
793
796
|
A side effect of running this computed property is that the menuHeight
|
794
797
|
property is updated.
|
795
798
|
|
796
799
|
`displayItems` should never be set directly; instead, set `items` and
|
797
800
|
`displayItems` will update automatically.
|
798
801
|
|
799
|
-
@
|
802
|
+
@type
|
800
803
|
@type Array
|
801
804
|
@isReadOnly
|
802
805
|
*/
|
803
|
-
displayItems: function() {
|
804
|
-
var items = this.get('items'),
|
805
|
-
|
806
|
-
|
806
|
+
displayItems: function () {
|
807
|
+
var items = this.get('items'),
|
808
|
+
len,
|
809
|
+
ret = [], idx, item, itemType;
|
807
810
|
|
808
811
|
if (!items) return null;
|
809
812
|
|
@@ -812,7 +815,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
812
815
|
// Loop through the items property and transmute as needed, then
|
813
816
|
// copy the new objects into the ret array.
|
814
817
|
for (idx = 0; idx < len; idx++) {
|
815
|
-
item = items.objectAt(idx)
|
818
|
+
item = items.objectAt(idx);
|
816
819
|
|
817
820
|
// fast track out if we can't do anything with this item
|
818
821
|
if (!item) continue;
|
@@ -825,8 +828,6 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
825
828
|
});
|
826
829
|
} else if (itemType === SC.T_HASH) {
|
827
830
|
item = SC.Object.create(item);
|
828
|
-
} else if (itemType === SC.T_ARRAY) {
|
829
|
-
item = this.convertArrayMenuItemToObject(item);
|
830
831
|
}
|
831
832
|
item.contentIndex = idx;
|
832
833
|
|
@@ -836,61 +837,39 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
836
837
|
return ret;
|
837
838
|
}.property('items').cacheable(),
|
838
839
|
|
839
|
-
_sc_menu_itemsDidChange: function() {
|
840
|
-
var
|
841
|
-
|
840
|
+
_sc_menu_itemsDidChange: function () {
|
841
|
+
var items = this.get('items');
|
842
|
+
|
843
|
+
// Clean up previous enumerable observer.
|
844
|
+
if (this._sc_menu_items) {
|
845
|
+
this._sc_menu_items.removeObserver('[]', this, '_sc_menu_itemPropertiesDidChange');
|
846
|
+
}
|
847
|
+
|
848
|
+
// Add new enumerable observer
|
849
|
+
if (items) {
|
850
|
+
items.addObserver('[]', this, '_sc_menu_itemPropertiesDidChange');
|
851
|
+
}
|
852
|
+
|
853
|
+
// Cache the last items.
|
854
|
+
this._sc_menu_items = items;
|
855
|
+
|
856
|
+
var itemViews;
|
857
|
+
itemViews = this.get('menuItemViews');
|
858
|
+
this._menuView.replaceAllChildren(itemViews);
|
842
859
|
this._menuView.adjust('height', this.get('menuHeight'));
|
843
860
|
}.observes('items'),
|
844
861
|
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
The mapping goes a little something like this:
|
850
|
-
0: title
|
851
|
-
1: value
|
852
|
-
2: isEnabled
|
853
|
-
3: icon
|
854
|
-
4: isSeparator
|
855
|
-
5: action
|
856
|
-
6: isCheckbox
|
857
|
-
7: isShortCut
|
858
|
-
8: isBranch
|
859
|
-
9: itemHeight
|
860
|
-
10: subMenu
|
861
|
-
11: keyEquivalent
|
862
|
-
12: target
|
862
|
+
_sc_menu_itemPropertiesDidChange: function () {
|
863
|
+
// Indicate that the displayItems changed.
|
864
|
+
this.notifyPropertyChange('displayItems');
|
863
865
|
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
var keys, fetchKeys = SC._menu_fetchKeys,
|
870
|
-
fetchItem = SC._menu_fetchItem, cur, ret = SC.Object.create(), idx, loc;
|
871
|
-
|
872
|
-
// Gets an array of all of the value keys
|
873
|
-
keys = this.menuItemKeys.map(fetchKeys, this);
|
874
|
-
|
875
|
-
// title
|
876
|
-
ret[keys[0]] = item[0];
|
877
|
-
ret[keys[1]] = item[1];
|
878
|
-
ret[keys[2]] = item[2];
|
879
|
-
ret[keys[3]] = item[3];
|
880
|
-
ret[keys[4]] = item[4];
|
881
|
-
ret[keys[5]] = item[5];
|
882
|
-
ret[keys[6]] = item[6];
|
883
|
-
ret[keys[7]] = item[7];
|
884
|
-
ret[keys[8]] = item[8];
|
885
|
-
ret[keys[9]] = item[9];
|
886
|
-
ret[keys[10]] = item[10];
|
887
|
-
ret[keys[11]] = item[11];
|
888
|
-
ret[keys[12]] = item[12];
|
889
|
-
|
890
|
-
return ret;
|
866
|
+
var itemViews;
|
867
|
+
itemViews = this.get('menuItemViews');
|
868
|
+
this._menuView.replaceAllChildren(itemViews);
|
869
|
+
this._menuView.adjust('height', this.get('menuHeight'));
|
891
870
|
},
|
892
871
|
|
893
|
-
currentMenuItem: function(key, value) {
|
872
|
+
currentMenuItem: function (key, value) {
|
894
873
|
if (value !== undefined) {
|
895
874
|
if (this._currentMenuItem !== null) {
|
896
875
|
this.set('previousMenuItem', this._currentMenuItem);
|
@@ -904,7 +883,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
904
883
|
return this._currentMenuItem;
|
905
884
|
}.property().cacheable(),
|
906
885
|
|
907
|
-
_sc_menu_currentMenuItemDidChange: function() {
|
886
|
+
_sc_menu_currentMenuItemDidChange: function () {
|
908
887
|
var currentMenuItem = this.get('currentMenuItem'),
|
909
888
|
previousMenuItem = this.get('previousMenuItem');
|
910
889
|
|
@@ -925,7 +904,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
925
904
|
}
|
926
905
|
}.observes('currentMenuItem'),
|
927
906
|
|
928
|
-
closeOpenMenusFor: function(menuItem) {
|
907
|
+
closeOpenMenusFor: function (menuItem) {
|
929
908
|
if (!menuItem) return;
|
930
909
|
|
931
910
|
var menu = menuItem.get('parentMenu');
|
@@ -941,16 +920,16 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
941
920
|
}
|
942
921
|
},
|
943
922
|
|
944
|
-
closeOpenMenus: function() {
|
923
|
+
closeOpenMenus: function () {
|
945
924
|
this.closeOpenMenusFor(this.get('previousMenuItem'));
|
946
925
|
},
|
947
926
|
|
948
927
|
//Mouse and Key Events
|
949
928
|
|
950
929
|
/** @private */
|
951
|
-
mouseDown: function(evt) {
|
930
|
+
mouseDown: function (evt) {
|
952
931
|
this.modalPaneDidClick(evt);
|
953
|
-
return YES
|
932
|
+
return YES;
|
954
933
|
},
|
955
934
|
|
956
935
|
/** @private
|
@@ -960,13 +939,13 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
960
939
|
|
961
940
|
@param {Event} evt
|
962
941
|
*/
|
963
|
-
mouseEntered: function(
|
942
|
+
mouseEntered: function () {
|
964
943
|
this.set('mouseHasEntered', YES);
|
965
944
|
},
|
966
945
|
|
967
|
-
keyUp: function(evt) {
|
968
|
-
var ret = this.interpretKeyEvents(evt)
|
969
|
-
return !ret ? NO : ret
|
946
|
+
keyUp: function (evt) {
|
947
|
+
var ret = this.interpretKeyEvents(evt);
|
948
|
+
return !ret ? NO : ret;
|
970
949
|
},
|
971
950
|
|
972
951
|
/**
|
@@ -975,17 +954,17 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
975
954
|
|
976
955
|
@private
|
977
956
|
*/
|
978
|
-
moveUp: function() {
|
957
|
+
moveUp: function () {
|
979
958
|
var currentMenuItem = this.get('currentMenuItem'),
|
980
959
|
items = this.get('menuItemViews'),
|
981
|
-
currentIndex,
|
960
|
+
currentIndex, idx;
|
982
961
|
|
983
962
|
if (!currentMenuItem) {
|
984
|
-
idx = items.get('length')-1;
|
963
|
+
idx = items.get('length') - 1;
|
985
964
|
} else {
|
986
965
|
currentIndex = currentMenuItem.getPath('content.contentIndex');
|
987
966
|
if (currentIndex === 0) return YES;
|
988
|
-
idx = currentIndex-1;
|
967
|
+
idx = currentIndex - 1;
|
989
968
|
}
|
990
969
|
|
991
970
|
while (idx >= 0) {
|
@@ -1006,18 +985,18 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1006
985
|
|
1007
986
|
@private
|
1008
987
|
*/
|
1009
|
-
moveDown: function() {
|
988
|
+
moveDown: function () {
|
1010
989
|
var currentMenuItem = this.get('currentMenuItem'),
|
1011
990
|
items = this.get('menuItemViews'),
|
1012
991
|
len = items.get('length'),
|
1013
|
-
currentIndex,
|
992
|
+
currentIndex, idx;
|
1014
993
|
|
1015
994
|
if (!currentMenuItem) {
|
1016
995
|
idx = 0;
|
1017
996
|
} else {
|
1018
997
|
currentIndex = currentMenuItem.getPath('content.contentIndex');
|
1019
998
|
if (currentIndex === len) return YES;
|
1020
|
-
idx = currentIndex+1;
|
999
|
+
idx = currentIndex + 1;
|
1021
1000
|
}
|
1022
1001
|
|
1023
1002
|
while (idx < len) {
|
@@ -1037,7 +1016,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1037
1016
|
|
1038
1017
|
@private
|
1039
1018
|
*/
|
1040
|
-
moveToBeginningOfDocument: function() {
|
1019
|
+
moveToBeginningOfDocument: function () {
|
1041
1020
|
var items = this.get('menuItemViews'),
|
1042
1021
|
len = items.get('length'),
|
1043
1022
|
idx = 0;
|
@@ -1059,7 +1038,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1059
1038
|
|
1060
1039
|
@private
|
1061
1040
|
*/
|
1062
|
-
moveToEndOfDocument: function() {
|
1041
|
+
moveToEndOfDocument: function () {
|
1063
1042
|
var items = this.get('menuItemViews'),
|
1064
1043
|
len = items.get('length'),
|
1065
1044
|
idx = len - 1;
|
@@ -1082,7 +1061,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1082
1061
|
|
1083
1062
|
@private
|
1084
1063
|
*/
|
1085
|
-
pageDown: function() {
|
1064
|
+
pageDown: function () {
|
1086
1065
|
var currentMenuItem = this.get('currentMenuItem'),
|
1087
1066
|
item, items = this.get('menuItemViews'),
|
1088
1067
|
len = items.get('length'),
|
@@ -1128,7 +1107,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1128
1107
|
|
1129
1108
|
@private
|
1130
1109
|
*/
|
1131
|
-
pageUp: function() {
|
1110
|
+
pageUp: function () {
|
1132
1111
|
var currentMenuItem = this.get('currentMenuItem'),
|
1133
1112
|
item, items = this.get('menuItemViews'),
|
1134
1113
|
len = items.get('length'),
|
@@ -1168,7 +1147,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1168
1147
|
return YES;
|
1169
1148
|
},
|
1170
1149
|
|
1171
|
-
insertText: function(chr
|
1150
|
+
insertText: function (chr) {
|
1172
1151
|
var timer = this._timer, keyBuffer = this._keyBuffer;
|
1173
1152
|
|
1174
1153
|
if (timer) {
|
@@ -1201,11 +1180,11 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1201
1180
|
fromVisibleControl will be set to `YES`.
|
1202
1181
|
|
1203
1182
|
@param keyEquivalent {String} the shortcut key sequence that was pressed
|
1204
|
-
@param fromVisibleControl
|
1183
|
+
@param fromVisibleControl Boolean if the shortcut key press was proxied
|
1205
1184
|
to this menu by a visible parent control
|
1206
|
-
@returns
|
1185
|
+
@returns Boolean
|
1207
1186
|
*/
|
1208
|
-
performKeyEquivalent: function(keyEquivalent, evt, fromVisibleControl) {
|
1187
|
+
performKeyEquivalent: function (keyEquivalent, evt, fromVisibleControl) {
|
1209
1188
|
//If menu is not visible
|
1210
1189
|
if (!fromVisibleControl && !this.get('isVisibleInWindow')) return NO;
|
1211
1190
|
|
@@ -1220,7 +1199,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1220
1199
|
|
1221
1200
|
// If escape key or the enter key was pressed and no menu item handled it,
|
1222
1201
|
// close the menu pane and return YES that the event was handled
|
1223
|
-
if (keyEquivalent === 'escape'|| keyEquivalent === 'return') {
|
1202
|
+
if (keyEquivalent === 'escape' || keyEquivalent === 'return') {
|
1224
1203
|
this.remove();
|
1225
1204
|
return YES;
|
1226
1205
|
}
|
@@ -1229,7 +1208,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1229
1208
|
|
1230
1209
|
},
|
1231
1210
|
|
1232
|
-
selectMenuItemForString: function(buffer) {
|
1211
|
+
selectMenuItemForString: function (buffer) {
|
1233
1212
|
var items = this.get('menuItemViews'), item, title, idx, len, bufferLength;
|
1234
1213
|
if (!items) return;
|
1235
1214
|
|
@@ -1241,7 +1220,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1241
1220
|
|
1242
1221
|
if (!title) continue;
|
1243
1222
|
|
1244
|
-
title = title.replace(/ /g,'').substr(0,bufferLength).toUpperCase();
|
1223
|
+
title = title.replace(/ /g, '').substr(0, bufferLength).toUpperCase();
|
1245
1224
|
if (title === buffer) {
|
1246
1225
|
this.set('currentMenuItem', item);
|
1247
1226
|
item.becomeFirstResponder();
|
@@ -1258,7 +1237,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1258
1237
|
|
1259
1238
|
@private
|
1260
1239
|
*/
|
1261
|
-
clearKeyBuffer: function() {
|
1240
|
+
clearKeyBuffer: function () {
|
1262
1241
|
this._keyBuffer = '';
|
1263
1242
|
},
|
1264
1243
|
|
@@ -1271,19 +1250,19 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1271
1250
|
@returns Boolean
|
1272
1251
|
@private
|
1273
1252
|
*/
|
1274
|
-
modalPaneDidClick: function(
|
1253
|
+
modalPaneDidClick: function () {
|
1275
1254
|
this.remove();
|
1276
1255
|
|
1277
1256
|
return YES;
|
1278
1257
|
}
|
1279
1258
|
});
|
1280
1259
|
|
1281
|
-
SC._menu_fetchKeys = function(k) {
|
1282
|
-
return this.get(k)
|
1260
|
+
SC._menu_fetchKeys = function (k) {
|
1261
|
+
return this.get(k);
|
1283
1262
|
};
|
1284
|
-
SC._menu_fetchItem = function(k) {
|
1285
|
-
if (!k) return null
|
1286
|
-
return this.get ? this.get(k) : this[k]
|
1263
|
+
SC._menu_fetchItem = function (k) {
|
1264
|
+
if (!k) return null;
|
1265
|
+
return this.get ? this.get(k) : this[k];
|
1287
1266
|
};
|
1288
1267
|
|
1289
1268
|
// If a menu pane exceeds the height of the viewport, it will
|