sproutcore 1.6.0.beta.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.mailmap +32 -0
- data/.rspec +1 -0
- data/CHANGELOG +170 -0
- data/Gemfile +3 -0
- data/History.txt +54 -0
- data/README.txt +129 -0
- data/Rakefile +62 -0
- data/Todo.txt +1 -0
- data/VERSION.yml +4 -0
- data/bin/sc-build +13 -0
- data/bin/sc-build-number +13 -0
- data/bin/sc-docs +14 -0
- data/bin/sc-gen +13 -0
- data/bin/sc-init +13 -0
- data/bin/sc-manifest +13 -0
- data/bin/sc-server +13 -0
- data/bin/sproutcore +13 -0
- data/lib/Buildfile +152 -0
- data/lib/buildtasks/build.rake +119 -0
- data/lib/buildtasks/entry.rake +68 -0
- data/lib/buildtasks/manifest.rake +893 -0
- data/lib/buildtasks/render.rake +21 -0
- data/lib/buildtasks/target.rake +66 -0
- data/lib/doc_templates/jsdoc/allclasses.tmpl +17 -0
- data/lib/doc_templates/jsdoc/allfiles.tmpl +56 -0
- data/lib/doc_templates/jsdoc/class.tmpl +487 -0
- data/lib/doc_templates/jsdoc/index.tmpl +38 -0
- data/lib/doc_templates/jsdoc/publish.js +170 -0
- data/lib/doc_templates/jsdoc/static/default.css +162 -0
- data/lib/doc_templates/jsdoc/static/header.html +2 -0
- data/lib/doc_templates/jsdoc/static/index.html +19 -0
- data/lib/doc_templates/jsdoc/symbol.tmpl +35 -0
- data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
- data/lib/doc_templates/sproutcore/allfiles.tmpl +56 -0
- data/lib/doc_templates/sproutcore/class.tmpl +674 -0
- data/lib/doc_templates/sproutcore/classes-json.tmpl +55 -0
- data/lib/doc_templates/sproutcore/index.tmpl +62 -0
- data/lib/doc_templates/sproutcore/publish.js +346 -0
- data/lib/doc_templates/sproutcore/static/default.css +258 -0
- data/lib/doc_templates/sproutcore/static/header.html +2 -0
- data/lib/doc_templates/sproutcore/static/index.html +19 -0
- data/lib/doc_templates/sproutcore/symbol.tmpl +35 -0
- data/lib/frameworks/sproutcore/Buildfile +104 -0
- data/lib/frameworks/sproutcore/CHANGELOG.md +435 -0
- data/lib/frameworks/sproutcore/README.md +139 -0
- data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/alert.js +39 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +125 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +36 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/split.js +74 -0
- data/lib/frameworks/sproutcore/apps/test_controls/core.js +29 -0
- data/lib/frameworks/sproutcore/apps/test_controls/main.js +14 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +158 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +85 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +151 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/panels_page.js +62 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +33 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +55 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +77 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +99 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +61 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +54 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/split_page.js +141 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +65 -0
- data/lib/frameworks/sproutcore/apps/test_controls/theme.js +34 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/detail.js +25 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +29 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +86 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +33 -0
- data/lib/frameworks/sproutcore/apps/tests/core.js +133 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/main.js +27 -0
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +56 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +48 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +44 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +39 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/source.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/test.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +55 -0
- data/lib/frameworks/sproutcore/apps/welcome/core.js +30 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +25 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +67 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/apps/welcome/main.js +19 -0
- data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/design/Record State Table.numbers +0 -0
- data/lib/frameworks/sproutcore/design/greenhouse-statechart.pdf +0 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +609 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +550 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +276 -0
- data/lib/frameworks/sproutcore/frameworks/animation/Buildfile +3 -0
- data/lib/frameworks/sproutcore/frameworks/animation/LICENSE +25 -0
- data/lib/frameworks/sproutcore/frameworks/animation/README.md +79 -0
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +1205 -0
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/README +9 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +225 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +524 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +342 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/function.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +293 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/localization.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/view.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/object.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/run_loop.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/string.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/responder_context.js +268 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/selection_support.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/keyboard.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/layout.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/main.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +670 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/visibility.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/core.css +378 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/view.css +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/bindable_span.js +164 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/browser.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/builder.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/core_query.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/cursor.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/datetime.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +991 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +289 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/page.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +419 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/ready.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1030 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +2180 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/selection_set.js +693 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/theme.js +316 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/timer.js +548 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils/rect.js +104 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +301 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +344 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/string.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/builder.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/locale.js +140 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +288 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +256 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/theme.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +209 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/core.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +937 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +382 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +248 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/init.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +217 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +146 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +745 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +213 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +244 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +4 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/cursor.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1116 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout_style.js +624 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/theming.js +400 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/touch.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/visibility.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +1521 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/core.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/json.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +1441 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +604 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +277 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +453 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +613 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +1526 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +758 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +2860 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +313 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +336 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +173 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +158 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +102 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +230 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +137 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +221 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecords.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecord.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +1103 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/tests/system/datetime.js +390 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/resources/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +259 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +73 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +916 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +185 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +101 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +132 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +69 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +161 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +711 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +300 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +267 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +589 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +1081 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +939 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +950 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +237 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +301 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/popup_button.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +116 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +80 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +1017 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +320 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +283 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +69 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +220 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/content.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/keyEquivalents.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +166 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +262 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +188 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +102 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +396 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +418 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +338 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/integration.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +457 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +238 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +944 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +3186 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +343 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +657 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +995 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +313 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +720 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +702 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +261 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +303 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +259 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +404 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1987 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +995 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +1088 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +907 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +400 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +897 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +286 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +285 -0
- data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +8 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/README.md +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/README +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/TODO +56 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/beautify.js +1058 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/design.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/file.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/files.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/layout.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/library.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/page.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/property.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/property_editor.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/target.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/targets.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/view_configs.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core_file.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/data_source.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/app_page.js +399 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/app-selector.css +107 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/button.css +314 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/dock.css +90 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/general.css +51 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/main-page.css +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/menu.css +49 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/modal.css +41 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/picker.css +195 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/search.css +60 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/text-field.css +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/dialogs.js +303 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/inspectors.js +365 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/main_page.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/strings.js +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/fixtures/file.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/main.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/mixins/drop_down.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/design.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/dir.js +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/file.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/target.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/view_config.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/resources/test_page.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/inspector.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/library.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/main.js +283 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/modals.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/ready.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/design.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/designs.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/file.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/controllers/files.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/models/file.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/models/view_config.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/list_item.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/plist_item.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/theme.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/anchor.js +277 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/application_list_item.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/event_blocker.js +32 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/label_designer.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/list_item.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/plist_item.js +178 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/simple_button.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/tear_off_picker.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/web.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/design.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +349 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/controllers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/design.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_design.js +172 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/core.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_rule.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +199 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/button.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/label.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +298 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/tab.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/text_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +1269 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/css/designer.css +96 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/design_page.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/high_light.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/controller.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/page.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/pane.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/view.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/selection_handles.css +58 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/button.js +13 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +228 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/coders/page.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/designers/view_designer.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +226 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/selection_handles.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +11 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/default_styles.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/edit_mode.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/mixins/emptiness.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/render_delegates/form_row.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_checkbox_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_label.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_radio_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_row.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/tests/views/form_text_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form.js +285 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/forms/views/form_row.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +46 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/many.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/simple.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/single.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_child.js +229 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_thumb.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split_divider.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/children.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/dividers.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/methods.js +294 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_child.js +135 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_thumb.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split.js +929 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split_divider.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/thumb.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/TESTING +46 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/delegates/inline_text_field.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +67 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/checkbox_view.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/radio_view.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/string.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +234 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +355 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_value_support.js +227 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +282 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +745 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +254 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor.js +188 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inner_frame.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +164 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +198 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +916 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/helpers/sizing.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +386 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +727 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/chance.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cookie.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +429 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +591 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/string.js +422 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +392 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/colors.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/range.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +254 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/delegates/inline_text_field/inline_text_field.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_value_support/content.js +168 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/beginEditing.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/commitEditing.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/discardEditing.js +151 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/beginEditing.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/commitEditing.js +151 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/discardEditing.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +228 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +149 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/render_delegates/render_delegate.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/cookie.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/string.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/user_defaults.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +241 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/range.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/credit_card.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/not_empty.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/number.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/password.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/validator.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +512 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +173 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +614 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +328 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +337 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +382 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +648 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +225 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +1117 -0
- data/lib/frameworks/sproutcore/frameworks/handlebars/handlebars.js +1435 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +390 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +12 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +7179 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/tests/set_class.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/controls.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +124 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +741 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +832 -0
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/README.md +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/package.json +21 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.css +215 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.js +1442 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/headless.html +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/index.html +18 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.html +17 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/same.js +1421 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/test.js +314 -0
- data/lib/frameworks/sproutcore/frameworks/routing/system/routes.js +503 -0
- data/lib/frameworks/sproutcore/frameworks/routing/tests/system/routes.js +362 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/README +12 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +758 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +391 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/array.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/date.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/function.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/string.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +911 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1341 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1499 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +181 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +179 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1013 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/function.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1209 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/json.js +515 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +1585 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +940 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +273 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +308 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +538 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/string.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/beget.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/console.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +115 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +27 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/keys.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/makeArray.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable.js +623 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable_observers.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +868 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observersForKey.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +161 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +474 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/error.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/json.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/logger.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +385 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/enhance.js +196 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +324 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +1253 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +1546 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/respond_to_event.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/without_concurrent_states.js +306 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/with_concurrent_states.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/without_concurrent_states.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/pane.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/responder_chain.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/root_responder.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/initial_substate.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/is_current_state.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/namespacing.js +248 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/mixin.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/nesting.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/state_observes.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/core.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/with_concurrent_states.js +123 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/without_concurrent_states.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/core.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/without_concurrent_states.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/with_concurrent_states.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/context.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/core.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/advanced.js +239 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/basic.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/intermediate.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/context.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/core.js +281 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/transient/without_concurrent_states.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/assigned_root_state.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/unassigned_root_state.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/destroy.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/invoke_state_method.js +241 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/owner.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table.js +440 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +158 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +199 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
- data/lib/frameworks/sproutcore/frameworks/testing/extras.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +708 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +222 -0
- data/lib/frameworks/sproutcore/frameworks/testing/utils.js +62 -0
- data/lib/frameworks/sproutcore/lib/index.rhtml +167 -0
- data/lib/frameworks/sproutcore/license.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/body.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/button.css +33 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/button.css +102 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/button.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/button.css +39 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/button.css +93 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/button.css +72 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.js +5 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +21 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +11 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/loading.css +50 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +79 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.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/picker.css +41 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio.css +57 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/segmented.css +83 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +31 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/tab/tab.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/theme.js +30 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/16/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/24/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/32/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/Source/icons/48/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/button.css +399 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/checkbox.css +78 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/collection.css +135 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/core.css +76 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/disclosure.css +57 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_222222.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_454545.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_888888.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/panels/sprite-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/panels/sprite-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/images/sc-toolbar-view.png +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/label.css +11 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/list_item.css +82 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/menu.css +20 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/menu_item_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/pane.css +18 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/panel.css +33 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/picker.css +17 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/radio.css +125 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/scroller.css +159 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/segmented.css +270 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/slider.css +94 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/split_view.css +11 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/tab.css +14 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/table.css +14 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/text_field.css +5 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/toolbar.css +7 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/well.css +36 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/button.js +89 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/progress.js +194 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/slider.js +67 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/well.js +27 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/theme.js +13 -0
- data/lib/gen/Buildfile +16 -0
- data/lib/gen/app/Buildfile +36 -0
- data/lib/gen/app/README +1 -0
- data/lib/gen/app/USAGE +13 -0
- data/lib/gen/app/templates/apps/@target_name@/Buildfile +14 -0
- data/lib/gen/app/templates/apps/@target_name@/core.js +27 -0
- data/lib/gen/app/templates/apps/@target_name@/main.js +30 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/loading.rhtml +9 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +24 -0
- data/lib/gen/app/templates/apps/@target_name@/theme.js +27 -0
- data/lib/gen/controller/Buildfile +18 -0
- data/lib/gen/controller/README +1 -0
- data/lib/gen/controller/USAGE +13 -0
- data/lib/gen/controller/templates/controllers/@filename@.js +18 -0
- data/lib/gen/controller/templates/tests/controllers/@filename@.js +15 -0
- data/lib/gen/data-source/Buildfile +18 -0
- data/lib/gen/data-source/README +1 -0
- data/lib/gen/data-source/USAGE +15 -0
- data/lib/gen/data-source/templates/data_sources/@filename@.js +64 -0
- data/lib/gen/design/Buildfile +23 -0
- data/lib/gen/design/README +1 -0
- data/lib/gen/design/USAGE +10 -0
- data/lib/gen/design/templates/resources/@filename@.js +16 -0
- data/lib/gen/framework/Buildfile +36 -0
- data/lib/gen/framework/README +1 -0
- data/lib/gen/framework/USAGE +13 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/core.js +21 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +15 -0
- data/lib/gen/html_app/Buildfile +36 -0
- data/lib/gen/html_app/README +1 -0
- data/lib/gen/html_app/USAGE +15 -0
- data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +14 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/images/.gitkeep +0 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css +4 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/templates/@target_name@.handlebars +1 -0
- data/lib/gen/html_project/Buildfile +45 -0
- data/lib/gen/html_project/INIT +3 -0
- data/lib/gen/html_project/README +1 -0
- data/lib/gen/html_project/USAGE +2 -0
- data/lib/gen/html_project/templates/@filename@/Buildfile +8 -0
- data/lib/gen/html_project/templates/@filename@/README +7 -0
- data/lib/gen/language/Buildfile +26 -0
- data/lib/gen/language/README +1 -0
- data/lib/gen/language/USAGE +13 -0
- data/lib/gen/language/templates/@filename@/strings.js +14 -0
- data/lib/gen/model/Buildfile +16 -0
- data/lib/gen/model/README +1 -0
- data/lib/gen/model/USAGE +15 -0
- data/lib/gen/model/templates/fixtures/@filename@.js +35 -0
- data/lib/gen/model/templates/models/@filename@.js +19 -0
- data/lib/gen/model/templates/tests/models/@filename@.js +15 -0
- data/lib/gen/page/Buildfile +36 -0
- data/lib/gen/page/README +1 -0
- data/lib/gen/page/USAGE +15 -0
- data/lib/gen/page/templates/pages/@target_name@/Buildfile +16 -0
- data/lib/gen/page/templates/pages/@target_name@/core.js +22 -0
- data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +14 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.css +1 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.rhtml +7 -0
- data/lib/gen/project/Buildfile +45 -0
- data/lib/gen/project/INIT +3 -0
- data/lib/gen/project/README +1 -0
- data/lib/gen/project/USAGE +2 -0
- data/lib/gen/project/templates/@filename@/Buildfile +12 -0
- data/lib/gen/project/templates/@filename@/README +7 -0
- data/lib/gen/responder/Buildfile +18 -0
- data/lib/gen/responder/README +1 -0
- data/lib/gen/responder/USAGE +15 -0
- data/lib/gen/responder/templates/states/@filename@.js +39 -0
- data/lib/gen/test/Buildfile +25 -0
- data/lib/gen/test/README +1 -0
- data/lib/gen/test/USAGE +12 -0
- data/lib/gen/test/templates/tests/@filename@.js +15 -0
- data/lib/gen/theme/Buildfile +36 -0
- data/lib/gen/theme/README +1 -0
- data/lib/gen/theme/USAGE +13 -0
- data/lib/gen/theme/templates/themes/@target_name@/Buildfile +3 -0
- data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +11 -0
- data/lib/gen/theme/templates/themes/@target_name@/theme.js +23 -0
- data/lib/gen/view/Buildfile +18 -0
- data/lib/gen/view/README +1 -0
- data/lib/gen/view/USAGE +13 -0
- data/lib/gen/view/templates/tests/views/@filename@.js +15 -0
- data/lib/gen/view/templates/views/@filename@.js +18 -0
- data/lib/sproutcore/builders/base.rb +97 -0
- data/lib/sproutcore/builders/chance_file.rb +78 -0
- data/lib/sproutcore/builders/combine.rb +61 -0
- data/lib/sproutcore/builders/handlebars.rb +30 -0
- data/lib/sproutcore/builders/html.rb +213 -0
- data/lib/sproutcore/builders/javascript.rb +107 -0
- data/lib/sproutcore/builders/less.rb +41 -0
- data/lib/sproutcore/builders/minify.rb +148 -0
- data/lib/sproutcore/builders/module.rb +74 -0
- data/lib/sproutcore/builders/sass.rb +65 -0
- data/lib/sproutcore/builders/string_wrapper.rb +41 -0
- data/lib/sproutcore/builders/strings.rb +45 -0
- data/lib/sproutcore/builders/stylesheet.rb +49 -0
- data/lib/sproutcore/builders/test.rb +59 -0
- data/lib/sproutcore/builders/test_index.rb +26 -0
- data/lib/sproutcore/builders.rb +15 -0
- data/lib/sproutcore/buildfile/build_task.rb +33 -0
- data/lib/sproutcore/buildfile/buildfile_dsl.rb +169 -0
- data/lib/sproutcore/buildfile/early_time.rb +30 -0
- data/lib/sproutcore/buildfile/invocation_chain.rb +64 -0
- data/lib/sproutcore/buildfile/namespace.rb +33 -0
- data/lib/sproutcore/buildfile/string_ext.rb +202 -0
- data/lib/sproutcore/buildfile/task.rb +325 -0
- data/lib/sproutcore/buildfile/task_arguments.rb +106 -0
- data/lib/sproutcore/buildfile/task_manager.rb +204 -0
- data/lib/sproutcore/buildfile.rb +490 -0
- data/lib/sproutcore/deprecated/view_helper.rb +662 -0
- data/lib/sproutcore/helpers/capture_helper.rb +30 -0
- data/lib/sproutcore/helpers/cssmin.rb +202 -0
- data/lib/sproutcore/helpers/dom_id_helper.rb +21 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +125 -0
- data/lib/sproutcore/helpers/html5_manifest.rb +88 -0
- data/lib/sproutcore/helpers/minifier.rb +106 -0
- data/lib/sproutcore/helpers/packed_optimizer.rb +102 -0
- data/lib/sproutcore/helpers/static_helper.rb +444 -0
- data/lib/sproutcore/helpers/tag_helper.rb +182 -0
- data/lib/sproutcore/helpers/text_helper.rb +303 -0
- data/lib/sproutcore/helpers.rb +11 -0
- data/lib/sproutcore/models/generator.rb +509 -0
- data/lib/sproutcore/models/hash_struct.rb +124 -0
- data/lib/sproutcore/models/manifest.rb +387 -0
- data/lib/sproutcore/models/manifest_entry.rb +362 -0
- data/lib/sproutcore/models/project.rb +267 -0
- data/lib/sproutcore/models/target.rb +870 -0
- data/lib/sproutcore/models.rb +8 -0
- data/lib/sproutcore/rack/builder.rb +344 -0
- data/lib/sproutcore/rack/dev.rb +92 -0
- data/lib/sproutcore/rack/docs.rb +24 -0
- data/lib/sproutcore/rack/filesystem.rb +324 -0
- data/lib/sproutcore/rack/proxy.rb +165 -0
- data/lib/sproutcore/rack/service.rb +153 -0
- data/lib/sproutcore/rack/test_runner.rb +24 -0
- data/lib/sproutcore/rack.rb +7 -0
- data/lib/sproutcore/render_engines/erubis.rb +55 -0
- data/lib/sproutcore/render_engines/haml.rb +39 -0
- data/lib/sproutcore/tools/build.rb +100 -0
- data/lib/sproutcore/tools/build_number.rb +23 -0
- data/lib/sproutcore/tools/docs.rb +53 -0
- data/lib/sproutcore/tools/gen.rb +101 -0
- data/lib/sproutcore/tools/init.rb +56 -0
- data/lib/sproutcore/tools/manifest.rb +85 -0
- data/lib/sproutcore/tools/server.rb +56 -0
- data/lib/sproutcore/tools.rb +419 -0
- data/lib/sproutcore/version.rb +12 -0
- data/lib/sproutcore.rb +169 -0
- data/spec/buildtasks/build/copy_spec.rb +60 -0
- data/spec/buildtasks/build/spec_helper.rb +36 -0
- data/spec/buildtasks/manifest/catalog_spec.rb +48 -0
- data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +126 -0
- data/spec/buildtasks/manifest/localize_spec.rb +97 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/chance_2x_spec.rb +100 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/chance_spec.rb +104 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +331 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +87 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/handlebars_spec.rb +39 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +175 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +65 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +70 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/module_info_spec.rb +96 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/module_spec.rb +83 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_indirect_spec.rb +191 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_spec.rb +185 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +187 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +98 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +64 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +163 -0
- data/spec/buildtasks/manifest/prepare_spec.rb +43 -0
- data/spec/buildtasks/manifest/spec_helper.rb +39 -0
- data/spec/buildtasks/target_spec.rb +270 -0
- data/spec/fixtures/builder_tests/Buildfile +22 -0
- data/spec/fixtures/builder_tests/apps/chance_test/Buildfile +14 -0
- data/spec/fixtures/builder_tests/apps/chance_test/core.js +27 -0
- data/spec/fixtures/builder_tests/apps/chance_test/main.js +30 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/demo.css +6 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/force@2x.png +0 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/last_file.css +7 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/loading.rhtml +9 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/main_page.js +24 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/z_first_file.css +6 -0
- data/spec/fixtures/builder_tests/apps/chance_test/theme.js +27 -0
- data/spec/fixtures/builder_tests/apps/combine_test/a.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/b.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/c.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/a.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/b.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/c.css +1 -0
- data/spec/fixtures/builder_tests/apps/handlebars_test/template.handlebars +5 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/bar1_sample.rhtml +2 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/erb_sample.html.erb +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/icons/image.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/image.jpg +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/rhtml_sample.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/style.css +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/french-icons/fr.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/lib/layout_template.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/scripts.js +0 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_static.js +15 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_super.js +4 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/strings.js +7 -0
- data/spec/fixtures/builder_tests/apps/less_test/sample.less +4 -0
- data/spec/fixtures/builder_tests/apps/module_test/module.js +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/javascript.js +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/inlined_module/README +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +4 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.scss +4 -0
- data/spec/fixtures/builder_tests/apps/strings_test/lproj/strings.js +8 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/build_directives.css +9 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/sc_static.css +12 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/alt_layout.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/test_layout.rhtml +3 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test2.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/rhtml_test.rhtml +4 -0
- data/spec/fixtures/builder_tests/frameworks/debug/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/debug/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/javascript.js +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/themes/sample_theme/Buildfile +1 -0
- data/spec/fixtures/buildfiles/basic/Buildfile +11 -0
- data/spec/fixtures/buildfiles/basic/task_module.rake +6 -0
- data/spec/fixtures/buildfiles/installed/Buildfile +5 -0
- data/spec/fixtures/buildfiles/installed/Buildfile2 +5 -0
- data/spec/fixtures/buildfiles/project_test/Buildfile +4 -0
- data/spec/fixtures/buildfiles/project_test/not_project/Buildfile +2 -0
- data/spec/fixtures/buildfiles/project_test/not_project/child/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/Buildfile +1 -0
- data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
- data/spec/fixtures/entry_for_project/apps/test_app/frameworks/nested/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/unrelated/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/Buildfile +8 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/Buildfile +5 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/foos/not_foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/nested/Buildfile +8 -0
- data/spec/fixtures/find_targets/nested/apps/app1/Buildfile +1 -0
- data/spec/fixtures/find_targets/nested/apps/app1/apps/nested_app/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/clients/client1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme2/PLACEHOLDER +0 -0
- data/spec/fixtures/helper_tests/apps/minifier_test/core.js +8 -0
- data/spec/fixtures/languages/apps/caps_long_names/English.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/FreNCH.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/UnknOWN.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/english.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/french.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/german.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/italian.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/japanese.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/spanish.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/unknown.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/no_names/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/de.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-CA.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-GB.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-US.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/es.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/foo.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/fr.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/it.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/ja.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/1.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/B.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/b.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/b/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/c.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/core.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/B.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/b.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/b/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/c.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/strings.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/main.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/resources/main_page.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/t.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/utils.js +1 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/a.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/b.js +3 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/c.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/a.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/b.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/c.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/d.js +1 -0
- data/spec/fixtures/real_world/Buildfile +22 -0
- data/spec/fixtures/real_world/apps/account/README +1 -0
- data/spec/fixtures/real_world/apps/account/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/calendar/README +1 -0
- data/spec/fixtures/real_world/apps/calendar/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/contacts/README_BEFORE_EDITING +1 -0
- data/spec/fixtures/real_world/apps/contacts/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/contacts/modules/printing/README +0 -0
- data/spec/fixtures/real_world/apps/files/README +1 -0
- data/spec/fixtures/real_world/apps/mail/README +1 -0
- data/spec/fixtures/real_world/apps/mail/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/mail/modules/printing/README +0 -0
- data/spec/fixtures/real_world/apps/mobile_photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/modules/email/README +0 -0
- data/spec/fixtures/real_world/apps/photos/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/uploader/README +1 -0
- data/spec/fixtures/real_world/frameworks/core_files/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/core_photos/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/no_2x/resources/test.css +1 -0
- data/spec/fixtures/real_world/frameworks/no_2x/resources/test.png +0 -0
- data/spec/fixtures/real_world/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +26 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/README +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/test_runner/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo2.sass +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo4.less +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.haml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.html.erb +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.rhtml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/fixtures/sample_fixtures-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/has_require.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_require.css +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_sc_resource.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/protocols/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.css +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.rhtml +3 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/templates/demo.handlebars +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/tests/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample-json-fixture.json +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample_fixtures.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/application/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/costello/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/data_store/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/debug/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/desktop/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/empty_theme/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/foundation/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/mobile/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/qunit/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/uploader/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/french-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/german-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/strings.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/has_require.js +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/lib/index.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/no_require.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/protocols/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/boo.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/force@2x.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/sc_resource.js +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample1.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/themes/standard_theme/README +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/views/view.js +1 -0
- data/spec/fixtures/real_world/generators/sample_custom/Buildfile +0 -0
- data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
- data/spec/fixtures/recursive_project/Buildfile +8 -0
- data/spec/fixtures/recursive_project/frameworks/sproutcore/frameworks/costello/PLACEHOLDER +0 -0
- data/spec/lib/builders/chance_file_spec.rb +44 -0
- data/spec/lib/builders/combine_spec.rb +67 -0
- data/spec/lib/builders/handlebars_spec.rb +29 -0
- data/spec/lib/builders/html_spec.rb +580 -0
- data/spec/lib/builders/javascript_spec.rb +82 -0
- data/spec/lib/builders/less_spec.rb +51 -0
- data/spec/lib/builders/module_spec.rb +133 -0
- data/spec/lib/builders/sass_spec.rb +72 -0
- data/spec/lib/builders/spec_helper.rb +30 -0
- data/spec/lib/builders/strings_spec.rb +56 -0
- data/spec/lib/builders/stylesheet_spec.rb +64 -0
- data/spec/lib/builders/test_index_spec.rb +45 -0
- data/spec/lib/builders/test_spec.rb +137 -0
- data/spec/lib/buildfile/config_for_spec.rb +81 -0
- data/spec/lib/buildfile/define_spec.rb +59 -0
- data/spec/lib/buildfile/dup_spec.rb +65 -0
- data/spec/lib/buildfile/invoke_spec.rb +135 -0
- data/spec/lib/buildfile/load_spec.rb +51 -0
- data/spec/lib/buildfile/task/dup_spec.rb +55 -0
- data/spec/lib/buildfile/task_defined_spec.rb +17 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +19 -0
- data/spec/lib/buildfile_commands/config_spec.rb +97 -0
- data/spec/lib/buildfile_commands/import_spec.rb +17 -0
- data/spec/lib/buildfile_commands/namespace_spec.rb +18 -0
- data/spec/lib/buildfile_commands/proxies_spec.rb +38 -0
- data/spec/lib/buildfile_commands/replace_task_spec.rb +29 -0
- data/spec/lib/buildfile_commands/task_spec.rb +36 -0
- data/spec/lib/helpers/minifier.rb +31 -0
- data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +26 -0
- data/spec/lib/models/hash_struct/deep_clone_spec.rb +27 -0
- data/spec/lib/models/hash_struct/has_options_spec.rb +32 -0
- data/spec/lib/models/hash_struct/hash_spec.rb +29 -0
- data/spec/lib/models/hash_struct/merge_spec.rb +19 -0
- data/spec/lib/models/hash_struct/method_missing.rb +41 -0
- data/spec/lib/models/manifest/add_entry_spec.rb +36 -0
- data/spec/lib/models/manifest/add_transform_spec.rb +93 -0
- data/spec/lib/models/manifest/build_spec.rb +78 -0
- data/spec/lib/models/manifest/entry_for_spec.rb +94 -0
- data/spec/lib/models/manifest/find_entry.rb +119 -0
- data/spec/lib/models/manifest/prepare_spec.rb +62 -0
- data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +31 -0
- data/spec/lib/models/manifest_entry/hyperdomain_prefix.rb +34 -0
- data/spec/lib/models/manifest_entry/prepare_spec.rb +54 -0
- data/spec/lib/models/project/add_target_spec.rb +44 -0
- data/spec/lib/models/project/buildfile_spec.rb +35 -0
- data/spec/lib/models/project/find_targets_for_spec.rb +78 -0
- data/spec/lib/models/project/load_nearest_project_spec.rb +23 -0
- data/spec/lib/models/project/target_for_spec.rb +33 -0
- data/spec/lib/models/project/targets_spec.rb +62 -0
- data/spec/lib/models/target/compute_build_number_spec.rb +126 -0
- data/spec/lib/models/target/config_spec.rb +30 -0
- data/spec/lib/models/target/expand_required_targets_spec.rb +48 -0
- data/spec/lib/models/target/installed_languages_spec.rb +47 -0
- data/spec/lib/models/target/lproj_for_spec.rb +38 -0
- data/spec/lib/models/target/manifest_for_spec.rb +42 -0
- data/spec/lib/models/target/parent_target_spec.rb +21 -0
- data/spec/lib/models/target/prepare_spec.rb +53 -0
- data/spec/lib/models/target/required_targets_spec.rb +129 -0
- data/spec/lib/models/target/target_for_spec.rb +56 -0
- data/spec/lib/tools/build_number_spec.rb +35 -0
- data/spec/lib/tools/gen_spec.rb +209 -0
- data/spec/lib/tools/tools_spec.rb +96 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +138 -0
- data/sproutcore.gemspec +65 -0
- data/vendor/chance/.gitignore +5 -0
- data/vendor/chance/Gemfile +4 -0
- data/vendor/chance/Rakefile +2 -0
- data/vendor/chance/bin/chance +46 -0
- data/vendor/chance/chance.gemspec +28 -0
- data/vendor/chance/lib/chance/instance/data_url.rb +85 -0
- data/vendor/chance/lib/chance/instance/javascript.rb +19 -0
- data/vendor/chance/lib/chance/instance/slicing.rb +181 -0
- data/vendor/chance/lib/chance/instance/spriting.rb +311 -0
- data/vendor/chance/lib/chance/instance.rb +330 -0
- data/vendor/chance/lib/chance/parser.rb +835 -0
- data/vendor/chance/lib/chance/perf.rb +17 -0
- data/vendor/chance/lib/chance/version.rb +3 -0
- data/vendor/chance/lib/chance.rb +158 -0
- data/vendor/chance/lib/tester/test.rb +108 -0
- data/vendor/chance/lib/tester/test_runner.rb +27 -0
- data/vendor/chance/test/case/abc.png +0 -0
- data/vendor/chance/test/case/more/abc.png +0 -0
- data/vendor/chance/test/case/more/another.css +4 -0
- data/vendor/chance/test/case/test1.css +22 -0
- data/vendor/chance/test/case/test2.css +6 -0
- data/vendor/chance/tests/parser/basic/input/test.css +4 -0
- data/vendor/chance/tests/parser/basic/output/test.parsed.css +5 -0
- data/vendor/jsdoc/README.txt +151 -0
- data/vendor/jsdoc/app/frame/Chain.js +102 -0
- data/vendor/jsdoc/app/frame/Dumper.js +144 -0
- data/vendor/jsdoc/app/frame/Hash.js +47 -0
- data/vendor/jsdoc/app/frame/Link.js +142 -0
- data/vendor/jsdoc/app/frame/Namespace.js +10 -0
- data/vendor/jsdoc/app/frame/Opt.js +134 -0
- data/vendor/jsdoc/app/frame/Reflection.js +26 -0
- data/vendor/jsdoc/app/frame/String.js +93 -0
- data/vendor/jsdoc/app/frame/Testrun.js +129 -0
- data/vendor/jsdoc/app/frame.js +33 -0
- data/vendor/jsdoc/app/handlers/FOODOC.js +26 -0
- data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/vendor/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +162 -0
- data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/vendor/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/vendor/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +681 -0
- data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +226 -0
- data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/vendor/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +332 -0
- data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/vendor/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/vendor/jsdoc/app/lib/JSDOC/Walker.js +453 -0
- data/vendor/jsdoc/app/lib/JSDOC.js +98 -0
- data/vendor/jsdoc/app/main.js +74 -0
- data/vendor/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/vendor/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/vendor/jsdoc/app/plugins/functionCall.js +10 -0
- data/vendor/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/vendor/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/vendor/jsdoc/app/plugins/symbolLink.js +9 -0
- data/vendor/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/vendor/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/vendor/jsdoc/app/run.js +346 -0
- data/vendor/jsdoc/app/t/TestDoc.js +144 -0
- data/vendor/jsdoc/app/t/runner.js +13 -0
- data/vendor/jsdoc/app/test/addon.js +24 -0
- data/vendor/jsdoc/app/test/anon_inner.js +14 -0
- data/vendor/jsdoc/app/test/augments.js +31 -0
- data/vendor/jsdoc/app/test/augments2.js +26 -0
- data/vendor/jsdoc/app/test/borrows.js +41 -0
- data/vendor/jsdoc/app/test/borrows2.js +23 -0
- data/vendor/jsdoc/app/test/config.js +22 -0
- data/vendor/jsdoc/app/test/constructs.js +18 -0
- data/vendor/jsdoc/app/test/encoding.js +10 -0
- data/vendor/jsdoc/app/test/encoding_other.js +12 -0
- data/vendor/jsdoc/app/test/functions_anon.js +39 -0
- data/vendor/jsdoc/app/test/functions_nested.js +33 -0
- data/vendor/jsdoc/app/test/global.js +13 -0
- data/vendor/jsdoc/app/test/globals.js +25 -0
- data/vendor/jsdoc/app/test/ignore.js +10 -0
- data/vendor/jsdoc/app/test/inner.js +16 -0
- data/vendor/jsdoc/app/test/jsdoc_test.js +477 -0
- data/vendor/jsdoc/app/test/lend.js +33 -0
- data/vendor/jsdoc/app/test/memberof.js +20 -0
- data/vendor/jsdoc/app/test/memberof_constructor.js +15 -0
- data/vendor/jsdoc/app/test/name.js +19 -0
- data/vendor/jsdoc/app/test/namespace_nested.js +23 -0
- data/vendor/jsdoc/app/test/nocode.js +13 -0
- data/vendor/jsdoc/app/test/oblit_anon.js +20 -0
- data/vendor/jsdoc/app/test/overview.js +20 -0
- data/vendor/jsdoc/app/test/param_inline.js +37 -0
- data/vendor/jsdoc/app/test/params_optional.js +8 -0
- data/vendor/jsdoc/app/test/prototype.js +17 -0
- data/vendor/jsdoc/app/test/prototype_nested.js +9 -0
- data/vendor/jsdoc/app/test/prototype_oblit.js +13 -0
- data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +24 -0
- data/vendor/jsdoc/app/test/public.js +10 -0
- data/vendor/jsdoc/app/test/shared.js +42 -0
- data/vendor/jsdoc/app/test/shared2.js +2 -0
- data/vendor/jsdoc/app/test/shortcuts.js +22 -0
- data/vendor/jsdoc/app/test/static_this.js +13 -0
- data/vendor/jsdoc/app/test/synonyms.js +23 -0
- data/vendor/jsdoc/app/test/tosource.js +23 -0
- data/vendor/jsdoc/app/test/variable_redefine.js +14 -0
- data/vendor/jsdoc/app/test.js +304 -0
- data/vendor/jsdoc/changes.txt +47 -0
- data/vendor/jsdoc/conf/sample.conf +31 -0
- data/vendor/jsdoc/java/build.xml +36 -0
- data/vendor/jsdoc/java/build_1.4.xml +36 -0
- data/vendor/jsdoc/java/classes/js.jar +0 -0
- data/vendor/jsdoc/java/src/JsDebugRun.java +21 -0
- data/vendor/jsdoc/java/src/JsRun.java +21 -0
- data/vendor/jsdoc/jsdebug.jar +0 -0
- data/vendor/jsdoc/jsrun.jar +0 -0
- data/vendor/jsdoc/t/TestDoc.js +144 -0
- data/vendor/jsdoc/t/runner.js +13 -0
- data/vendor/jsdoc/test/addon.js +24 -0
- data/vendor/jsdoc/test/anon_inner.js +14 -0
- data/vendor/jsdoc/test/augments.js +31 -0
- data/vendor/jsdoc/test/augments2.js +26 -0
- data/vendor/jsdoc/test/borrows.js +41 -0
- data/vendor/jsdoc/test/borrows2.js +23 -0
- data/vendor/jsdoc/test/config.js +22 -0
- data/vendor/jsdoc/test/constructs.js +18 -0
- data/vendor/jsdoc/test/encoding.js +10 -0
- data/vendor/jsdoc/test/encoding_other.js +12 -0
- data/vendor/jsdoc/test/functions_anon.js +39 -0
- data/vendor/jsdoc/test/functions_nested.js +33 -0
- data/vendor/jsdoc/test/global.js +13 -0
- data/vendor/jsdoc/test/globals.js +25 -0
- data/vendor/jsdoc/test/ignore.js +10 -0
- data/vendor/jsdoc/test/inner.js +16 -0
- data/vendor/jsdoc/test/jsdoc_test.js +477 -0
- data/vendor/jsdoc/test/lend.js +33 -0
- data/vendor/jsdoc/test/memberof.js +20 -0
- data/vendor/jsdoc/test/memberof_constructor.js +15 -0
- data/vendor/jsdoc/test/name.js +19 -0
- data/vendor/jsdoc/test/namespace_nested.js +23 -0
- data/vendor/jsdoc/test/nocode.js +13 -0
- data/vendor/jsdoc/test/oblit_anon.js +20 -0
- data/vendor/jsdoc/test/overview.js +20 -0
- data/vendor/jsdoc/test/param_inline.js +37 -0
- data/vendor/jsdoc/test/params_optional.js +8 -0
- data/vendor/jsdoc/test/prototype.js +17 -0
- data/vendor/jsdoc/test/prototype_nested.js +9 -0
- data/vendor/jsdoc/test/prototype_oblit.js +13 -0
- data/vendor/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/vendor/jsdoc/test/public.js +10 -0
- data/vendor/jsdoc/test/shared.js +42 -0
- data/vendor/jsdoc/test/shared2.js +2 -0
- data/vendor/jsdoc/test/shortcuts.js +22 -0
- data/vendor/jsdoc/test/static_this.js +13 -0
- data/vendor/jsdoc/test/synonyms.js +23 -0
- data/vendor/jsdoc/test/tosource.js +23 -0
- data/vendor/jsdoc/test/variable_redefine.js +14 -0
- data/vendor/jsdoc/test.js +304 -0
- data/vendor/sproutcore/lib/htmlcompressor-0.9.3.jar +0 -0
- data/vendor/sproutcore/lib/yuicompressor-2.4.6.jar +0 -0
- metadata +2339 -0
@@ -0,0 +1,2180 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// Portions ©2008-2011 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
sc_require('system/ready');
|
9
|
+
sc_require('system/platform');
|
10
|
+
|
11
|
+
/** Set to NO to leave the backspace key under the control of the browser.*/
|
12
|
+
SC.CAPTURE_BACKSPACE_KEY = NO ;
|
13
|
+
|
14
|
+
/** @class
|
15
|
+
|
16
|
+
The RootResponder captures events coming from a web browser and routes them
|
17
|
+
to the correct view in the view hierarchy. Usually you do not work with a
|
18
|
+
RootResponder directly. Instead you will work with Pane objects, which
|
19
|
+
register themselves with the RootResponder as needed to receive events.
|
20
|
+
|
21
|
+
## RootResponder and Platforms
|
22
|
+
|
23
|
+
RootResponder contains core functionality common among the different web
|
24
|
+
platforms. You will likely be working with a subclass of RootResponder that
|
25
|
+
implements functionality unique to that platform.
|
26
|
+
|
27
|
+
The correct instance of RootResponder is detected at runtime and loaded
|
28
|
+
transparently.
|
29
|
+
|
30
|
+
## Event Types
|
31
|
+
|
32
|
+
RootResponders can route four types of events:
|
33
|
+
|
34
|
+
- Direct events, such as mouse and touch events. These are routed to the
|
35
|
+
nearest view managing the target DOM elment. RootResponder also handles
|
36
|
+
multitouch events so that they are delegated to the correct views.
|
37
|
+
- Keyboard events. These are sent to the keyPane, which will then send the
|
38
|
+
event to the current firstResponder and up the responder chain.
|
39
|
+
- Resize events. When the viewport resizes, these events will be sent to all
|
40
|
+
panes.
|
41
|
+
- Keyboard shortcuts. Shortcuts are sent to the keyPane first, which
|
42
|
+
will go down its view hierarchy. Then they go to the mainPane, which will
|
43
|
+
go down its view hierarchy.
|
44
|
+
- Actions. Actions are generic messages that your application can send in
|
45
|
+
response to user action or other events. You can either specify an
|
46
|
+
explicit target, or allow the action to traverse the hierarchy until a
|
47
|
+
view is found that handles it.
|
48
|
+
*/
|
49
|
+
SC.RootResponder = SC.Object.extend({
|
50
|
+
|
51
|
+
/**
|
52
|
+
Contains a list of all panes currently visible on screen. Everytime a
|
53
|
+
pane attaches or detaches, it will update itself in this array.
|
54
|
+
*/
|
55
|
+
panes: null,
|
56
|
+
|
57
|
+
init: function() {
|
58
|
+
sc_super();
|
59
|
+
this.panes = SC.Set.create();
|
60
|
+
|
61
|
+
if (SC.platform.supportsCSSTransitions) {
|
62
|
+
this[SC.platform.cssPrefix+'TransitionEnd'] = this.transitionEnd;
|
63
|
+
this['transitionend'] = this.transitionEnd;
|
64
|
+
}
|
65
|
+
},
|
66
|
+
|
67
|
+
// .......................................................
|
68
|
+
// MAIN PANE
|
69
|
+
//
|
70
|
+
|
71
|
+
/** @property
|
72
|
+
The main pane. This pane receives shortcuts and actions if the
|
73
|
+
focusedPane does not respond to them. There can be only one main pane.
|
74
|
+
You can swap main panes by calling makeMainPane() here.
|
75
|
+
|
76
|
+
Usually you will not need to edit the main pane directly. Instead, you
|
77
|
+
should use a MainPane subclass, which will automatically make itself main
|
78
|
+
when you append it to the document.
|
79
|
+
*/
|
80
|
+
mainPane: null,
|
81
|
+
|
82
|
+
/**
|
83
|
+
Swaps the main pane. If the current main pane is also the key pane, then
|
84
|
+
the new main pane will also be made key view automatically. In addition
|
85
|
+
to simply updating the mainPane property, this method will also notify the
|
86
|
+
panes themselves that they will lose/gain their mainView status.
|
87
|
+
|
88
|
+
Note that this method does not actually change the Pane's place in the
|
89
|
+
document body. That will be handled by the Pane itself.
|
90
|
+
|
91
|
+
@param {SC.Pane} pane
|
92
|
+
@returns {SC.RootResponder} receiver
|
93
|
+
*/
|
94
|
+
makeMainPane: function(pane) {
|
95
|
+
var currentMain = this.get('mainPane') ;
|
96
|
+
if (currentMain === pane) return this ; // nothing to do
|
97
|
+
|
98
|
+
this.beginPropertyChanges() ;
|
99
|
+
|
100
|
+
// change key focus if needed.
|
101
|
+
if (this.get('keyPane') === currentMain) this.makeKeyPane(pane) ;
|
102
|
+
|
103
|
+
// change setting
|
104
|
+
this.set('mainPane', pane) ;
|
105
|
+
|
106
|
+
// notify panes. This will allow them to remove themselves.
|
107
|
+
if (currentMain) currentMain.blurMainTo(pane) ;
|
108
|
+
if (pane) pane.focusMainFrom(currentMain) ;
|
109
|
+
|
110
|
+
this.endPropertyChanges() ;
|
111
|
+
return this ;
|
112
|
+
},
|
113
|
+
|
114
|
+
// ..........................................................
|
115
|
+
// MENU PANE
|
116
|
+
//
|
117
|
+
|
118
|
+
/**
|
119
|
+
The current menu pane. This pane receives keyboard events before all other
|
120
|
+
panes, but tends to be transient, as it is only set when a pane is open.
|
121
|
+
|
122
|
+
@type SC.MenuPane
|
123
|
+
*/
|
124
|
+
menuPane: null,
|
125
|
+
|
126
|
+
/**
|
127
|
+
Sets a pane as the menu pane. All key events will be directed to this
|
128
|
+
pane, but the current key pane will not lose focus.
|
129
|
+
|
130
|
+
Usually you would not call this method directly, but allow instances of
|
131
|
+
SC.MenuPane to manage the menu pane for you. If your pane does need to
|
132
|
+
become menu pane, you should relinquish control by calling this method
|
133
|
+
with a null parameter. Otherwise, key events will always be delivered to
|
134
|
+
that pane.
|
135
|
+
|
136
|
+
@param {SC.MenuPane} pane
|
137
|
+
@returns {SC.RootResponder} receiver
|
138
|
+
*/
|
139
|
+
makeMenuPane: function(pane) {
|
140
|
+
// Does the specified pane accept being the menu pane? If not, there's
|
141
|
+
// nothing to do.
|
142
|
+
if (pane && !pane.get('acceptsMenuPane')) {
|
143
|
+
return this;
|
144
|
+
} else {
|
145
|
+
var currentMenu = this.get('menuPane');
|
146
|
+
if (currentMenu === pane) return this; // nothing to do
|
147
|
+
|
148
|
+
this.set('menuPane', pane);
|
149
|
+
}
|
150
|
+
|
151
|
+
return this;
|
152
|
+
},
|
153
|
+
|
154
|
+
// .......................................................
|
155
|
+
// KEY PANE
|
156
|
+
//
|
157
|
+
|
158
|
+
/**
|
159
|
+
The current key pane. This pane receives keyboard events, shortcuts, and
|
160
|
+
actions first, unless a menu is open. This pane is usually the highest
|
161
|
+
ordered pane or the mainPane.
|
162
|
+
|
163
|
+
@type SC.Pane
|
164
|
+
*/
|
165
|
+
keyPane: null,
|
166
|
+
|
167
|
+
/** @property
|
168
|
+
A stack of the previous key panes.
|
169
|
+
|
170
|
+
*IMPORTANT: Property is not observable*
|
171
|
+
*/
|
172
|
+
previousKeyPanes: [],
|
173
|
+
|
174
|
+
/**
|
175
|
+
Makes the passed pane the new key pane. If you pass null or if the pane
|
176
|
+
does not accept key focus, then key focus will transfer to the previous
|
177
|
+
key pane (if it is still attached), and so on down the stack. This will
|
178
|
+
notify both the old pane and the new root View that key focus has changed.
|
179
|
+
|
180
|
+
@param {SC.Pane} pane
|
181
|
+
@returns {SC.RootResponder} receiver
|
182
|
+
*/
|
183
|
+
makeKeyPane: function(pane) {
|
184
|
+
// Was a pane specified?
|
185
|
+
var newKeyPane, previousKeyPane, previousKeyPanes ;
|
186
|
+
|
187
|
+
if (pane) {
|
188
|
+
// Does the specified pane accept being the key pane? If not, there's
|
189
|
+
// nothing to do.
|
190
|
+
if (!pane.get('acceptsKeyPane')) {
|
191
|
+
return this ;
|
192
|
+
}
|
193
|
+
else {
|
194
|
+
// It does accept key pane status? Then push the current keyPane to
|
195
|
+
// the top of the stack and make the specified pane the new keyPane.
|
196
|
+
// First, though, do a sanity-check to make sure it's not already the
|
197
|
+
// key pane, in which case we have nothing to do.
|
198
|
+
previousKeyPane = this.get('keyPane') ;
|
199
|
+
if (previousKeyPane === pane) {
|
200
|
+
return this ;
|
201
|
+
}
|
202
|
+
else {
|
203
|
+
if (previousKeyPane) {
|
204
|
+
previousKeyPanes = this.get('previousKeyPanes') ;
|
205
|
+
previousKeyPanes.push(previousKeyPane) ;
|
206
|
+
}
|
207
|
+
|
208
|
+
newKeyPane = pane ;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
else {
|
213
|
+
// No pane was specified? Then pop the previous key pane off the top of
|
214
|
+
// the stack and make it the new key pane, assuming that it's still
|
215
|
+
// attached and accepts key pane (its value for acceptsKeyPane might
|
216
|
+
// have changed in the meantime). Otherwise, we'll keep going up the
|
217
|
+
// stack.
|
218
|
+
previousKeyPane = this.get('keyPane') ;
|
219
|
+
previousKeyPanes = this.get('previousKeyPanes') ;
|
220
|
+
|
221
|
+
newKeyPane = null ;
|
222
|
+
while (previousKeyPanes.length > 0) {
|
223
|
+
var candidate = previousKeyPanes.pop();
|
224
|
+
if (candidate.get('isPaneAttached') && candidate.get('acceptsKeyPane')) {
|
225
|
+
newKeyPane = candidate ;
|
226
|
+
break ;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
|
232
|
+
// If we found an appropriate candidate, make it the new key pane.
|
233
|
+
// Otherwise, make the main pane the key pane (if it accepts it).
|
234
|
+
if (!newKeyPane) {
|
235
|
+
var mainPane = this.get('mainPane') ;
|
236
|
+
if (mainPane && mainPane.get('acceptsKeyPane')) newKeyPane = mainPane ;
|
237
|
+
}
|
238
|
+
|
239
|
+
// now notify old and new key views of change after edit
|
240
|
+
if (previousKeyPane) previousKeyPane.willLoseKeyPaneTo(newKeyPane) ;
|
241
|
+
if (newKeyPane) newKeyPane.willBecomeKeyPaneFrom(previousKeyPane) ;
|
242
|
+
|
243
|
+
this.set('keyPane', newKeyPane) ;
|
244
|
+
|
245
|
+
if (newKeyPane) newKeyPane.didBecomeKeyPaneFrom(previousKeyPane) ;
|
246
|
+
if (previousKeyPane) previousKeyPane.didLoseKeyPaneTo(newKeyPane) ;
|
247
|
+
|
248
|
+
return this ;
|
249
|
+
},
|
250
|
+
|
251
|
+
// ..........................................................
|
252
|
+
// VIEWPORT STATE
|
253
|
+
//
|
254
|
+
|
255
|
+
/**
|
256
|
+
The last known window size.
|
257
|
+
@type Rect
|
258
|
+
@isReadOnly
|
259
|
+
*/
|
260
|
+
currentWindowSize: null,
|
261
|
+
|
262
|
+
/**
|
263
|
+
Computes the window size from the DOM.
|
264
|
+
|
265
|
+
@returns Rect
|
266
|
+
*/
|
267
|
+
computeWindowSize: function() {
|
268
|
+
var size, bod, docElement;
|
269
|
+
if(!this._bod || !this._docElement){
|
270
|
+
bod = document.body;
|
271
|
+
docElement = document.documentElement;
|
272
|
+
this._bod=bod;
|
273
|
+
this._docElement=docElement;
|
274
|
+
}else{
|
275
|
+
bod = this._bod;
|
276
|
+
docElement = this._docElement;
|
277
|
+
}
|
278
|
+
if (window.innerHeight) {
|
279
|
+
size = {
|
280
|
+
width: window.innerWidth,
|
281
|
+
height: window.innerHeight
|
282
|
+
} ;
|
283
|
+
} else if (docElement && docElement.clientHeight) {
|
284
|
+
size = {
|
285
|
+
width: docElement.clientWidth,
|
286
|
+
height: docElement.clientHeight
|
287
|
+
};
|
288
|
+
} else if (bod) {
|
289
|
+
size = {
|
290
|
+
width: bod.clientWidth,
|
291
|
+
height: bod.clientHeight
|
292
|
+
} ;
|
293
|
+
}
|
294
|
+
return size;
|
295
|
+
},
|
296
|
+
|
297
|
+
/**
|
298
|
+
On window resize, notifies panes of the change.
|
299
|
+
|
300
|
+
@returns {Boolean}
|
301
|
+
*/
|
302
|
+
resize: function() {
|
303
|
+
this._resize();
|
304
|
+
//this.invokeLater(this._resize, 10);
|
305
|
+
return YES; //always allow normal processing to continue.
|
306
|
+
},
|
307
|
+
|
308
|
+
_resize: function() {
|
309
|
+
// calculate new window size...
|
310
|
+
var newSize = this.computeWindowSize(), oldSize = this.get('currentWindowSize');
|
311
|
+
this.set('currentWindowSize', newSize); // update size
|
312
|
+
|
313
|
+
if (!SC.rectsEqual(newSize, oldSize)) {
|
314
|
+
//Notify orientation change. This is faster than waiting for the orientation
|
315
|
+
//change event.
|
316
|
+
SC.device.windowSizeDidChange(newSize);
|
317
|
+
|
318
|
+
// notify panes
|
319
|
+
if (this.panes) {
|
320
|
+
SC.run(function() {
|
321
|
+
this.panes.invoke('windowSizeDidChange', oldSize, newSize) ;
|
322
|
+
}, this);
|
323
|
+
}
|
324
|
+
}
|
325
|
+
},
|
326
|
+
|
327
|
+
/**
|
328
|
+
Indicates whether or not the window currently has focus. If you need
|
329
|
+
to do something based on whether or not the window is in focus, you can
|
330
|
+
setup a binding or observer to this property. Note that the SproutCore
|
331
|
+
automatically adds an sc-focus or sc-blur CSS class to the body tag as
|
332
|
+
appropriate. If you only care about changing the appearance of your
|
333
|
+
controls, you should use those classes in your CSS rules instead.
|
334
|
+
*/
|
335
|
+
hasFocus: NO,
|
336
|
+
|
337
|
+
/**
|
338
|
+
Handle window focus. Change hasFocus and add sc-focus CSS class
|
339
|
+
(removing sc-blur). Also notify panes.
|
340
|
+
*/
|
341
|
+
focus: function() {
|
342
|
+
if (!this.get('hasFocus')) {
|
343
|
+
SC.$('body').addClass('sc-focus').removeClass('sc-blur');
|
344
|
+
|
345
|
+
SC.run(function() {
|
346
|
+
this.set('hasFocus', YES);
|
347
|
+
}, this);
|
348
|
+
}
|
349
|
+
return YES ; // allow default
|
350
|
+
},
|
351
|
+
|
352
|
+
/**
|
353
|
+
Handle window focus event for IE. Listening to the focus event is not
|
354
|
+
reliable as per every focus event you receive you inmediately get a blur
|
355
|
+
event (Only on IE of course ;)
|
356
|
+
*/
|
357
|
+
focusin: function() {
|
358
|
+
this.focus();
|
359
|
+
},
|
360
|
+
|
361
|
+
/**
|
362
|
+
Handle window blur event for IE. Listening to the focus event is not
|
363
|
+
reliable as per every focus event you receive you inmediately get a blur
|
364
|
+
event (Only on IE of course ;)
|
365
|
+
*/
|
366
|
+
focusout: function() {
|
367
|
+
this.blur();
|
368
|
+
},
|
369
|
+
|
370
|
+
|
371
|
+
/**
|
372
|
+
Handle window focus. Change hasFocus and add sc-focus CSS class (removing
|
373
|
+
sc-blur). Also notify panes.
|
374
|
+
*/
|
375
|
+
blur: function() {
|
376
|
+
if (this.get('hasFocus')) {
|
377
|
+
SC.$('body').addClass('sc-blur').removeClass('sc-focus');
|
378
|
+
|
379
|
+
SC.run(function() {
|
380
|
+
this.set('hasFocus', NO);
|
381
|
+
}, this);
|
382
|
+
}
|
383
|
+
return YES ; // allow default
|
384
|
+
},
|
385
|
+
|
386
|
+
dragDidStart: function(drag) {
|
387
|
+
this._mouseDownView = drag ;
|
388
|
+
this._drag = drag ;
|
389
|
+
},
|
390
|
+
|
391
|
+
// .......................................................
|
392
|
+
// ACTIONS
|
393
|
+
//
|
394
|
+
|
395
|
+
/**
|
396
|
+
Set this to a delegate object that can respond to actions as they are sent
|
397
|
+
down the responder chain.
|
398
|
+
|
399
|
+
@type SC.Object
|
400
|
+
*/
|
401
|
+
defaultResponder: null,
|
402
|
+
|
403
|
+
/**
|
404
|
+
Route an action message to the appropriate responder. This method will
|
405
|
+
walk the responder chain, attempting to find a responder that implements
|
406
|
+
the action name you pass to this method. Set 'target' to null to search
|
407
|
+
the responder chain.
|
408
|
+
|
409
|
+
**IMPORTANT**: This method's API and implementation will likely change
|
410
|
+
significantly after SproutCore 1.0 to match the version found in
|
411
|
+
SC.ResponderContext.
|
412
|
+
|
413
|
+
You generally should not call or override this method in your own
|
414
|
+
applications.
|
415
|
+
|
416
|
+
@param {String} action The action to perform - this is a method name.
|
417
|
+
@param {SC.Responder} target object to set method to (can be null)
|
418
|
+
@param {Object} sender The sender of the action
|
419
|
+
@param {SC.Pane} pane optional pane to start search with
|
420
|
+
@param {Object} context optional. only passed to ResponderContexts
|
421
|
+
@returns {Boolean} YES if action was performed, NO otherwise
|
422
|
+
@test in targetForAction
|
423
|
+
*/
|
424
|
+
sendAction: function( action, target, sender, pane, context, firstResponder) {
|
425
|
+
target = this.targetForAction(action, target, sender, pane, firstResponder) ;
|
426
|
+
|
427
|
+
// HACK: If the target is a ResponderContext, forward the action.
|
428
|
+
if (target && target.isResponderContext) {
|
429
|
+
return !!target.sendAction(action, sender, context, firstResponder);
|
430
|
+
} else return target && target.tryToPerform(action, sender);
|
431
|
+
},
|
432
|
+
|
433
|
+
_responderFor: function(target, methodName, firstResponder) {
|
434
|
+
var defaultResponder = target ? target.get('defaultResponder') : null;
|
435
|
+
|
436
|
+
if (target) {
|
437
|
+
target = firstResponder || target.get('firstResponder') || target;
|
438
|
+
do {
|
439
|
+
if (target.respondsTo(methodName)) return target ;
|
440
|
+
} while ((target = target.get('nextResponder'))) ;
|
441
|
+
}
|
442
|
+
|
443
|
+
// HACK: Eventually we need to normalize the sendAction() method between
|
444
|
+
// this and the ResponderContext, but for the moment just look for a
|
445
|
+
// ResponderContext as the defaultResponder and return it if present.
|
446
|
+
if (typeof defaultResponder === SC.T_STRING) {
|
447
|
+
defaultResponder = SC.objectForPropertyPath(defaultResponder);
|
448
|
+
}
|
449
|
+
|
450
|
+
if (!defaultResponder) return null;
|
451
|
+
else if (defaultResponder.isResponderContext) return defaultResponder;
|
452
|
+
else if (defaultResponder.respondsTo(methodName)) return defaultResponder;
|
453
|
+
else return null;
|
454
|
+
},
|
455
|
+
|
456
|
+
/**
|
457
|
+
Attempts to determine the initial target for a given action/target/sender
|
458
|
+
tuple. This is the method used by sendAction() to try to determine the
|
459
|
+
correct target starting point for an action before trickling up the
|
460
|
+
responder chain.
|
461
|
+
|
462
|
+
You send actions for user interface events and for menu actions.
|
463
|
+
|
464
|
+
This method returns an object if a starting target was found or null if no
|
465
|
+
object could be found that responds to the target action.
|
466
|
+
|
467
|
+
Passing an explicit target or pane constrains the target lookup to just
|
468
|
+
them; the defaultResponder and other panes are *not* searched.
|
469
|
+
|
470
|
+
@param {Object|String} target or null if no target is specified
|
471
|
+
@param {String} method name for target
|
472
|
+
@param {Object} sender optional sender
|
473
|
+
@param {SC.Pane} optional pane
|
474
|
+
@param {firstResponder} a first responder to use
|
475
|
+
@returns {Object} target object or null if none found
|
476
|
+
*/
|
477
|
+
targetForAction: function(methodName, target, sender, pane, firstResponder) {
|
478
|
+
|
479
|
+
// 1. no action, no target...
|
480
|
+
if (!methodName || (SC.typeOf(methodName) !== SC.T_STRING)) {
|
481
|
+
return null ;
|
482
|
+
}
|
483
|
+
|
484
|
+
// 2. an explicit target was passed...
|
485
|
+
if (target) {
|
486
|
+
if (SC.typeOf(target) === SC.T_STRING) {
|
487
|
+
target = SC.objectForPropertyPath(target) ||
|
488
|
+
SC.objectForPropertyPath(target, sender);
|
489
|
+
}
|
490
|
+
|
491
|
+
if (target && !target.isResponderContext) {
|
492
|
+
if (target.respondsTo && !target.respondsTo(methodName)) {
|
493
|
+
target = null ;
|
494
|
+
} else if (SC.typeOf(target[methodName]) !== SC.T_FUNCTION) {
|
495
|
+
target = null ;
|
496
|
+
}
|
497
|
+
}
|
498
|
+
|
499
|
+
return target ;
|
500
|
+
}
|
501
|
+
|
502
|
+
// 3. an explicit pane was passed...
|
503
|
+
if (pane) {
|
504
|
+
target = this._responderFor(pane, methodName, firstResponder);
|
505
|
+
if (target) return target;
|
506
|
+
}
|
507
|
+
|
508
|
+
// 4. no target or pane passed... try to find target in the active panes
|
509
|
+
// and the defaultResponder
|
510
|
+
var keyPane = this.get('keyPane'), mainPane = this.get('mainPane') ;
|
511
|
+
|
512
|
+
// ...check key and main panes first
|
513
|
+
if (keyPane && (keyPane !== pane)) {
|
514
|
+
target = this._responderFor(keyPane, methodName) ;
|
515
|
+
}
|
516
|
+
if (!target && mainPane && (mainPane !== keyPane)) {
|
517
|
+
target = this._responderFor(mainPane, methodName) ;
|
518
|
+
}
|
519
|
+
|
520
|
+
// ...still no target? check the defaultResponder...
|
521
|
+
if (!target && (target = this.get('defaultResponder'))) {
|
522
|
+
if (SC.typeOf(target) === SC.T_STRING) {
|
523
|
+
target = SC.objectForPropertyPath(target) ;
|
524
|
+
if (target) this.set('defaultResponder', target) ; // cache if found
|
525
|
+
}
|
526
|
+
if (target && !target.isResponderContext) {
|
527
|
+
if (target.respondsTo && !target.respondsTo(methodName)) {
|
528
|
+
target = null ;
|
529
|
+
} else if (SC.typeOf(target[methodName]) !== SC.T_FUNCTION) {
|
530
|
+
target = null ;
|
531
|
+
}
|
532
|
+
}
|
533
|
+
}
|
534
|
+
|
535
|
+
return target ;
|
536
|
+
},
|
537
|
+
|
538
|
+
/**
|
539
|
+
Finds the view that appears to be targeted by the passed event. This only
|
540
|
+
works on events with a valid target property.
|
541
|
+
|
542
|
+
@param {SC.Event} evt
|
543
|
+
@returns {SC.View} view instance or null
|
544
|
+
*/
|
545
|
+
targetViewForEvent: function(evt) {
|
546
|
+
return evt.target ? SC.$(evt.target).view()[0] : null ;
|
547
|
+
},
|
548
|
+
|
549
|
+
/**
|
550
|
+
Attempts to send an event down the responder chain. This method will
|
551
|
+
invoke the sendEvent() method on either the keyPane or on the pane owning
|
552
|
+
the target view you pass in. It will also automatically begin and end
|
553
|
+
a new run loop.
|
554
|
+
|
555
|
+
If you want to trap additional events, you should use this method to
|
556
|
+
send the event down the responder chain.
|
557
|
+
|
558
|
+
@param {String} action
|
559
|
+
@param {SC.Event} evt
|
560
|
+
@param {Object} target
|
561
|
+
@returns {Object} object that handled the event or null if not handled
|
562
|
+
*/
|
563
|
+
sendEvent: function(action, evt, target) {
|
564
|
+
var pane, ret ;
|
565
|
+
|
566
|
+
SC.run(function() {
|
567
|
+
// get the target pane
|
568
|
+
if (target) pane = target.get('pane') ;
|
569
|
+
else pane = this.get('menuPane') || this.get('keyPane') || this.get('mainPane') ;
|
570
|
+
|
571
|
+
// if we found a valid pane, send the event to it
|
572
|
+
ret = (pane) ? pane.sendEvent(action, evt, target) : null ;
|
573
|
+
}, this);
|
574
|
+
|
575
|
+
return ret ;
|
576
|
+
},
|
577
|
+
|
578
|
+
// .......................................................
|
579
|
+
// EVENT LISTENER SETUP
|
580
|
+
//
|
581
|
+
|
582
|
+
/**
|
583
|
+
Default method to add an event listener for the named event. If you simply
|
584
|
+
need to add listeners for a type of event, you can use this method as
|
585
|
+
shorthand. Pass an array of event types to listen for and the element to
|
586
|
+
listen in. A listener will only be added if a handler is actually installed
|
587
|
+
on the RootResponder (or receiver) of the same name.
|
588
|
+
|
589
|
+
@param {Array} keyNames
|
590
|
+
@param {Element} target
|
591
|
+
@param {Object} receiver - optional if you don't want 'this'
|
592
|
+
@param {Boolean} useCapture
|
593
|
+
@returns {SC.RootResponder} receiver
|
594
|
+
*/
|
595
|
+
listenFor: function(keyNames, target, receiver, useCapture) {
|
596
|
+
receiver = receiver ? receiver : this;
|
597
|
+
keyNames.forEach( function(keyName) {
|
598
|
+
var method = receiver[keyName] ;
|
599
|
+
if (method) SC.Event.add(target, keyName, receiver, method, null, useCapture) ;
|
600
|
+
},this) ;
|
601
|
+
target = null ;
|
602
|
+
return receiver ;
|
603
|
+
},
|
604
|
+
|
605
|
+
/**
|
606
|
+
Called when the document is ready to begin handling events. Setup event
|
607
|
+
listeners in this method that you are interested in observing for your
|
608
|
+
particular platform. Be sure to call sc_super().
|
609
|
+
|
610
|
+
@returns {void}
|
611
|
+
*/
|
612
|
+
setup: function() {
|
613
|
+
// handle touch events
|
614
|
+
this.listenFor(['touchstart', 'touchmove', 'touchend', 'touchcancel'], document);
|
615
|
+
|
616
|
+
// handle basic events
|
617
|
+
this.listenFor(['keydown', 'keyup', 'beforedeactivate', 'mousedown', 'mouseup', 'click', 'dblclick', 'mousemove', 'selectstart', 'contextmenu'], document)
|
618
|
+
.listenFor(['resize'], window);
|
619
|
+
|
620
|
+
if(SC.browser.msie) this.listenFor('focusin focusout'.w(), document);
|
621
|
+
else this.listenFor(['focus', 'blur'], window);
|
622
|
+
|
623
|
+
// handle animation events
|
624
|
+
this.listenFor(['webkitAnimationStart', 'webkitAnimationIteration', 'webkitAnimationEnd'], document);
|
625
|
+
|
626
|
+
// CSS Transitions
|
627
|
+
if (SC.platform.supportsCSSTransitions) {
|
628
|
+
this.listenFor(['transitionend', SC.platform.cssPrefix+'TransitionEnd'], document);
|
629
|
+
}
|
630
|
+
|
631
|
+
// handle special case for keypress- you can't use normal listener to block the backspace key on Mozilla
|
632
|
+
if (this.keypress) {
|
633
|
+
if (SC.CAPTURE_BACKSPACE_KEY && SC.browser.mozilla) {
|
634
|
+
var responder = this ;
|
635
|
+
document.onkeypress = function(e) {
|
636
|
+
e = SC.Event.normalizeEvent(e);
|
637
|
+
return responder.keypress.call(responder, e);
|
638
|
+
};
|
639
|
+
|
640
|
+
// SC.Event.add(window, 'unload', this, function() { document.onkeypress = null; }); // be sure to cleanup memory leaks
|
641
|
+
|
642
|
+
// Otherwise, just add a normal event handler.
|
643
|
+
} else SC.Event.add(document, 'keypress', this, this.keypress);
|
644
|
+
}
|
645
|
+
|
646
|
+
// handle these two events specially in IE
|
647
|
+
['drag', 'selectstart'].forEach(function(keyName) {
|
648
|
+
var method = this[keyName] ;
|
649
|
+
if (method) {
|
650
|
+
if (SC.browser.msie) {
|
651
|
+
var responder = this ;
|
652
|
+
document.body['on' + keyName] = function(e) {
|
653
|
+
// return method.call(responder, SC.Event.normalizeEvent(e));
|
654
|
+
return method.call(responder, SC.Event.normalizeEvent(event || window.event)); // this is IE :(
|
655
|
+
};
|
656
|
+
|
657
|
+
// be sure to cleanup memory leaks
|
658
|
+
SC.Event.add(window, 'unload', this, function() {
|
659
|
+
document.body['on' + keyName] = null;
|
660
|
+
});
|
661
|
+
|
662
|
+
} else {
|
663
|
+
SC.Event.add(document, keyName, this, method);
|
664
|
+
}
|
665
|
+
}
|
666
|
+
}, this);
|
667
|
+
|
668
|
+
var mousewheel = 'mousewheel';
|
669
|
+
|
670
|
+
// Firefox emits different mousewheel events than other browsers
|
671
|
+
if (SC.browser.mozilla) {
|
672
|
+
// For Firefox <3.5, subscribe to DOMMouseScroll events
|
673
|
+
if (SC.browser.compareVersion(1,9,1) < 0) {
|
674
|
+
mousewheel = 'DOMMouseScroll';
|
675
|
+
|
676
|
+
// For Firefox 3.5 and greater, we can listen for MozMousePixelScroll,
|
677
|
+
// which supports pixel-precision scrolling devices, like MacBook
|
678
|
+
// trackpads.
|
679
|
+
} else {
|
680
|
+
mousewheel = 'MozMousePixelScroll';
|
681
|
+
}
|
682
|
+
}
|
683
|
+
SC.Event.add(document, mousewheel, this, this.mousewheel);
|
684
|
+
|
685
|
+
// If the browser is identifying itself as a touch-enabled browser, but
|
686
|
+
// touch events are not present, assume this is a desktop browser doing
|
687
|
+
// user agent spoofing and simulate touch events automatically.
|
688
|
+
if (SC.browser && SC.platform && SC.browser.mobileSafari && !SC.platform.touch) {
|
689
|
+
SC.platform.simulateTouchEvents();
|
690
|
+
}
|
691
|
+
|
692
|
+
// do some initial set
|
693
|
+
this.set('currentWindowSize', this.computeWindowSize()) ;
|
694
|
+
this.focus(); // assume the window is focused when you load.
|
695
|
+
|
696
|
+
if (SC.browser.mobileSafari) {
|
697
|
+
// Monkey patch RunLoop if we're in MobileSafari
|
698
|
+
var f = SC.RunLoop.prototype.endRunLoop, patch;
|
699
|
+
|
700
|
+
patch = function() {
|
701
|
+
// Call original endRunLoop implementation.
|
702
|
+
if (f) f.apply(this, arguments);
|
703
|
+
|
704
|
+
// This is a workaround for a bug in MobileSafari.
|
705
|
+
// Specifically, if the target of a touchstart event is removed from the DOM,
|
706
|
+
// you will not receive future touchmove or touchend events. What we do is, at the
|
707
|
+
// end of every runloop, check to see if the target of any touches has been removed
|
708
|
+
// from the DOM. If so, we re-append it to the DOM and hide it. We then mark the target
|
709
|
+
// as having been moved, and it is de-allocated in the corresponding touchend event.
|
710
|
+
var touches = SC.RootResponder.responder._touches, touch, elem, target, textNode, view, found = NO;
|
711
|
+
if (touches) {
|
712
|
+
// Iterate through the touches we're currently tracking
|
713
|
+
for (touch in touches) {
|
714
|
+
if (touches[touch]._rescuedElement) continue; // only do once
|
715
|
+
|
716
|
+
target = elem = touches[touch].target;
|
717
|
+
|
718
|
+
// Travel up the hierarchy looking for the document body
|
719
|
+
while (elem && (elem = elem.parentNode) && !found) {
|
720
|
+
found = (elem === document.body);
|
721
|
+
}
|
722
|
+
|
723
|
+
// If we aren't part of the body, move the element back
|
724
|
+
// but make sure we hide it from display.
|
725
|
+
if (!found && target) {
|
726
|
+
|
727
|
+
// Actually clone this node and replace it in the original
|
728
|
+
// layer if needed
|
729
|
+
if (target.parentNode && target.cloneNode) {
|
730
|
+
var clone = target.cloneNode(true);
|
731
|
+
target.parentNode.replaceChild(clone, target);
|
732
|
+
target.swapNode = clone; // save for restore later
|
733
|
+
}
|
734
|
+
|
735
|
+
// Create a holding pen if needed for these views...
|
736
|
+
var pen = SC.touchHoldingPen;
|
737
|
+
if (!pen) {
|
738
|
+
pen = SC.touchHoldingPen = document.createElement('div');
|
739
|
+
pen.style.display = 'none';
|
740
|
+
document.body.appendChild(pen);
|
741
|
+
}
|
742
|
+
|
743
|
+
// move element back into document...
|
744
|
+
pen.appendChild(target);
|
745
|
+
|
746
|
+
// // In MobileSafari, our target can sometimes
|
747
|
+
// // be a text node, so make sure we handle that case.
|
748
|
+
// textNode = (target.nodeType === 3);
|
749
|
+
//
|
750
|
+
// if (textNode && target.parentElement) {
|
751
|
+
// // Hide the text node's parent element if it has one
|
752
|
+
// target = target.parentElement;
|
753
|
+
// target.style.display = 'none';
|
754
|
+
// } else if (textNode) {
|
755
|
+
// // We have a text node with no containing element,
|
756
|
+
// // so just erase its text content.
|
757
|
+
// target.nodeValue = '';
|
758
|
+
// } else {
|
759
|
+
// // Standard Element, just toggle its display off.
|
760
|
+
// target.style.display = 'none';
|
761
|
+
// }
|
762
|
+
//
|
763
|
+
// // Now move the captured and hidden element back to the DOM.
|
764
|
+
// document.body.appendChild(target);
|
765
|
+
|
766
|
+
// ...and save the element to be garbage collected on
|
767
|
+
// touchEnd.
|
768
|
+
touches[touch]._rescuedElement = target;
|
769
|
+
}
|
770
|
+
}
|
771
|
+
}
|
772
|
+
};
|
773
|
+
SC.RunLoop.prototype.endRunLoop = patch;
|
774
|
+
}
|
775
|
+
},
|
776
|
+
|
777
|
+
// ................................................................................
|
778
|
+
// TOUCH SUPPORT
|
779
|
+
//
|
780
|
+
/*
|
781
|
+
This touch support is written to meet the following specifications. They are actually
|
782
|
+
simple, but I decided to write out in great detail all of the rules so there would
|
783
|
+
be no confusion.
|
784
|
+
|
785
|
+
There are three events: touchStart, touchEnd, touchDragged. touchStart and End are called
|
786
|
+
individually for each touch. touchDragged events are sent to whatever view owns the touch
|
787
|
+
event
|
788
|
+
*/
|
789
|
+
|
790
|
+
/**
|
791
|
+
@private
|
792
|
+
A map from views to internal touch entries.
|
793
|
+
|
794
|
+
Note: the touch entries themselves also reference the views.
|
795
|
+
*/
|
796
|
+
_touchedViews: {},
|
797
|
+
|
798
|
+
/**
|
799
|
+
@private
|
800
|
+
A map from internal touch ids to the touch entries themselves.
|
801
|
+
|
802
|
+
The touch entry ids currently come from the touch event's identifier.
|
803
|
+
*/
|
804
|
+
_touches: {},
|
805
|
+
|
806
|
+
/**
|
807
|
+
Returns the touches that are registered to the specified view or responder; undefined if none.
|
808
|
+
|
809
|
+
When views receive a touch event, they have the option to subscribe to it.
|
810
|
+
They are then mapped to touch events and vice-versa. This returns touches mapped to the view.
|
811
|
+
*/
|
812
|
+
touchesForView: function(view) {
|
813
|
+
if (this._touchedViews[SC.guidFor(view)]) {
|
814
|
+
return this._touchedViews[SC.guidFor(view)].touches;
|
815
|
+
}
|
816
|
+
},
|
817
|
+
|
818
|
+
/**
|
819
|
+
Computes a hash with x, y, and d (distance) properties, containing the average position
|
820
|
+
of all touches, and the average distance of all touches from that average.
|
821
|
+
|
822
|
+
This is useful for implementing scaling.
|
823
|
+
*/
|
824
|
+
averagedTouchesForView: function(view, added) {
|
825
|
+
var t = this.touchesForView(view),
|
826
|
+
|
827
|
+
// cache per view to avoid gc
|
828
|
+
averaged = view._scrr_averagedTouches || (view._scrr_averagedTouches = {});
|
829
|
+
|
830
|
+
if ((!t || t.length === 0) && !added) {
|
831
|
+
averaged.x = 0;
|
832
|
+
averaged.y = 0;
|
833
|
+
averaged.d = 0;
|
834
|
+
averaged.touchCount = 0;
|
835
|
+
|
836
|
+
} else {
|
837
|
+
// make array of touches using cached array
|
838
|
+
var touches = this._averagedTouches_touches || (this._averagedTouches_touches = []);
|
839
|
+
touches.length = 0;
|
840
|
+
|
841
|
+
// copy touches into array
|
842
|
+
if (t) {
|
843
|
+
var i, len = t.length;
|
844
|
+
for(i = 0; i < len; i++) {
|
845
|
+
touches.push(t[i]);
|
846
|
+
}
|
847
|
+
}
|
848
|
+
|
849
|
+
// add added if needed
|
850
|
+
if (added) touches.push(added);
|
851
|
+
|
852
|
+
// prepare variables for looping
|
853
|
+
var idx, touch,
|
854
|
+
ax = 0, ay = 0, dx, dy, ad = 0;
|
855
|
+
len = touches.length;
|
856
|
+
|
857
|
+
// first, add
|
858
|
+
for (idx = 0; idx < len; idx++) {
|
859
|
+
touch = touches[idx];
|
860
|
+
ax += touch.pageX; ay += touch.pageY;
|
861
|
+
}
|
862
|
+
|
863
|
+
// now, average
|
864
|
+
ax /= len;
|
865
|
+
ay /= len;
|
866
|
+
|
867
|
+
// distance
|
868
|
+
for (idx = 0; idx < len; idx++) {
|
869
|
+
touch = touches[idx];
|
870
|
+
|
871
|
+
// get distance from average
|
872
|
+
dx = Math.abs(touch.pageX - ax);
|
873
|
+
dy = Math.abs(touch.pageY - ay);
|
874
|
+
|
875
|
+
// Pythagoras was clever...
|
876
|
+
ad += Math.pow(dx * dx + dy * dy, 0.5);
|
877
|
+
}
|
878
|
+
|
879
|
+
// average
|
880
|
+
ad /= len;
|
881
|
+
|
882
|
+
averaged.x = ax;
|
883
|
+
averaged.y = ay;
|
884
|
+
averaged.d = ad;
|
885
|
+
averaged.touchCount = len;
|
886
|
+
}
|
887
|
+
|
888
|
+
return averaged;
|
889
|
+
},
|
890
|
+
|
891
|
+
assignTouch: function(touch, view) {
|
892
|
+
// sanity-check
|
893
|
+
if (touch.hasEnded) throw "Attemt to assign a touch that is already finished.";
|
894
|
+
|
895
|
+
// unassign from old view if necessary
|
896
|
+
if (touch.view === view) return;
|
897
|
+
if (touch.view) {
|
898
|
+
this.unassignTouch(touch);
|
899
|
+
}
|
900
|
+
|
901
|
+
// create view entry if needed
|
902
|
+
if (!this._touchedViews[SC.guidFor(view)]) {
|
903
|
+
this._touchedViews[SC.guidFor(view)] = {
|
904
|
+
view: view,
|
905
|
+
touches: SC.CoreSet.create([]),
|
906
|
+
touchCount: 0
|
907
|
+
};
|
908
|
+
view.set("hasTouch", YES);
|
909
|
+
}
|
910
|
+
|
911
|
+
// add touch
|
912
|
+
touch.view = view;
|
913
|
+
this._touchedViews[SC.guidFor(view)].touches.add(touch);
|
914
|
+
this._touchedViews[SC.guidFor(view)].touchCount++;
|
915
|
+
},
|
916
|
+
|
917
|
+
unassignTouch: function(touch) {
|
918
|
+
// find view entry
|
919
|
+
var view, viewEntry;
|
920
|
+
|
921
|
+
// get view
|
922
|
+
if (!touch.view) return; // touch.view should===touch.touchResponder eventually :)
|
923
|
+
view = touch.view;
|
924
|
+
|
925
|
+
// get view entry
|
926
|
+
viewEntry = this._touchedViews[SC.guidFor(view)];
|
927
|
+
viewEntry.touches.remove(touch);
|
928
|
+
viewEntry.touchCount--;
|
929
|
+
|
930
|
+
// remove view entry if needed
|
931
|
+
if (viewEntry.touchCount < 1) {
|
932
|
+
view.set("hasTouch", NO);
|
933
|
+
viewEntry.view = null;
|
934
|
+
delete this._touchedViews[SC.guidFor(view)];
|
935
|
+
}
|
936
|
+
|
937
|
+
// clear view
|
938
|
+
touch.view = undefined;
|
939
|
+
},
|
940
|
+
|
941
|
+
_flushQueuedTouchResponder: function(){
|
942
|
+
if (this._queuedTouchResponder) {
|
943
|
+
var queued = this._queuedTouchResponder;
|
944
|
+
this._queuedTouchResponder = null;
|
945
|
+
this.makeTouchResponder.apply(this, queued);
|
946
|
+
}
|
947
|
+
},
|
948
|
+
|
949
|
+
/**
|
950
|
+
The touch responder for any given touch is the view which will receive touch events
|
951
|
+
for that touch. Quite simple.
|
952
|
+
|
953
|
+
makeTouchResponder takes a potential responder as an argument, and, by calling touchStart on each
|
954
|
+
nextResponder, finds the actual responder. As a side-effect of how it does this, touchStart is called
|
955
|
+
on the new responder before touchCancelled is called on the old one (touchStart has to accept the touch
|
956
|
+
before it can be considered cancelled).
|
957
|
+
|
958
|
+
You usually don't have to think about this at all. However, if you don't want your view to,
|
959
|
+
for instance, prevent scrolling in a ScrollView, you need to make sure to transfer control
|
960
|
+
back to the previous responder:
|
961
|
+
|
962
|
+
if (Math.abs(touch.pageY - touch.startY) > this.MAX_SWIPE)
|
963
|
+
touch.restoreLastTouchResponder();
|
964
|
+
|
965
|
+
You don't call makeTouchResponder on RootResponder directly. Instead, it gets called for you
|
966
|
+
when you return YES to captureTouch or touchStart.
|
967
|
+
|
968
|
+
You do, however, use a form of makeTouchResponder to return to a previous touch responder. Consider
|
969
|
+
a button view inside a ScrollView: if the touch moves too much, the button should give control back
|
970
|
+
to the scroll view.
|
971
|
+
|
972
|
+
if (Math.abs(touch.pageX - touch.startX) > 4) {
|
973
|
+
if (touch.nextTouchResponder)
|
974
|
+
touch.makeTouchResponder(touch.nextTouchResponder);
|
975
|
+
}
|
976
|
+
|
977
|
+
This will give control back to the containing view. Maybe you only want to do it if it is a ScrollView?
|
978
|
+
|
979
|
+
if (
|
980
|
+
Math.abs(touch.pageX - touch.startX) > 4 &&
|
981
|
+
touch.nextTouchResponder &&
|
982
|
+
touch.nextTouchResponder.isScrollable
|
983
|
+
)
|
984
|
+
touch.makeTouchResponder(touch.nextTouchResponder);
|
985
|
+
|
986
|
+
Possible gotcha: while you can do touch.nextTouchResponder, the responders are not chained in a linked list like
|
987
|
+
normal responders, because each touch has its own responder stack. To navigate through the stack (or, though
|
988
|
+
it is not recommended, change it), use touch.touchResponders (the raw stack array).
|
989
|
+
|
990
|
+
makeTouchResponder is called with an event object. However, it usually triggers custom touchStart/touchCancelled
|
991
|
+
events on the views. The event object is passed so that functions such as stopPropagation may be called.
|
992
|
+
*/
|
993
|
+
makeTouchResponder: function(touch, responder, shouldStack, upViewChain) {
|
994
|
+
|
995
|
+
// In certain cases (SC.Gesture being one), we have to call makeTouchResponder
|
996
|
+
// from inside makeTouchResponder so we queue it up here.
|
997
|
+
if (this._isMakingTouchResponder) {
|
998
|
+
this._queuedTouchResponder = [touch, responder, shouldStack, upViewChain];
|
999
|
+
return;
|
1000
|
+
}
|
1001
|
+
this._isMakingTouchResponder = YES;
|
1002
|
+
|
1003
|
+
|
1004
|
+
var stack = touch.touchResponders, touchesForView;
|
1005
|
+
|
1006
|
+
// find the actual responder (if any, I suppose)
|
1007
|
+
// note that the pane's sendEvent function is slightly clever:
|
1008
|
+
// if the target is already touch responder, it will just return it without calling touchStart
|
1009
|
+
// we must do the same.
|
1010
|
+
if (touch.touchResponder === responder) {
|
1011
|
+
this._isMakingTouchResponder = NO;
|
1012
|
+
this._flushQueuedTouchResponder();
|
1013
|
+
return;
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
// send touchStart
|
1017
|
+
// get the target pane
|
1018
|
+
var pane;
|
1019
|
+
if (responder) pane = responder.get('pane') ;
|
1020
|
+
else pane = this.get('keyPane') || this.get('mainPane') ;
|
1021
|
+
|
1022
|
+
// if the responder is not already in the stack...
|
1023
|
+
|
1024
|
+
if (stack.indexOf(responder) < 0) {
|
1025
|
+
// if we need to go up the view chain, do so
|
1026
|
+
if (upViewChain) {
|
1027
|
+
// if we found a valid pane, send the event to it
|
1028
|
+
try {
|
1029
|
+
responder = (pane) ? pane.sendEvent("touchStart", touch, responder) : null ;
|
1030
|
+
} catch (e) {
|
1031
|
+
SC.Logger.error("Error in touchStart: " + e);
|
1032
|
+
responder = null;
|
1033
|
+
}
|
1034
|
+
} else {
|
1035
|
+
|
1036
|
+
if (responder && ((responder.get ? responder.get("acceptsMultitouch") : responder.acceptsMultitouch) || !responder.hasTouch)) {
|
1037
|
+
if (!responder.touchStart(touch)) responder = null;
|
1038
|
+
} else {
|
1039
|
+
// do nothing; the responder is the responder, and may stay the responder, and all will be fine
|
1040
|
+
}
|
1041
|
+
}
|
1042
|
+
}
|
1043
|
+
|
1044
|
+
// if the item is in the stack, we will go to it (whether shouldStack is true or not)
|
1045
|
+
// as it is already stacked
|
1046
|
+
if (!shouldStack || (stack.indexOf(responder) > -1 && stack[stack.length - 1] !== responder)) {
|
1047
|
+
// first, we should unassign the touch. Note that we only do this IF WE ARE removing
|
1048
|
+
// the current touch responder. Otherwise we cause all sorts of headaches; why? Because,
|
1049
|
+
// if we are not (suppose, for instance, that it is stacked), then the touch does not
|
1050
|
+
// get passed back to the touch responder-- even while it continues to get events because
|
1051
|
+
// the touchResponder is still set!
|
1052
|
+
this.unassignTouch(touch);
|
1053
|
+
|
1054
|
+
// pop all other items
|
1055
|
+
var idx = stack.length - 1, last = stack[idx];
|
1056
|
+
while (last && last !== responder) {
|
1057
|
+
// unassign the touch
|
1058
|
+
touchesForView = this.touchesForView(last); // won't even exist if there are no touches
|
1059
|
+
|
1060
|
+
// send touchCancelled (or, don't, if the view doesn't accept multitouch and it is not the last touch)
|
1061
|
+
if ((last.get ? last.get("acceptsMultitouch") : last.acceptsMultitouch) || !touchesForView) {
|
1062
|
+
if (last.touchCancelled) last.touchCancelled(touch);
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
// go to next (if < 0, it will be undefined, so lovely)
|
1066
|
+
idx--;
|
1067
|
+
last = stack[idx];
|
1068
|
+
|
1069
|
+
// update responders (for consistency)
|
1070
|
+
stack.pop();
|
1071
|
+
|
1072
|
+
touch.touchResponder = stack[idx];
|
1073
|
+
touch.nextTouchResponder = stack[idx - 1];
|
1074
|
+
}
|
1075
|
+
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
// now that we've popped off, we can push on
|
1079
|
+
if (responder) {
|
1080
|
+
this.assignTouch(touch, responder);
|
1081
|
+
|
1082
|
+
// keep in mind, it could be one we popped off _to_ above...
|
1083
|
+
if (responder !== touch.touchResponder) {
|
1084
|
+
stack.push(responder);
|
1085
|
+
|
1086
|
+
// update responder helpers
|
1087
|
+
touch.touchResponder = responder;
|
1088
|
+
touch.nextTouchResponder = stack[stack.length - 2];
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
|
1093
|
+
this._isMakingTouchResponder = NO;
|
1094
|
+
this._flushQueuedTouchResponder();
|
1095
|
+
|
1096
|
+
},
|
1097
|
+
|
1098
|
+
/**
|
1099
|
+
captureTouch is used to find the view to handle a touch. It starts at the starting point and works down
|
1100
|
+
to the touch's target, looking for a view which captures the touch. If no view is found, it uses the target
|
1101
|
+
view.
|
1102
|
+
|
1103
|
+
Then, it triggers a touchStart event starting at whatever the found view was; this propagates up the view chain
|
1104
|
+
until a view responds YES. This view becomes the touch's owner.
|
1105
|
+
|
1106
|
+
You usually do not call captureTouch, and if you do call it, you'd call it on the touch itself:
|
1107
|
+
touch.captureTouch(startingPoint, shouldStack)
|
1108
|
+
|
1109
|
+
If shouldStack is YES, the previous responder will be kept so that it may be returned to later.
|
1110
|
+
*/
|
1111
|
+
captureTouch: function(touch, startingPoint, shouldStack) {
|
1112
|
+
if (!startingPoint) startingPoint = this;
|
1113
|
+
|
1114
|
+
var target = touch.targetView, view = target,
|
1115
|
+
chain = [], idx, len;
|
1116
|
+
|
1117
|
+
if (SC.LOG_TOUCH_EVENTS) {
|
1118
|
+
SC.Logger.info(' -- Received one touch on %@'.fmt(target.toString()));
|
1119
|
+
}
|
1120
|
+
// work up the chain until we get the root
|
1121
|
+
while (view && (view !== startingPoint)) {
|
1122
|
+
chain.unshift(view);
|
1123
|
+
view = view.get('nextResponder');
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
// work down the chain
|
1127
|
+
for (len = chain.length, idx = 0; idx < len; idx++) {
|
1128
|
+
view = chain[idx];
|
1129
|
+
if (SC.LOG_TOUCH_EVENTS) SC.Logger.info(' -- Checking %@ for captureTouch response…'.fmt(view.toString()));
|
1130
|
+
|
1131
|
+
// see if it captured the touch
|
1132
|
+
if (view.tryToPerform('captureTouch', touch)) {
|
1133
|
+
if (SC.LOG_TOUCH_EVENTS) SC.Logger.info(' -- Making %@ touch responder because it returns YES to captureTouch'.fmt(view.toString()));
|
1134
|
+
|
1135
|
+
// if so, make it the touch's responder
|
1136
|
+
this.makeTouchResponder(touch, view, shouldStack, YES); // triggers touchStart/Cancel/etc. event.
|
1137
|
+
return; // and that's all we need
|
1138
|
+
}
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
if (SC.LOG_TOUCH_EVENTS) SC.Logger.info(" -- Didn't find a view that returned YES to captureTouch, so we're calling touchStart");
|
1142
|
+
// if we did not capture the touch (obviously we didn't)
|
1143
|
+
// we need to figure out what view _will_
|
1144
|
+
// Thankfully, makeTouchResponder does exactly that: starts at the view it is supplied and keeps calling startTouch
|
1145
|
+
this.makeTouchResponder(touch, target, shouldStack, YES);
|
1146
|
+
},
|
1147
|
+
|
1148
|
+
/** @private
|
1149
|
+
Artificially calls endTouch for any touch which is no longer present. This is necessary because
|
1150
|
+
_sometimes_, WebKit ends up not sending endtouch.
|
1151
|
+
*/
|
1152
|
+
endMissingTouches: function(presentTouches) {
|
1153
|
+
var idx, len = presentTouches.length, map = {}, end = [];
|
1154
|
+
|
1155
|
+
// make a map of what touches _are_ present
|
1156
|
+
for (idx = 0; idx < len; idx++) {
|
1157
|
+
map[presentTouches[idx].identifier] = YES;
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
// check if any of the touches we have recorded are NOT present
|
1161
|
+
for (idx in this._touches) {
|
1162
|
+
var id = this._touches[idx].identifier;
|
1163
|
+
if (!map[id]) end.push(this._touches[idx]);
|
1164
|
+
}
|
1165
|
+
|
1166
|
+
// end said touches
|
1167
|
+
for (idx = 0, len = end.length; idx < len; idx++) {
|
1168
|
+
this.endTouch(end[idx]);
|
1169
|
+
this.finishTouch(end[idx]);
|
1170
|
+
}
|
1171
|
+
},
|
1172
|
+
|
1173
|
+
_touchCount: 0,
|
1174
|
+
/** @private
|
1175
|
+
Ends a specific touch (for a bit, at least). This does not "finish" a touch; it merely calls
|
1176
|
+
touchEnd, touchCancelled, etc. A re-dispatch (through recapture or makeTouchResponder) will terminate
|
1177
|
+
the process; it would have to be restarted separately, through touch.end().
|
1178
|
+
*/
|
1179
|
+
endTouch: function(touchEntry, action, evt) {
|
1180
|
+
if (!action) { action = "touchEnd"; }
|
1181
|
+
|
1182
|
+
var responderIdx, responders, responder, originalResponder;
|
1183
|
+
|
1184
|
+
// unassign
|
1185
|
+
this.unassignTouch(touchEntry);
|
1186
|
+
|
1187
|
+
// call end for all items in chain
|
1188
|
+
if (touchEntry.touchResponder) {
|
1189
|
+
originalResponder = touchEntry.touchResponder;
|
1190
|
+
|
1191
|
+
responders = touchEntry.touchResponders;
|
1192
|
+
responderIdx = responders.length - 1;
|
1193
|
+
responder = responders[responderIdx];
|
1194
|
+
while (responder) {
|
1195
|
+
if (responder[action]) { responder[action](touchEntry, evt); }
|
1196
|
+
|
1197
|
+
// check to see if the responder changed, and stop immediately if so.
|
1198
|
+
if (touchEntry.touchResponder !== originalResponder) { break; }
|
1199
|
+
|
1200
|
+
// next
|
1201
|
+
responderIdx--;
|
1202
|
+
responder = responders[responderIdx];
|
1203
|
+
action = "touchCancelled"; // any further ones receive cancelled
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
},
|
1207
|
+
|
1208
|
+
/**
|
1209
|
+
@private
|
1210
|
+
"Finishes" a touch. That is, it eradicates it from our touch entries and removes all responder, etc. properties.
|
1211
|
+
*/
|
1212
|
+
finishTouch: function(touch) {
|
1213
|
+
var elem;
|
1214
|
+
|
1215
|
+
// ensure the touch is indeed unassigned.
|
1216
|
+
this.unassignTouch(touch);
|
1217
|
+
|
1218
|
+
// If we rescued this touch's initial element, we should remove it
|
1219
|
+
// from the DOM and garbage collect now. See setup() for an
|
1220
|
+
// explanation of this bug/workaround.
|
1221
|
+
if (elem = touch._rescuedElement) {
|
1222
|
+
if (elem.swapNode && elem.swapNode.parentNode) {
|
1223
|
+
elem.swapNode.parentNode.replaceChild(elem, elem.swapNode);
|
1224
|
+
} else if (elem.parentNode === SC.touchHoldingPen) {
|
1225
|
+
SC.touchHoldingPen.removeChild(elem);
|
1226
|
+
}
|
1227
|
+
delete touch._rescuedElement;
|
1228
|
+
elem.swapNode = null;
|
1229
|
+
elem = null;
|
1230
|
+
}
|
1231
|
+
|
1232
|
+
|
1233
|
+
// clear responders (just to be thorough)
|
1234
|
+
touch.touchResponders = null;
|
1235
|
+
touch.touchResponder = null;
|
1236
|
+
touch.nextTouchResponder = null;
|
1237
|
+
touch.hasEnded = YES;
|
1238
|
+
|
1239
|
+
// and remove from our set
|
1240
|
+
if (this._touches[touch.identifier]) delete this._touches[touch.identifier];
|
1241
|
+
},
|
1242
|
+
|
1243
|
+
/** @private
|
1244
|
+
Called when the user touches their finger to the screen. This method
|
1245
|
+
dispatches the touchstart event to the appropriate view.
|
1246
|
+
|
1247
|
+
We may receive a touchstart event for each touch, or we may receive a
|
1248
|
+
single touchstart event with multiple touches, so we may have to dispatch
|
1249
|
+
events to multiple views.
|
1250
|
+
|
1251
|
+
@param {Event} evt the event
|
1252
|
+
@returns {Boolean}
|
1253
|
+
*/
|
1254
|
+
touchstart: function(evt) {
|
1255
|
+
var hidingTouchIntercept = NO;
|
1256
|
+
|
1257
|
+
SC.run(function() {
|
1258
|
+
// sometimes WebKit is a bit... iffy:
|
1259
|
+
this.endMissingTouches(evt.touches);
|
1260
|
+
|
1261
|
+
// as you were...
|
1262
|
+
// loop through changed touches, calling touchStart, etc.
|
1263
|
+
var idx, touches = evt.changedTouches, len = touches.length,
|
1264
|
+
target, view, touch, touchEntry;
|
1265
|
+
|
1266
|
+
// prepare event for touch mapping.
|
1267
|
+
evt.touchContext = this;
|
1268
|
+
|
1269
|
+
// Loop through each touch we received in this event
|
1270
|
+
for (idx = 0; idx < len; idx++) {
|
1271
|
+
touch = touches[idx];
|
1272
|
+
|
1273
|
+
// Create an SC.Touch instance for every touch.
|
1274
|
+
touchEntry = SC.Touch.create(touch, this);
|
1275
|
+
|
1276
|
+
// skip the touch if there was no target
|
1277
|
+
if (!touchEntry.targetView) continue;
|
1278
|
+
|
1279
|
+
// account for hidden touch intercept (passing through touches, etc.)
|
1280
|
+
if (touchEntry.hidesTouchIntercept) hidingTouchIntercept = YES;
|
1281
|
+
|
1282
|
+
// set timestamp
|
1283
|
+
touchEntry.timeStamp = evt.timeStamp;
|
1284
|
+
|
1285
|
+
// Store the SC.Touch object. We use the identifier property (provided
|
1286
|
+
// by the browser) to disambiguate between touches. These will be used
|
1287
|
+
// later to determine if the touches have changed.
|
1288
|
+
this._touches[touch.identifier] = touchEntry;
|
1289
|
+
|
1290
|
+
// set the event (so default action, etc. can be stopped)
|
1291
|
+
touchEntry.event = evt; // will be unset momentarily
|
1292
|
+
|
1293
|
+
// send out event thing: creates a chain, goes up it, then down it,
|
1294
|
+
// with startTouch and cancelTouch. in this case, only startTouch, as
|
1295
|
+
// there are no existing touch responders. We send the touchEntry
|
1296
|
+
// because it is cached (we add the helpers only once)
|
1297
|
+
this.captureTouch(touchEntry, this);
|
1298
|
+
|
1299
|
+
// Unset the reference to the original event so we can garbage collect.
|
1300
|
+
touchEntry.event = null;
|
1301
|
+
}
|
1302
|
+
}, this);
|
1303
|
+
|
1304
|
+
|
1305
|
+
// hack for text fields
|
1306
|
+
if (hidingTouchIntercept) {
|
1307
|
+
return YES;
|
1308
|
+
}
|
1309
|
+
|
1310
|
+
return evt.hasCustomEventHandling;
|
1311
|
+
},
|
1312
|
+
|
1313
|
+
/**
|
1314
|
+
@private
|
1315
|
+
used to keep track of when a specific type of touch event was last handled, to see if it needs to be re-handled
|
1316
|
+
*/
|
1317
|
+
touchmove: function(evt) {
|
1318
|
+
SC.run(function() {
|
1319
|
+
// pretty much all we gotta do is update touches, and figure out which views need updating.
|
1320
|
+
var touches = evt.changedTouches, touch, touchEntry,
|
1321
|
+
idx, len = touches.length, view, changedTouches, viewTouches, firstTouch,
|
1322
|
+
changedViews = {}, loc, guid, hidingTouchIntercept = NO;
|
1323
|
+
|
1324
|
+
if (this._drag) {
|
1325
|
+
touch = SC.Touch.create(evt.changedTouches[0], this);
|
1326
|
+
this._drag.tryToPerform('mouseDragged', touch);
|
1327
|
+
}
|
1328
|
+
|
1329
|
+
// figure out what views had touches changed, and update our internal touch objects
|
1330
|
+
for (idx = 0; idx < len; idx++) {
|
1331
|
+
touch = touches[idx];
|
1332
|
+
|
1333
|
+
// get our touch
|
1334
|
+
touchEntry = this._touches[touch.identifier];
|
1335
|
+
|
1336
|
+
// we may have no touch entry; this can happen if somehow the touch came to a non-SC area.
|
1337
|
+
if (!touchEntry) {
|
1338
|
+
continue;
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
if (touchEntry.hidesTouchIntercept) hidingTouchIntercept = YES;
|
1342
|
+
|
1343
|
+
// update touch
|
1344
|
+
touchEntry.pageX = touch.pageX;
|
1345
|
+
touchEntry.pageY = touch.pageY;
|
1346
|
+
touchEntry.clientX = touch.clientX;
|
1347
|
+
touchEntry.clientY = touch.clientY;
|
1348
|
+
touchEntry.screenX = touch.screenX;
|
1349
|
+
touchEntry.screenY = touch.screenY;
|
1350
|
+
touchEntry.timeStamp = evt.timeStamp;
|
1351
|
+
touchEntry.event = evt;
|
1352
|
+
|
1353
|
+
// if the touch entry has a view
|
1354
|
+
if (touchEntry.touchResponder) {
|
1355
|
+
view = touchEntry.touchResponder;
|
1356
|
+
|
1357
|
+
guid = SC.guidFor(view);
|
1358
|
+
// create a view entry
|
1359
|
+
if (!changedViews[guid]) changedViews[guid] = { "view": view, "touches": [] };
|
1360
|
+
|
1361
|
+
// add touch
|
1362
|
+
changedViews[guid].touches.push(touchEntry);
|
1363
|
+
}
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
// HACK: DISABLE OTHER TOUCH DRAGS WHILE MESSING WITH TEXT FIELDS
|
1367
|
+
if (hidingTouchIntercept) {
|
1368
|
+
evt.allowDefault();
|
1369
|
+
return YES;
|
1370
|
+
}
|
1371
|
+
|
1372
|
+
// loop through changed views and send events
|
1373
|
+
for (idx in changedViews) {
|
1374
|
+
// get info
|
1375
|
+
view = changedViews[idx].view;
|
1376
|
+
changedTouches = changedViews[idx].touches;
|
1377
|
+
|
1378
|
+
// prepare event; note that views often won't use this method anyway (they'll call touchesForView instead)
|
1379
|
+
evt.viewChangedTouches = changedTouches;
|
1380
|
+
|
1381
|
+
// the first VIEW touch should be the touch info sent
|
1382
|
+
viewTouches = this.touchesForView(view);
|
1383
|
+
firstTouch = viewTouches.firstObject();
|
1384
|
+
evt.pageX = firstTouch.pageX;
|
1385
|
+
evt.pageY = firstTouch.pageY;
|
1386
|
+
evt.clientX = firstTouch.clientX;
|
1387
|
+
evt.clientY = firstTouch.clientY;
|
1388
|
+
evt.screenX = firstTouch.screenX;
|
1389
|
+
evt.screenY = firstTouch.screenY;
|
1390
|
+
evt.touchContext = this; // so it can call touchesForView
|
1391
|
+
|
1392
|
+
// and go
|
1393
|
+
view.tryToPerform("touchesDragged", evt, viewTouches);
|
1394
|
+
}
|
1395
|
+
|
1396
|
+
// clear references to event
|
1397
|
+
touches = evt.changedTouches;
|
1398
|
+
len = touches.length;
|
1399
|
+
for (idx = 0; idx < len; idx++) {
|
1400
|
+
touch = touches[idx];
|
1401
|
+
touchEntry = this._touches[touch.identifier];
|
1402
|
+
if (touchEntry) touchEntry.event = null;
|
1403
|
+
}
|
1404
|
+
}, this);
|
1405
|
+
|
1406
|
+
return evt.hasCustomEventHandling;
|
1407
|
+
},
|
1408
|
+
|
1409
|
+
touchend: function(evt) {
|
1410
|
+
var hidesTouchIntercept = NO;
|
1411
|
+
|
1412
|
+
SC.run(function() {
|
1413
|
+
var touches = evt.changedTouches, touch, touchEntry,
|
1414
|
+
idx, len = touches.length,
|
1415
|
+
view, elem,
|
1416
|
+
action = evt.isCancel ? "touchCancelled" : "touchEnd", a,
|
1417
|
+
responderIdx, responders, responder;
|
1418
|
+
|
1419
|
+
for (idx = 0; idx < len; idx++) {
|
1420
|
+
//get touch+entry
|
1421
|
+
touch = touches[idx];
|
1422
|
+
touch.type = 'touchend';
|
1423
|
+
touchEntry = this._touches[touch.identifier];
|
1424
|
+
|
1425
|
+
// check if there is an entry
|
1426
|
+
if (!touchEntry) continue;
|
1427
|
+
|
1428
|
+
// continue work
|
1429
|
+
touchEntry.timeStamp = evt.timeStamp;
|
1430
|
+
touchEntry.pageX = touch.pageX;
|
1431
|
+
touchEntry.pageY = touch.pageY;
|
1432
|
+
touchEntry.clientX = touch.clientX;
|
1433
|
+
touchEntry.clientY = touch.clientY;
|
1434
|
+
touchEntry.screenX = touch.screenX;
|
1435
|
+
touchEntry.screenY = touch.screenY;
|
1436
|
+
touchEntry.type = 'touchend';
|
1437
|
+
touchEntry.event = evt;
|
1438
|
+
|
1439
|
+
if (SC.LOG_TOUCH_EVENTS) SC.Logger.info('-- Received touch end');
|
1440
|
+
if (touchEntry.hidesTouchIntercept) {
|
1441
|
+
touchEntry.unhideTouchIntercept();
|
1442
|
+
hidesTouchIntercept = YES;
|
1443
|
+
}
|
1444
|
+
|
1445
|
+
if (this._drag) {
|
1446
|
+
this._drag.tryToPerform('mouseUp', touch) ;
|
1447
|
+
this._drag = null ;
|
1448
|
+
}
|
1449
|
+
|
1450
|
+
// unassign
|
1451
|
+
this.endTouch(touchEntry, action, evt);
|
1452
|
+
this.finishTouch(touchEntry);
|
1453
|
+
}
|
1454
|
+
}, this);
|
1455
|
+
|
1456
|
+
|
1457
|
+
// for text fields
|
1458
|
+
if (hidesTouchIntercept) {
|
1459
|
+
return YES;
|
1460
|
+
}
|
1461
|
+
|
1462
|
+
return evt.hasCustomEventHandling;
|
1463
|
+
},
|
1464
|
+
|
1465
|
+
/** @private
|
1466
|
+
Handle touch cancel event. Works just like cancelling a touch for any other reason.
|
1467
|
+
touchend handles it as a special case (sending cancel instead of end if needed).
|
1468
|
+
*/
|
1469
|
+
touchcancel: function(evt) {
|
1470
|
+
evt.isCancel = YES;
|
1471
|
+
this.touchend(evt);
|
1472
|
+
},
|
1473
|
+
|
1474
|
+
// ..........................................................
|
1475
|
+
// KEYBOARD HANDLING
|
1476
|
+
//
|
1477
|
+
|
1478
|
+
|
1479
|
+
/**
|
1480
|
+
Invoked on a keyDown event that is not handled by any actual value. This
|
1481
|
+
will get the key equivalent string and then walk down the keyPane, then
|
1482
|
+
the focusedPane, then the mainPane, looking for someone to handle it.
|
1483
|
+
Note that this will walk DOWN the view hierarchy, not up it like most.
|
1484
|
+
|
1485
|
+
@returns {Object} Object that handled evet or null
|
1486
|
+
*/
|
1487
|
+
attemptKeyEquivalent: function(evt) {
|
1488
|
+
var ret = null ;
|
1489
|
+
|
1490
|
+
// keystring is a method name representing the keys pressed (i.e
|
1491
|
+
// 'alt_shift_escape')
|
1492
|
+
var keystring = evt.commandCodes()[0];
|
1493
|
+
|
1494
|
+
// couldn't build a keystring for this key event, nothing to do
|
1495
|
+
if (!keystring) return NO;
|
1496
|
+
|
1497
|
+
var menuPane = this.get('menuPane'),
|
1498
|
+
keyPane = this.get('keyPane'),
|
1499
|
+
mainPane = this.get('mainPane');
|
1500
|
+
|
1501
|
+
if (menuPane) {
|
1502
|
+
ret = menuPane.performKeyEquivalent(keystring, evt) ;
|
1503
|
+
if (ret) return ret;
|
1504
|
+
}
|
1505
|
+
|
1506
|
+
// Try the keyPane. If it's modal, then try the equivalent there but on
|
1507
|
+
// nobody else.
|
1508
|
+
if (keyPane) {
|
1509
|
+
ret = keyPane.performKeyEquivalent(keystring, evt) ;
|
1510
|
+
if (ret || keyPane.get('isModal')) return ret ;
|
1511
|
+
}
|
1512
|
+
|
1513
|
+
// if not, then try the main pane
|
1514
|
+
if (!ret && mainPane && (mainPane!==keyPane)) {
|
1515
|
+
ret = mainPane.performKeyEquivalent(keystring, evt);
|
1516
|
+
if (ret || mainPane.get('isModal')) return ret ;
|
1517
|
+
}
|
1518
|
+
|
1519
|
+
return ret ;
|
1520
|
+
},
|
1521
|
+
|
1522
|
+
_lastModifiers: null,
|
1523
|
+
|
1524
|
+
/** @private
|
1525
|
+
Modifier key changes are notified with a keydown event in most browsers.
|
1526
|
+
We turn this into a flagsChanged keyboard event. Normally this does not
|
1527
|
+
stop the normal browser behavior.
|
1528
|
+
*/
|
1529
|
+
_handleModifierChanges: function(evt) {
|
1530
|
+
// if the modifier keys have changed, then notify the first responder.
|
1531
|
+
var m;
|
1532
|
+
m = this._lastModifiers = (this._lastModifiers || { alt: false, ctrl: false, shift: false });
|
1533
|
+
|
1534
|
+
var changed = false;
|
1535
|
+
if (evt.altKey !== m.alt) { m.alt = evt.altKey; changed=true; }
|
1536
|
+
if (evt.ctrlKey !== m.ctrl) { m.ctrl = evt.ctrlKey; changed=true; }
|
1537
|
+
if (evt.shiftKey !== m.shift) { m.shift = evt.shiftKey; changed=true;}
|
1538
|
+
evt.modifiers = m; // save on event
|
1539
|
+
|
1540
|
+
return (changed) ? (this.sendEvent('flagsChanged', evt) ? evt.hasCustomEventHandling : YES) : YES ;
|
1541
|
+
},
|
1542
|
+
|
1543
|
+
/** @private
|
1544
|
+
Determines if the keyDown event is a nonprintable or function key. These
|
1545
|
+
kinds of events are processed as keyboard shortcuts. If no shortcut
|
1546
|
+
handles the event, then it will be sent as a regular keyDown event.
|
1547
|
+
*/
|
1548
|
+
_isFunctionOrNonPrintableKey: function(evt) {
|
1549
|
+
return !!(evt.altKey || evt.ctrlKey || evt.metaKey || ((evt.charCode !== evt.which) && SC.FUNCTION_KEYS[evt.which]));
|
1550
|
+
},
|
1551
|
+
|
1552
|
+
/** @private
|
1553
|
+
Determines if the event simply reflects a modifier key change. These
|
1554
|
+
events may generate a flagsChanged event, but are otherwise ignored.
|
1555
|
+
*/
|
1556
|
+
_isModifierKey: function(evt) {
|
1557
|
+
return !!SC.MODIFIER_KEYS[evt.charCode];
|
1558
|
+
},
|
1559
|
+
|
1560
|
+
/** @private
|
1561
|
+
The keydown event occurs whenever the physically depressed key changes.
|
1562
|
+
This event is used to deliver the flagsChanged event and to with function
|
1563
|
+
keys and keyboard shortcuts.
|
1564
|
+
|
1565
|
+
All actions that might cause an actual insertion of text are handled in
|
1566
|
+
the keypress event.
|
1567
|
+
*/
|
1568
|
+
keydown: function(evt) {
|
1569
|
+
if (SC.none(evt)) return YES;
|
1570
|
+
var keyCode = evt.keyCode;
|
1571
|
+
if(SC.browser.mozilla && evt.keyCode===9){
|
1572
|
+
this.keydownCounter=1;
|
1573
|
+
}
|
1574
|
+
// Fix for IME input (japanese, mandarin).
|
1575
|
+
// If the KeyCode is 229 wait for the keyup and
|
1576
|
+
// trigger a keyDown if it is is enter onKeyup.
|
1577
|
+
if (keyCode===229){
|
1578
|
+
this._IMEInputON = YES;
|
1579
|
+
return this.sendEvent('keyDown', evt);
|
1580
|
+
}
|
1581
|
+
|
1582
|
+
// If user presses the escape key while we are in the middle of a
|
1583
|
+
// drag operation, cancel the drag operation and handle the event.
|
1584
|
+
if (keyCode === 27 && this._drag) {
|
1585
|
+
this._drag.cancelDrag();
|
1586
|
+
this._drag = null;
|
1587
|
+
this._mouseDownView = null;
|
1588
|
+
return YES;
|
1589
|
+
}
|
1590
|
+
|
1591
|
+
// Firefox does NOT handle delete here...
|
1592
|
+
if (SC.browser.mozilla && (evt.which === 8)) return true ;
|
1593
|
+
|
1594
|
+
// modifier keys are handled separately by the 'flagsChanged' event
|
1595
|
+
// send event for modifier key changes, but only stop processing if this
|
1596
|
+
// is only a modifier change
|
1597
|
+
var ret = this._handleModifierChanges(evt),
|
1598
|
+
target = evt.target || evt.srcElement,
|
1599
|
+
forceBlock = (evt.which === 8) && !SC.allowsBackspaceToPreviousPage && (target === document.body);
|
1600
|
+
|
1601
|
+
if (this._isModifierKey(evt)) return (forceBlock ? NO : ret);
|
1602
|
+
|
1603
|
+
// if this is a function or non-printable key, try to use this as a key
|
1604
|
+
// equivalent. Otherwise, send as a keyDown event so that the focused
|
1605
|
+
// responder can do something useful with the event.
|
1606
|
+
ret = YES ;
|
1607
|
+
if (this._isFunctionOrNonPrintableKey(evt)) {
|
1608
|
+
// otherwise, send as keyDown event. If no one was interested in this
|
1609
|
+
// keyDown event (probably the case), just let the browser do its own
|
1610
|
+
// processing.
|
1611
|
+
|
1612
|
+
// Arrow keys are handled in keypress for firefox
|
1613
|
+
if (keyCode>=37 && keyCode<=40 && SC.browser.mozilla) return YES;
|
1614
|
+
|
1615
|
+
|
1616
|
+
ret = this.sendEvent('keyDown', evt) ;
|
1617
|
+
|
1618
|
+
// attempt key equivalent if key not handled
|
1619
|
+
if (!ret) {
|
1620
|
+
ret = !this.attemptKeyEquivalent(evt) ;
|
1621
|
+
} else {
|
1622
|
+
ret = evt.hasCustomEventHandling ;
|
1623
|
+
if (ret) forceBlock = NO ; // code asked explicitly to let delete go
|
1624
|
+
}
|
1625
|
+
}
|
1626
|
+
|
1627
|
+
return forceBlock ? NO : ret ;
|
1628
|
+
},
|
1629
|
+
|
1630
|
+
/** @private
|
1631
|
+
The keypress event occurs after the user has typed something useful that
|
1632
|
+
the browser would like to insert. Unlike keydown, the input codes here
|
1633
|
+
have been processed to reflect that actual text you might want to insert.
|
1634
|
+
|
1635
|
+
Normally ignore any function or non-printable key events. Otherwise, just
|
1636
|
+
trigger a keyDown.
|
1637
|
+
*/
|
1638
|
+
keypress: function(evt) {
|
1639
|
+
var ret,
|
1640
|
+
keyCode = evt.keyCode,
|
1641
|
+
isFirefox = !!SC.browser.mozilla;
|
1642
|
+
|
1643
|
+
if(SC.browser.mozilla && evt.keyCode===9){
|
1644
|
+
this.keydownCounter++;
|
1645
|
+
if(this.keydownCounter==2) return YES;
|
1646
|
+
}
|
1647
|
+
// delete is handled in keydown() for most browsers
|
1648
|
+
if (isFirefox && (evt.which === 8)) {
|
1649
|
+
//get the keycode and set it for which.
|
1650
|
+
evt.which = keyCode;
|
1651
|
+
ret = this.sendEvent('keyDown', evt);
|
1652
|
+
return ret ? (SC.allowsBackspaceToPreviousPage || evt.hasCustomEventHandling) : YES ;
|
1653
|
+
|
1654
|
+
// normal processing. send keyDown for printable keys...
|
1655
|
+
//there is a special case for arrow key repeating of events in FF.
|
1656
|
+
} else {
|
1657
|
+
var isFirefoxArrowKeys = (keyCode >= 37 && keyCode <= 40 && isFirefox),
|
1658
|
+
charCode = evt.charCode;
|
1659
|
+
if ((charCode !== undefined && charCode === 0 && evt.keyCode!==9) && !isFirefoxArrowKeys) return YES;
|
1660
|
+
if (isFirefoxArrowKeys) evt.which = keyCode;
|
1661
|
+
return this.sendEvent('keyDown', evt) ? evt.hasCustomEventHandling:YES;
|
1662
|
+
}
|
1663
|
+
},
|
1664
|
+
|
1665
|
+
keyup: function(evt) {
|
1666
|
+
// to end the simulation of keypress in firefox set the _ffevt to null
|
1667
|
+
if(this._ffevt) this._ffevt=null;
|
1668
|
+
// modifier keys are handled separately by the 'flagsChanged' event
|
1669
|
+
// send event for modifier key changes, but only stop processing if this is only a modifier change
|
1670
|
+
var ret = this._handleModifierChanges(evt);
|
1671
|
+
if (this._isModifierKey(evt)) return ret;
|
1672
|
+
// Fix for IME input (japanese, mandarin).
|
1673
|
+
// If the KeyCode is 229 wait for the keyup and
|
1674
|
+
// trigger a keyDown if it is is enter onKeyup.
|
1675
|
+
if (this._IMEInputON && evt.keyCode===13){
|
1676
|
+
evt.isIMEInput = YES;
|
1677
|
+
this.sendEvent('keyDown', evt);
|
1678
|
+
this._IMEInputON = NO;
|
1679
|
+
}
|
1680
|
+
return this.sendEvent('keyUp', evt) ? evt.hasCustomEventHandling:YES;
|
1681
|
+
},
|
1682
|
+
|
1683
|
+
/**
|
1684
|
+
IE's default behavior to blur textfields and other controls can only be
|
1685
|
+
blocked by returning NO to this event. However we don't want to block
|
1686
|
+
its default behavior otherwise textfields won't loose focus by clicking on
|
1687
|
+
an empty area as it's expected. If you want to block IE from bluring another
|
1688
|
+
control set blockIEDeactivate to true on the especific view in which you
|
1689
|
+
want to avoid this. Think of an autocomplete menu, you want to click on
|
1690
|
+
the menu but don't loose focus.
|
1691
|
+
*/
|
1692
|
+
beforedeactivate: function(evt) {
|
1693
|
+
var toElement = evt.toElement;
|
1694
|
+
if (toElement && toElement.tagName && toElement.tagName!=="IFRAME") {
|
1695
|
+
var view = SC.$(toElement).view()[0];
|
1696
|
+
//The following line is neccesary to allow/block text selection for IE,
|
1697
|
+
// in combination with the selectstart event.
|
1698
|
+
if (view && view.get('blocksIEDeactivate')) return NO;
|
1699
|
+
}
|
1700
|
+
return YES;
|
1701
|
+
},
|
1702
|
+
|
1703
|
+
// ..........................................................
|
1704
|
+
// MOUSE HANDLING
|
1705
|
+
//
|
1706
|
+
|
1707
|
+
mousedown: function(evt) {
|
1708
|
+
if (SC.platform.touch) {
|
1709
|
+
evt.allowDefault();
|
1710
|
+
return YES;
|
1711
|
+
}
|
1712
|
+
|
1713
|
+
if(!SC.browser.msie) window.focus();
|
1714
|
+
|
1715
|
+
// First, save the click count. The click count resets if the mouse down
|
1716
|
+
// event occurs more than 250 ms later than the mouse up event or more
|
1717
|
+
// than 8 pixels away from the mouse down event.
|
1718
|
+
this._clickCount += 1 ;
|
1719
|
+
if (!this._lastMouseUpAt || ((Date.now()-this._lastMouseUpAt) > 250)) {
|
1720
|
+
this._clickCount = 1 ;
|
1721
|
+
} else {
|
1722
|
+
var deltaX = this._lastMouseDownX - evt.clientX,
|
1723
|
+
deltaY = this._lastMouseDownY - evt.clientY,
|
1724
|
+
distance = Math.sqrt(deltaX*deltaX + deltaY*deltaY) ;
|
1725
|
+
if (distance > 8.0) this._clickCount = 1 ;
|
1726
|
+
}
|
1727
|
+
evt.clickCount = this._clickCount ;
|
1728
|
+
|
1729
|
+
this._lastMouseDownX = evt.clientX ;
|
1730
|
+
this._lastMouseDownY = evt.clientY ;
|
1731
|
+
|
1732
|
+
var fr, view = this.targetViewForEvent(evt) ;
|
1733
|
+
|
1734
|
+
// InlineTextField needs to loose firstResponder whenever you click outside
|
1735
|
+
// the view. This is a special case as textfields are not supposed to loose
|
1736
|
+
// focus unless you click on a list, another textfield or an special
|
1737
|
+
// view/control.
|
1738
|
+
|
1739
|
+
if(view) fr=view.getPath('pane.firstResponder');
|
1740
|
+
|
1741
|
+
if(fr && fr.kindOf(SC.InlineTextFieldView) && fr!==view){
|
1742
|
+
fr.resignFirstResponder();
|
1743
|
+
}
|
1744
|
+
|
1745
|
+
view = this._mouseDownView = this.sendEvent('mouseDown', evt, view) ;
|
1746
|
+
if (view && view.respondsTo('mouseDragged')) this._mouseCanDrag = YES ;
|
1747
|
+
|
1748
|
+
// Determine if any views took responsibility for the
|
1749
|
+
// event. If so, save that information so we can prevent
|
1750
|
+
// the next click event we receive from propagating to the browser.
|
1751
|
+
var ret = view ? evt.hasCustomEventHandling : YES;
|
1752
|
+
this._lastMouseDownCustomHandling = ret;
|
1753
|
+
|
1754
|
+
return ret;
|
1755
|
+
},
|
1756
|
+
|
1757
|
+
/**
|
1758
|
+
mouseUp only gets delivered to the view that handled the mouseDown evt.
|
1759
|
+
we also handle click and double click notifications through here to
|
1760
|
+
ensure consistant delivery. Note that if mouseDownView is not
|
1761
|
+
implemented, then no mouseUp event will be sent, but a click will be
|
1762
|
+
sent.
|
1763
|
+
*/
|
1764
|
+
mouseup: function(evt) {
|
1765
|
+
if (SC.platform.touch) {
|
1766
|
+
evt.allowDefault();
|
1767
|
+
return YES;
|
1768
|
+
}
|
1769
|
+
|
1770
|
+
if (this._drag) {
|
1771
|
+
this._drag.tryToPerform('mouseUp', evt) ;
|
1772
|
+
this._drag = null ;
|
1773
|
+
}
|
1774
|
+
|
1775
|
+
var handler = null, view = this._mouseDownView,
|
1776
|
+
targetView = this.targetViewForEvent(evt);
|
1777
|
+
|
1778
|
+
// record click count.
|
1779
|
+
evt.clickCount = this._clickCount ;
|
1780
|
+
|
1781
|
+
// attempt the mouseup call only if there's a target.
|
1782
|
+
// don't want a mouseup going to anyone unless they handled the mousedown...
|
1783
|
+
if (view) {
|
1784
|
+
handler = this.sendEvent('mouseUp', evt, view) ;
|
1785
|
+
|
1786
|
+
// try doubleClick
|
1787
|
+
if (!handler && (this._clickCount === 2)) {
|
1788
|
+
handler = this.sendEvent('doubleClick', evt, view) ;
|
1789
|
+
}
|
1790
|
+
|
1791
|
+
// try single click
|
1792
|
+
if (!handler) {
|
1793
|
+
handler = this.sendEvent('click', evt, view) ;
|
1794
|
+
}
|
1795
|
+
}
|
1796
|
+
|
1797
|
+
// try whoever's under the mouse if we haven't handle the mouse up yet
|
1798
|
+
if (!handler) {
|
1799
|
+
|
1800
|
+
// try doubleClick
|
1801
|
+
if (this._clickCount === 2) {
|
1802
|
+
handler = this.sendEvent('doubleClick', evt, targetView);
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
// try singleClick
|
1806
|
+
if (!handler) {
|
1807
|
+
handler = this.sendEvent('click', evt, targetView) ;
|
1808
|
+
}
|
1809
|
+
}
|
1810
|
+
|
1811
|
+
// cleanup
|
1812
|
+
this._mouseCanDrag = NO; this._mouseDownView = null ;
|
1813
|
+
|
1814
|
+
// Save timestamp of mouseup at last possible moment.
|
1815
|
+
// (This is used to calculate double click events)
|
1816
|
+
this._lastMouseUpAt = Date.now() ;
|
1817
|
+
|
1818
|
+
// Determine if any views took responsibility for the
|
1819
|
+
// event. If so, save that information so we can prevent
|
1820
|
+
// the next click event we receive from propagating to the browser.
|
1821
|
+
var ret = handler ? evt.hasCustomEventHandling : YES;
|
1822
|
+
this._lastMouseUpCustomHandling = ret;
|
1823
|
+
|
1824
|
+
return ret;
|
1825
|
+
},
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
Certain browsers ignore us overriding mouseup and mousedown events and
|
1829
|
+
still allow default behavior (such as navigating away when the user clicks
|
1830
|
+
on a link). To block default behavior, we store whether or not the last
|
1831
|
+
mouseup or mousedown events resulted in us calling preventDefault() or
|
1832
|
+
stopPropagation(), in which case we make the same calls on the click event.
|
1833
|
+
|
1834
|
+
@param {Event} evt the click event
|
1835
|
+
@returns {Boolean} whether the event should be propagated to the browser
|
1836
|
+
*/
|
1837
|
+
click: function(evt) {
|
1838
|
+
if (!this._lastMouseUpCustomHandling || !this._lastMouseDownCustomHandling) {
|
1839
|
+
evt.preventDefault();
|
1840
|
+
evt.stopPropagation();
|
1841
|
+
return NO;
|
1842
|
+
}
|
1843
|
+
|
1844
|
+
return YES;
|
1845
|
+
},
|
1846
|
+
|
1847
|
+
dblclick: function(evt){
|
1848
|
+
if (SC.browser.isIE) {
|
1849
|
+
this._clickCount = 2;
|
1850
|
+
// this._onmouseup(evt);
|
1851
|
+
this.mouseup(evt);
|
1852
|
+
}
|
1853
|
+
},
|
1854
|
+
|
1855
|
+
mousewheel: function(evt) {
|
1856
|
+
var view = this.targetViewForEvent(evt) ,
|
1857
|
+
handler = this.sendEvent('mouseWheel', evt, view) ;
|
1858
|
+
|
1859
|
+
return (handler) ? evt.hasCustomEventHandling : YES ;
|
1860
|
+
},
|
1861
|
+
|
1862
|
+
_lastHovered: null,
|
1863
|
+
|
1864
|
+
/**
|
1865
|
+
This will send mouseEntered, mouseExited, mousedDragged and mouseMoved
|
1866
|
+
to the views you hover over. To receive these events, you must implement
|
1867
|
+
the method. If any subviews implement them and return true, then you won't
|
1868
|
+
receive any notices.
|
1869
|
+
|
1870
|
+
If there is a target mouseDown view, then mouse moved events will also
|
1871
|
+
trigger calls to mouseDragged.
|
1872
|
+
*/
|
1873
|
+
mousemove: function(evt) {
|
1874
|
+
if (SC.platform.touch) {
|
1875
|
+
evt.allowDefault();
|
1876
|
+
return YES;
|
1877
|
+
}
|
1878
|
+
|
1879
|
+
if (SC.browser.msie) {
|
1880
|
+
if (this._lastMoveX === evt.clientX && this._lastMoveY === evt.clientY) return;
|
1881
|
+
}
|
1882
|
+
|
1883
|
+
// We'll record the last positions in all browsers, in case a special pane
|
1884
|
+
// or some such UI absolutely needs this information.
|
1885
|
+
this._lastMoveX = evt.clientX;
|
1886
|
+
this._lastMoveY = evt.clientY;
|
1887
|
+
|
1888
|
+
SC.run(function() {
|
1889
|
+
// make sure the view gets focus no matter what. FF is inconsistant
|
1890
|
+
// about this.
|
1891
|
+
// this.focus();
|
1892
|
+
// only do mouse[Moved|Entered|Exited|Dragged] if not in a drag session
|
1893
|
+
// drags send their own events, e.g. drag[Moved|Entered|Exited]
|
1894
|
+
if (this._drag) {
|
1895
|
+
//IE triggers mousemove at the same time as mousedown
|
1896
|
+
if(SC.browser.msie){
|
1897
|
+
if (this._lastMouseDownX !== evt.clientX || this._lastMouseDownY !== evt.clientY) {
|
1898
|
+
this._drag.tryToPerform('mouseDragged', evt);
|
1899
|
+
}
|
1900
|
+
}
|
1901
|
+
else {
|
1902
|
+
this._drag.tryToPerform('mouseDragged', evt);
|
1903
|
+
}
|
1904
|
+
} else {
|
1905
|
+
var lh = this._lastHovered || [] , nh = [] , exited, loc, len,
|
1906
|
+
view = this.targetViewForEvent(evt) ;
|
1907
|
+
|
1908
|
+
// first collect all the responding view starting with the
|
1909
|
+
// target view from the given mouse move event
|
1910
|
+
while (view && (view !== this)) {
|
1911
|
+
nh.push(view);
|
1912
|
+
view = view.get('nextResponder');
|
1913
|
+
}
|
1914
|
+
|
1915
|
+
// next exit views that are no longer part of the
|
1916
|
+
// responding chain
|
1917
|
+
for (loc=0, len=lh.length; loc < len; loc++) {
|
1918
|
+
view = lh[loc] ;
|
1919
|
+
exited = view.respondsTo('mouseExited');
|
1920
|
+
if (exited && nh.indexOf(view) === -1) {
|
1921
|
+
view.tryToPerform('mouseExited', evt);
|
1922
|
+
}
|
1923
|
+
}
|
1924
|
+
|
1925
|
+
// finally, either perform mouse moved or mouse entered depending on
|
1926
|
+
// whether a responding view was or was not part of the last
|
1927
|
+
// hovered views
|
1928
|
+
for (loc=0, len=nh.length; loc < len; loc++) {
|
1929
|
+
view = nh[loc];
|
1930
|
+
if (lh.indexOf(view) !== -1) {
|
1931
|
+
view.tryToPerform('mouseMoved', evt);
|
1932
|
+
} else {
|
1933
|
+
view.tryToPerform('mouseEntered', evt);
|
1934
|
+
}
|
1935
|
+
}
|
1936
|
+
|
1937
|
+
// Keep track of the view that were last hovered
|
1938
|
+
this._lastHovered = nh;
|
1939
|
+
|
1940
|
+
// also, if a mouseDownView exists, call the mouseDragged action, if
|
1941
|
+
// it exists.
|
1942
|
+
if (this._mouseDownView) {
|
1943
|
+
if(SC.browser.msie){
|
1944
|
+
if (this._lastMouseDownX !== evt.clientX && this._lastMouseDownY !== evt.clientY) {
|
1945
|
+
this._mouseDownView.tryToPerform('mouseDragged', evt);
|
1946
|
+
}
|
1947
|
+
}
|
1948
|
+
else {
|
1949
|
+
this._mouseDownView.tryToPerform('mouseDragged', evt);
|
1950
|
+
}
|
1951
|
+
}
|
1952
|
+
}
|
1953
|
+
}, this);
|
1954
|
+
},
|
1955
|
+
|
1956
|
+
// these methods are used to prevent unnecessary text-selection in IE,
|
1957
|
+
// there could be some more work to improve this behavior and make it
|
1958
|
+
// a bit more useful; right now it's just to prevent bugs when dragging
|
1959
|
+
// and dropping.
|
1960
|
+
|
1961
|
+
_mouseCanDrag: YES,
|
1962
|
+
|
1963
|
+
selectstart: function(evt) {
|
1964
|
+
var targetView = this.targetViewForEvent(evt),
|
1965
|
+
result = this.sendEvent('selectStart', evt, targetView);
|
1966
|
+
|
1967
|
+
// If the target view implements mouseDragged, then we want to ignore the
|
1968
|
+
// 'selectstart' event.
|
1969
|
+
if (targetView && targetView.respondsTo('mouseDragged')) {
|
1970
|
+
return (result !==null ? YES: NO) && !this._mouseCanDrag;
|
1971
|
+
}
|
1972
|
+
else {
|
1973
|
+
return (result !==null ? YES: NO);
|
1974
|
+
}
|
1975
|
+
},
|
1976
|
+
|
1977
|
+
drag: function() { return false; },
|
1978
|
+
|
1979
|
+
contextmenu: function(evt) {
|
1980
|
+
var view = this.targetViewForEvent(evt) ;
|
1981
|
+
return this.sendEvent('contextMenu', evt, view);
|
1982
|
+
},
|
1983
|
+
|
1984
|
+
// ..........................................................
|
1985
|
+
// ANIMATION HANDLING
|
1986
|
+
//
|
1987
|
+
webkitAnimationStart: function(evt) {
|
1988
|
+
try {
|
1989
|
+
var view = this.targetViewForEvent(evt) ;
|
1990
|
+
this.sendEvent('animationDidStart', evt, view) ;
|
1991
|
+
} catch (e) {
|
1992
|
+
SC.Logger.warn('Exception during animationDidStart: %@'.fmt(e)) ;
|
1993
|
+
throw e;
|
1994
|
+
}
|
1995
|
+
|
1996
|
+
return view ? evt.hasCustomEventHandling : YES;
|
1997
|
+
},
|
1998
|
+
|
1999
|
+
webkitAnimationIteration: function(evt) {
|
2000
|
+
try {
|
2001
|
+
var view = this.targetViewForEvent(evt) ;
|
2002
|
+
this.sendEvent('animationDidIterate', evt, view) ;
|
2003
|
+
} catch (e) {
|
2004
|
+
SC.Logger.warn('Exception during animationDidIterate: %@'.fmt(e)) ;
|
2005
|
+
throw e;
|
2006
|
+
}
|
2007
|
+
|
2008
|
+
return view ? evt.hasCustomEventHandling : YES;
|
2009
|
+
},
|
2010
|
+
|
2011
|
+
webkitAnimationEnd: function(evt) {
|
2012
|
+
try {
|
2013
|
+
var view = this.targetViewForEvent(evt) ;
|
2014
|
+
this.sendEvent('animationDidEnd', evt, view) ;
|
2015
|
+
} catch (e) {
|
2016
|
+
SC.Logger.warn('Exception during animationDidEnd: %@'.fmt(e)) ;
|
2017
|
+
throw e;
|
2018
|
+
}
|
2019
|
+
|
2020
|
+
return view ? evt.hasCustomEventHandling : YES;
|
2021
|
+
},
|
2022
|
+
|
2023
|
+
transitionEnd: function(evt){
|
2024
|
+
try {
|
2025
|
+
var view = this.targetViewForEvent(evt) ;
|
2026
|
+
this.sendEvent('transitionDidEnd', evt, view) ;
|
2027
|
+
} catch (e) {
|
2028
|
+
SC.Logger.warn('Exception during transitionDidEnd: %@'.fmt(e)) ;
|
2029
|
+
throw e;
|
2030
|
+
}
|
2031
|
+
|
2032
|
+
return view ? evt.hasCustomEventHandling : YES;
|
2033
|
+
}
|
2034
|
+
|
2035
|
+
});
|
2036
|
+
|
2037
|
+
/**
|
2038
|
+
@class SC.Touch
|
2039
|
+
Represents a touch.
|
2040
|
+
|
2041
|
+
Views receive touchStart and touchEnd.
|
2042
|
+
*/
|
2043
|
+
SC.Touch = function(touch, touchContext) {
|
2044
|
+
// get the raw target view (we'll refine later)
|
2045
|
+
this.touchContext = touchContext;
|
2046
|
+
this.identifier = touch.identifier; // for now, our internal id is WebKit's id.
|
2047
|
+
|
2048
|
+
var target = touch.target, targetView;
|
2049
|
+
if (target && SC.$(target).hasClass("touch-intercept")) {
|
2050
|
+
touch.target.style.webkitTransform = "translate3d(0px,-5000px,0px)";
|
2051
|
+
target = document.elementFromPoint(touch.pageX, touch.pageY);
|
2052
|
+
if (target) targetView = SC.$(target).view()[0];
|
2053
|
+
|
2054
|
+
this.hidesTouchIntercept = NO;
|
2055
|
+
if (target.tagName === "INPUT") {
|
2056
|
+
this.hidesTouchIntercept = touch.target;
|
2057
|
+
} else {
|
2058
|
+
touch.target.style.webkitTransform = "translate3d(0px,0px,0px)";
|
2059
|
+
}
|
2060
|
+
} else {
|
2061
|
+
targetView = touch.target ? SC.$(touch.target).view()[0] : null;
|
2062
|
+
}
|
2063
|
+
this.targetView = targetView;
|
2064
|
+
this.target = target;
|
2065
|
+
this.hasEnded = NO;
|
2066
|
+
this.type = touch.type;
|
2067
|
+
this.clickCount = 1;
|
2068
|
+
|
2069
|
+
this.view = undefined;
|
2070
|
+
this.touchResponder = this.nextTouchResponder = undefined;
|
2071
|
+
this.touchResponders = [];
|
2072
|
+
|
2073
|
+
this.startX = this.pageX = touch.pageX;
|
2074
|
+
this.startY = this.pageY = touch.pageY;
|
2075
|
+
this.clientX = touch.clientX;
|
2076
|
+
this.clientY = touch.clientY;
|
2077
|
+
this.screenX = touch.screenX;
|
2078
|
+
this.screenY = touch.screenY;
|
2079
|
+
};
|
2080
|
+
|
2081
|
+
SC.Touch.prototype = {
|
2082
|
+
/**@scope SC.Touch.prototype*/
|
2083
|
+
|
2084
|
+
unhideTouchIntercept: function() {
|
2085
|
+
var intercept = this.hidesTouchIntercept;
|
2086
|
+
if (intercept) {
|
2087
|
+
setTimeout(function() { intercept.style.webkitTransform = "translate3d(0px,0px,0px)"; }, 500);
|
2088
|
+
}
|
2089
|
+
},
|
2090
|
+
|
2091
|
+
/**
|
2092
|
+
Indicates that you want to allow the normal default behavior. Sets
|
2093
|
+
the hasCustomEventHandling property to YES but does not cancel the event.
|
2094
|
+
*/
|
2095
|
+
allowDefault: function() {
|
2096
|
+
if (this.event) this.event.hasCustomEventHandling = YES ;
|
2097
|
+
},
|
2098
|
+
|
2099
|
+
/**
|
2100
|
+
If the touch is associated with an event, prevents default action on the event.
|
2101
|
+
*/
|
2102
|
+
preventDefault: function() {
|
2103
|
+
if (this.event) this.event.preventDefault();
|
2104
|
+
},
|
2105
|
+
|
2106
|
+
stopPropagation: function() {
|
2107
|
+
if (this.event) this.event.stopPropagation();
|
2108
|
+
},
|
2109
|
+
|
2110
|
+
stop: function() {
|
2111
|
+
if (this.event) this.event.stop();
|
2112
|
+
},
|
2113
|
+
|
2114
|
+
/**
|
2115
|
+
Removes from and calls touchEnd on the touch responder.
|
2116
|
+
*/
|
2117
|
+
end: function() {
|
2118
|
+
this.touchContext.endTouch(this);
|
2119
|
+
},
|
2120
|
+
|
2121
|
+
/**
|
2122
|
+
Changes the touch responder for the touch. If shouldStack === YES,
|
2123
|
+
the current responder will be saved so that the next responder may
|
2124
|
+
return to it.
|
2125
|
+
*/
|
2126
|
+
makeTouchResponder: function(responder, shouldStack, upViewChain) {
|
2127
|
+
this.touchContext.makeTouchResponder(this, responder, shouldStack, upViewChain);
|
2128
|
+
},
|
2129
|
+
|
2130
|
+
|
2131
|
+
/**
|
2132
|
+
Captures, or recaptures, the touch. This works from the touch's raw target view
|
2133
|
+
up to the startingPoint, and finds either a view that returns YES to captureTouch() or
|
2134
|
+
touchStart().
|
2135
|
+
*/
|
2136
|
+
captureTouch: function(startingPoint, shouldStack) {
|
2137
|
+
this.touchContext.captureTouch(this, startingPoint, shouldStack);
|
2138
|
+
},
|
2139
|
+
|
2140
|
+
/**
|
2141
|
+
Returns all touches for a specified view. Put as a convenience on the touch itself; this method
|
2142
|
+
is also available on the event.
|
2143
|
+
*/
|
2144
|
+
touchesForView: function(view) {
|
2145
|
+
return this.touchContext.touchesForView(view);
|
2146
|
+
},
|
2147
|
+
|
2148
|
+
/**
|
2149
|
+
Same as touchesForView, but sounds better for responders.
|
2150
|
+
*/
|
2151
|
+
touchesForResponder: function(responder) {
|
2152
|
+
return this.touchContext.touchesForView(responder);
|
2153
|
+
},
|
2154
|
+
|
2155
|
+
/**
|
2156
|
+
Returns average data--x, y, and d (distance)--for the touches owned by the supplied view.
|
2157
|
+
|
2158
|
+
addSelf adds this touch to the set being considered. This is useful from touchStart. If
|
2159
|
+
you use it from anywhere else, it will make this touch be used twice--so use caution.
|
2160
|
+
*/
|
2161
|
+
averagedTouchesForView: function(view, addSelf) {
|
2162
|
+
return this.touchContext.averagedTouchesForView(view, (addSelf ? this : null));
|
2163
|
+
}
|
2164
|
+
};
|
2165
|
+
|
2166
|
+
SC.mixin(SC.Touch, {
|
2167
|
+
create: function(touch, touchContext) {
|
2168
|
+
return new SC.Touch(touch, touchContext);
|
2169
|
+
}
|
2170
|
+
});
|
2171
|
+
|
2172
|
+
/*
|
2173
|
+
Invoked when the document is ready, but before main is called. Creates
|
2174
|
+
an instance and sets up event listeners as needed.
|
2175
|
+
*/
|
2176
|
+
SC.ready(SC.RootResponder, SC.RootResponder.ready = function() {
|
2177
|
+
var r;
|
2178
|
+
r = SC.RootResponder.responder = SC.RootResponder.create() ;
|
2179
|
+
r.setup() ;
|
2180
|
+
});
|