sproutcore 1.5.0-java → 1.6.0.beta.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.mailmap +32 -0
- data/CHANGELOG +15 -0
- data/Rakefile +18 -0
- data/VERSION.yml +2 -2
- data/bin/sc-build +0 -5
- data/bin/sc-build-number +0 -5
- data/bin/sc-docs +0 -5
- data/bin/sc-gen +0 -5
- data/bin/sc-init +0 -5
- data/bin/sc-manifest +0 -5
- data/bin/sc-server +0 -5
- data/bin/sproutcore +0 -5
- data/lib/frameworks/sproutcore/Buildfile +3 -3
- data/lib/frameworks/sproutcore/CHANGELOG.md +21 -0
- data/lib/frameworks/sproutcore/README.md +77 -7
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +0 -2
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +1 -17
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controls/button.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +23 -21
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +36 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +126 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +13 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +16 -16
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1 -34
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +29 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +20 -23
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controls/button.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +115 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +49 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +19 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +7 -82
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +12 -5
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
- 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/flush.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +33 -30
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +12 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +20 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +10 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +24 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +51 -54
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +29 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +31 -31
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +35 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +61 -50
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +12 -12
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +7 -9
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +13 -13
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +37 -37
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +7 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +49 -42
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +6 -6
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/default_styles.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/strings.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/edit_mode.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/emptiness.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form_row.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_checkbox_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_label.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_radio_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_row.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_text_field.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form.js +13 -14
- data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form_row.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +4 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +2 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +8 -12
- data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +28 -34
- data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/system/routes.js +31 -47
- data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/tests/system/routes.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +15 -21
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +66 -133
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +68 -139
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +23 -29
- data/lib/frameworks/sproutcore/lib/index.rhtml +5 -2
- data/lib/sproutcore.rb +2 -9
- data/lib/sproutcore/builders/minify.rb +5 -5
- data/lib/sproutcore/helpers/minifier.rb +6 -10
- data/lib/sproutcore/models/target.rb +2 -2
- data/lib/sproutcore/rack/proxy.rb +8 -7
- data/lib/sproutcore/tools.rb +16 -5
- data/spec/lib/builders/html_spec.rb +5 -5
- data/sproutcore.gemspec +11 -5
- data/vendor/chance/lib/chance.rb +4 -2
- data/{lib/sproutcore/vendor → vendor}/jsdoc/README.txt +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Chain.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Dumper.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Hash.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Link.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Namespace.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Opt.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Reflection.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/String.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Testrun.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/main.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/functionCall.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/run.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/TestDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/runner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/addon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/anon_inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/config.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/constructs.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding_other.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/global.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/globals.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/ignore.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/lend.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/name.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/namespace_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/nocode.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/oblit_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/overview.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/param_inline.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/params_optional.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/public.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shortcuts.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/static_this.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/synonyms.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/tosource.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/variable_redefine.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/changes.txt +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/conf/sample.conf +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build.xml +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build_1.4.xml +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/classes/js.jar +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsRun.java +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/jsdebug.jar +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/jsrun.jar +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/t/TestDoc.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/t/runner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/addon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/anon_inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/config.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/constructs.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding_other.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/global.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/globals.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/ignore.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/inner.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/jsdoc_test.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/lend.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/name.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/namespace_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/nocode.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/oblit_anon.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/overview.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/param_inline.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/params_optional.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_nested.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/public.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared2.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shortcuts.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/static_this.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/synonyms.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/tosource.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/test/variable_redefine.js +0 -0
- data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
- metadata +169 -178
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -148
- data/lib/sproutcore/vendor/github_gem_lint.rb +0 -22
- data/vendor/sproutcore/SCCompiler.jar +0 -0
- data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/lib/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/build.xml +0 -74
- data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/manifest.mf +0 -3
- data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +0 -894
- data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +0 -8
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +0 -10
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +0 -4
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +0 -90
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +0 -15
- data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +0 -348
@@ -9,7 +9,7 @@
|
|
9
9
|
/**
|
10
10
|
@namespace
|
11
11
|
NavigationBuilder is an implementation of the Builder protocol. It implements
|
12
|
-
buildIn
|
12
|
+
`buildIn`/`Out` (though these only relay to `buildIn`/`OutNavigation, so feel free to
|
13
13
|
override if needed; the navigation builders will still be accessible).
|
14
14
|
|
15
15
|
Building in and out animates the view in and out to and from the left and right.
|
@@ -101,16 +101,16 @@ SC.NavigationBuilder = {
|
|
101
101
|
},
|
102
102
|
|
103
103
|
/**
|
104
|
-
You may override this. If you do, call buildInNavigation to call the original functionality.
|
105
|
-
You may need to override navigationBuildDidFinish as well if you call buildInNavigation
|
104
|
+
You may override this. If you do, call `buildInNavigation` to call the original functionality.
|
105
|
+
You may need to override `navigationBuildDidFinish` as well if you call `buildInNavigation`.
|
106
106
|
*/
|
107
107
|
buildIn: function() {
|
108
108
|
this.buildInNavigation();
|
109
109
|
},
|
110
110
|
|
111
111
|
/**
|
112
|
-
You may override this. If you do, call buildOutNavigation to call the original functionality.
|
113
|
-
You may need to override navigationBuildDidFinish
|
112
|
+
You may override this. If you do, call `buildOutNavigation` to call the original functionality.
|
113
|
+
You may need to override `navigationBuildDidFinish`as well if you call `buildOutNavigation`.
|
114
114
|
*/
|
115
115
|
buildOut: function() {
|
116
116
|
this.buildOutNavigation();
|
@@ -14,8 +14,8 @@
|
|
14
14
|
provide basic support for scrolling actions. You can also override any
|
15
15
|
of these methods as needed for your own specific behaviors.
|
16
16
|
|
17
|
-
Often times instead of adding SC.Scrollable to your view, you should
|
18
|
-
place your view inside of an SC.ScrollView
|
17
|
+
Often times instead of adding `SC.Scrollable` to your view, you should
|
18
|
+
place your view inside of an `SC.ScrollView`. See that class for more
|
19
19
|
info.
|
20
20
|
|
21
21
|
Note that isScrollable must always be true.
|
@@ -30,7 +30,7 @@ SC.Scrollable = {
|
|
30
30
|
|
31
31
|
/** Informs the view system that the receiver is scrollable.
|
32
32
|
|
33
|
-
Must always be true.
|
33
|
+
Must always be `true.
|
34
34
|
|
35
35
|
@property {Boolean}
|
36
36
|
@default YES
|
@@ -41,7 +41,7 @@ SC.Scrollable = {
|
|
41
41
|
/**
|
42
42
|
Amount to scroll one vertical line.
|
43
43
|
|
44
|
-
Used by the default implementation of scrollDownLine() and scrollUpLine()
|
44
|
+
Used by the default implementation of `scrollDownLine()` and `scrollUpLine()`.
|
45
45
|
|
46
46
|
@property {Number}
|
47
47
|
@default 20
|
@@ -51,7 +51,7 @@ SC.Scrollable = {
|
|
51
51
|
/**
|
52
52
|
Amount to scroll one horizontal line.
|
53
53
|
|
54
|
-
Used by the default implementation of scrollLeftLine() and scrollRightLine()
|
54
|
+
Used by the default implementation of `scrollLeftLine()` and `scrollRightLine()`.
|
55
55
|
|
56
56
|
@property {Number}
|
57
57
|
@default 20
|
@@ -61,8 +61,8 @@ SC.Scrollable = {
|
|
61
61
|
/**
|
62
62
|
Amount to scroll one vertical page.
|
63
63
|
|
64
|
-
Used by the default implementation of scrollUpPage() and scrollDownPage()
|
65
|
-
current innerFrame height.
|
64
|
+
Used by the default implementation of `scrollUpPage()` and `scrollDownPage()`. Defaults to
|
65
|
+
current `innerFrame` height.
|
66
66
|
*/
|
67
67
|
verticalPageScroll: function() {
|
68
68
|
return this.get('innerFrame').height;
|
@@ -71,8 +71,8 @@ SC.Scrollable = {
|
|
71
71
|
/**
|
72
72
|
Amount to scroll one horizontal page.
|
73
73
|
|
74
|
-
Used by the default implementation of scrollLeftPage() and scrollRightPage()
|
75
|
-
to current innerFrame width.
|
74
|
+
Used by the default implementation of `scrollLeftPage()` and `scrollRightPage()`. Defaults
|
75
|
+
to current `innerFrame` width.
|
76
76
|
*/
|
77
77
|
horizontalPageScroll: function() {
|
78
78
|
return this.get('innerFrame').width ;
|
@@ -142,7 +142,7 @@ SC.Scrollable = {
|
|
142
142
|
/**
|
143
143
|
Scroll the view to make the passed frame visible.
|
144
144
|
|
145
|
-
Frame must be relative to the receiver's offsetParent
|
145
|
+
Frame must be relative to the receiver's `offsetParent`.
|
146
146
|
|
147
147
|
@param {SC.View} view the view you want to make visible
|
148
148
|
*/
|
@@ -43,33 +43,33 @@ SC.BUTTON3_STATUS = 'button3';
|
|
43
43
|
useful for showing important error messages and confirmation dialogs. They
|
44
44
|
provide a better user experience than using the OS-level alert dialogs.
|
45
45
|
|
46
|
-
|
46
|
+
## Displaying an Alert Pane
|
47
47
|
|
48
48
|
The easiest way to display an alert pane is to use one of the various
|
49
|
-
class methods defined on SC.AlertPane
|
49
|
+
class methods defined on `SC.AlertPane`, passing the message and an optional
|
50
50
|
detailed description and caption.
|
51
51
|
|
52
52
|
There are four variations of this method can you can invoke:
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
54
|
+
- `warn()` -- displays an alert pane with a warning icon to the left.
|
55
|
+
- `error()` -- displays an alert with an error icon to the left
|
56
|
+
- `info()` -- displays an alert with an info icon to the left
|
57
|
+
- `plain()` -- displays an alert w/o any icon
|
58
|
+
- `show()` -- displays an alert with a customizable icon to the left
|
59
59
|
|
60
60
|
In addition to passing a message, description and caption, you can also customize
|
61
61
|
the title of the button 1 (OK) and add an optional button 2 and 3 (Cancel or Extra).
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
- button1 -- 1st button from the right. default:OK
|
64
|
+
- button2 -- 2nd button from the right. Optional. Could be Cancel or 2nd action.
|
65
|
+
- button3 -- 1st button from the left. Optional. Could be Cancel or alternative option.
|
66
66
|
|
67
67
|
Additionally, you can define a delegate object. This delegate's
|
68
|
-
|
68
|
+
`alertPaneDidDismiss()` method will be called when the pane
|
69
69
|
is dismissed, passing the pane instance and a key indicating which
|
70
70
|
button was pressed.
|
71
71
|
|
72
|
-
|
72
|
+
## Examples
|
73
73
|
|
74
74
|
Show a simple AlertPane with an OK button:
|
75
75
|
|
@@ -178,7 +178,7 @@ SC.AlertPane = SC.PanelPane.extend(
|
|
178
178
|
|
179
179
|
alertPaneDidDismiss: function(pane, status) {}
|
180
180
|
|
181
|
-
The status will be one of SC.BUTTON1_STATUS
|
181
|
+
The status will be one of `SC.BUTTON1_STATUS`, `SC.BUTTON2_STATUS` or `SC.BUTTON3_STATUS`
|
182
182
|
depending on which button was clicked.
|
183
183
|
|
184
184
|
@type Object
|
@@ -373,11 +373,12 @@ SC.AlertPane = SC.PanelPane.extend(
|
|
373
373
|
alertpane itself.
|
374
374
|
|
375
375
|
This will trigger the following chain of events:
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
376
|
+
|
377
|
+
1. If a delegate was given, and it has alertPaneDidDismiss it will be called
|
378
|
+
2. Otherwise it will look for the action of the button and call:
|
379
|
+
a) The action function reference if one was given
|
380
|
+
b) The action method on the target if one was given
|
381
|
+
c) If both a and b are missing, call the action on the rootResponder
|
381
382
|
|
382
383
|
@param {SC.View} sender - the button view that was clicked
|
383
384
|
*/
|
@@ -431,7 +432,7 @@ SC.AlertPane.mixin(
|
|
431
432
|
});
|
432
433
|
|
433
434
|
See more examples for how to configure buttons and individual actions in the
|
434
|
-
documentation for the SC.AlertPane class.
|
435
|
+
documentation for the `SC.AlertPane` class.
|
435
436
|
|
436
437
|
@param {Hash} args
|
437
438
|
@return {SC.AlertPane} the pane shown
|
@@ -474,7 +475,7 @@ SC.AlertPane.mixin(
|
|
474
475
|
},
|
475
476
|
|
476
477
|
/**
|
477
|
-
Same as show() just that it uses sc-icon-alert-48 CSS classname
|
478
|
+
Same as `show()` just that it uses sc-icon-alert-48 CSS classname
|
478
479
|
as the dialog icon
|
479
480
|
|
480
481
|
@param {Hash} args
|
@@ -489,7 +490,7 @@ SC.AlertPane.mixin(
|
|
489
490
|
},
|
490
491
|
|
491
492
|
/**
|
492
|
-
Same as show() just that it uses sc-icon-info-48 CSS classname
|
493
|
+
Same as `show()` just that it uses sc-icon-info-48 CSS classname
|
493
494
|
as the dialog icon
|
494
495
|
|
495
496
|
@param {Hash} args
|
@@ -504,7 +505,7 @@ SC.AlertPane.mixin(
|
|
504
505
|
},
|
505
506
|
|
506
507
|
/**
|
507
|
-
Same as show() just that it uses sc-icon-error-48 CSS classname
|
508
|
+
Same as `show()` just that it uses sc-icon-error-48 CSS classname
|
508
509
|
as the dialog icon
|
509
510
|
|
510
511
|
@param {Hash} args
|
@@ -519,7 +520,7 @@ SC.AlertPane.mixin(
|
|
519
520
|
},
|
520
521
|
|
521
522
|
/**
|
522
|
-
Same as show() just that it uses blank CSS classname
|
523
|
+
Same as `show()` just that it uses blank CSS classname
|
523
524
|
as the dialog icon
|
524
525
|
|
525
526
|
@param {Hash} args
|
@@ -11,17 +11,17 @@ sc_require('views/menu_item');
|
|
11
11
|
/**
|
12
12
|
@class
|
13
13
|
|
14
|
-
SC.MenuPane allows you to display a standard menu. Menus appear over other
|
14
|
+
`SC.MenuPane` allows you to display a standard menu. Menus appear over other
|
15
15
|
panes, and block input to other views until a selection is made or the pane
|
16
16
|
is dismissed by clicking outside of its bounds.
|
17
17
|
|
18
18
|
You can create a menu pane and manage it yourself, or you can use the
|
19
|
-
SC.SelectButtonView and SC.PopupButtonView controls to manage the menu for
|
19
|
+
`SC.SelectButtonView` and `SC.PopupButtonView` controls to manage the menu for
|
20
20
|
you.
|
21
21
|
|
22
|
-
|
22
|
+
## Specifying Menu Items
|
23
23
|
|
24
|
-
The menu pane examines the
|
24
|
+
The menu pane examines the `items` property to determine what menu items
|
25
25
|
should be presented to the user.
|
26
26
|
|
27
27
|
In its most simple form, you can provide an array of strings. Every item
|
@@ -33,29 +33,27 @@ sc_require('views/menu_item');
|
|
33
33
|
|
34
34
|
Out of the box, the menu pane has some default keys it uses to get
|
35
35
|
information from the objects. For example, to find out the title of the menu
|
36
|
-
item, the menu pane will ask your object for its
|
37
|
-
need to change this key, you can set the
|
36
|
+
item, the menu pane will ask your object for its `title` property. If you
|
37
|
+
need to change this key, you can set the `itemTitleKey` property on the pane
|
38
38
|
itself.
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
});
|
53
|
-
}}}
|
40
|
+
var menuItems = [
|
41
|
+
{ title: 'Menu Item', keyEquivalent: 'ctrl_shift_n' },
|
42
|
+
{ title: 'Checked Menu Item', isChecked: YES, keyEquivalent: 'ctrl_a' },
|
43
|
+
{ title: 'Selected Menu Item', keyEquivalent: ['backspace', 'delete'] },
|
44
|
+
{ isSeparator: YES },
|
45
|
+
{ title: 'Menu Item with Icon', icon: 'inbox', keyEquivalent: 'ctrl_m' },
|
46
|
+
{ title: 'Menu Item with Icon', icon: 'folder', keyEquivalent: 'ctrl_p' }
|
47
|
+
];
|
48
|
+
|
49
|
+
var menu = SC.MenuPane.create({
|
50
|
+
items: menuItems
|
51
|
+
});
|
54
52
|
|
55
|
-
|
53
|
+
## Observing User Selections
|
56
54
|
|
57
55
|
To determine when a user clicks on a menu item, you can observe the
|
58
|
-
|
56
|
+
`selectedItem` property for changes.
|
59
57
|
|
60
58
|
@extends SC.PickerPane
|
61
59
|
@since SproutCore 1.0
|
@@ -98,14 +96,13 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
98
96
|
/**
|
99
97
|
The size of the menu. This will set a CSS style on the menu that can be
|
100
98
|
used by the current theme to style the appearance of the control. This
|
101
|
-
value will also determine the default itemHeight
|
102
|
-
menuHeightPadding
|
99
|
+
value will also determine the default `itemHeight`, `itemSeparatorHeight`,
|
100
|
+
`menuHeightPadding`, and `submenuOffsetX` if you don't explicitly set these
|
103
101
|
properties.
|
104
102
|
|
105
103
|
Your theme can override the default values for each control size by specifying
|
106
104
|
them in the `menuRenderDelegate`. For example:
|
107
105
|
|
108
|
-
{{{
|
109
106
|
MyTheme.menuRenderDelegate = SC.BaseTheme.menuRenderDelegate.create({
|
110
107
|
'sc-tiny-size': {
|
111
108
|
itemHeight: 20,
|
@@ -114,7 +111,6 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
114
111
|
submenuOffsetX: 2
|
115
112
|
}
|
116
113
|
});
|
117
|
-
}}}
|
118
114
|
|
119
115
|
Changing the controlSize once the menu is instantiated has no effect.
|
120
116
|
|
@@ -127,10 +123,10 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
127
123
|
The height of each menu item, in pixels.
|
128
124
|
|
129
125
|
You can override this on a per-item basis by setting the (by default)
|
130
|
-
|
126
|
+
`height` property on your object.
|
131
127
|
|
132
128
|
If you don't specify a value, the item height will be inferred from
|
133
|
-
controlSize
|
129
|
+
`controlSize`.
|
134
130
|
|
135
131
|
@property {Number}
|
136
132
|
@default itemHeight from theme if present, or 20.
|
@@ -141,10 +137,10 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
141
137
|
The height of separator menu items.
|
142
138
|
|
143
139
|
You can override this on a per-item basis by setting the (by default)
|
144
|
-
|
140
|
+
`height` property on your object.
|
145
141
|
|
146
142
|
If you don't specify a value, the height of the separator menu items will
|
147
|
-
be inferred from controlSize
|
143
|
+
be inferred from `controlSize`.
|
148
144
|
|
149
145
|
@property {Number}
|
150
146
|
@default itemSeparatorHeight from theme, or 9.
|
@@ -203,7 +199,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
203
199
|
The view class to use when creating new menu item views.
|
204
200
|
|
205
201
|
The menu pane will automatically create an instance of the view class you
|
206
|
-
set here for each item in the
|
202
|
+
set here for each item in the `items` array. You may provide your own
|
207
203
|
subclass for this property to display the customized content.
|
208
204
|
|
209
205
|
@property {SC.View}
|
@@ -216,7 +212,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
216
212
|
|
217
213
|
When the menu pane is shown, it will remain anchored to the view you
|
218
214
|
specify, even if the window is resized. You should specify the anchor as a
|
219
|
-
parameter when calling
|
215
|
+
parameter when calling `popup()`, rather than setting it directly.
|
220
216
|
|
221
217
|
@type SC.View
|
222
218
|
@isReadOnly
|
@@ -224,7 +220,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
224
220
|
anchor: null,
|
225
221
|
|
226
222
|
/**
|
227
|
-
YES if this menu pane was generated by a parent SC.MenuPane
|
223
|
+
`YES` if this menu pane was generated by a parent `SC.MenuPane`.
|
228
224
|
|
229
225
|
@type Boolean
|
230
226
|
@default NO
|
@@ -243,7 +239,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
243
239
|
/**
|
244
240
|
Whether or not this menu pane should accept the “current menu pane”
|
245
241
|
designation when visible, which is the highest-priority pane when routing
|
246
|
-
events. Generally you want this set to YES so that your menu pane can
|
242
|
+
events. Generally you want this set to `YES` so that your menu pane can
|
247
243
|
intercept keyboard events.
|
248
244
|
|
249
245
|
@type Boolean
|
@@ -436,7 +432,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
436
432
|
item.
|
437
433
|
|
438
434
|
The action of the menu item will be fired, and the menu pane's
|
439
|
-
|
435
|
+
`selectedItem` property set to the menu item, if the user presses this
|
440
436
|
key combination on the keyboard.
|
441
437
|
|
442
438
|
@type String
|
@@ -461,7 +457,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
461
457
|
itemDisableMenuFlashKey: 'disableMenuFlash',
|
462
458
|
|
463
459
|
/**
|
464
|
-
The array of keys used by SC.MenuItemView when inspecting your menu items
|
460
|
+
The array of keys used by `SC.MenuItemView` when inspecting your menu items
|
465
461
|
for display properties.
|
466
462
|
|
467
463
|
@private
|
@@ -487,9 +483,9 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
487
483
|
isModal: YES,
|
488
484
|
|
489
485
|
/**
|
490
|
-
The view that contains the
|
486
|
+
The view that contains the `MenuItemView`s that are visible on screen.
|
491
487
|
|
492
|
-
This is created and set in createChildViews
|
488
|
+
This is created and set in `createChildViews`.
|
493
489
|
|
494
490
|
@property SC.View
|
495
491
|
@private
|
@@ -501,8 +497,8 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
501
497
|
//
|
502
498
|
|
503
499
|
/**
|
504
|
-
If an itemHeight
|
505
|
-
explicitly set, we set them here based on the controlSize
|
500
|
+
If an `itemHeight`, `itemSeparatorHeight`, or `menuHeightPadding` have not been
|
501
|
+
explicitly set, we set them here based on the `controlSize`.
|
506
502
|
|
507
503
|
@returns {SC.MenuPane} the newly instantiated menu pane
|
508
504
|
@private
|
@@ -515,8 +511,8 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
515
511
|
renderDelegateName: 'menuRenderDelegate',
|
516
512
|
|
517
513
|
/**
|
518
|
-
Creates the child scroll view, and sets its contentView to a new
|
519
|
-
view. This new view is saved and managed by the SC.MenuPane
|
514
|
+
Creates the child scroll view, and sets its `contentView` to a new
|
515
|
+
view. This new view is saved and managed by the `SC.MenuPane`,
|
520
516
|
and contains the visible menu items.
|
521
517
|
|
522
518
|
@private
|
@@ -543,9 +539,9 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
543
539
|
|
544
540
|
/**
|
545
541
|
When the pane is attached to a DOM element in the window, set up the
|
546
|
-
view to be visible in the window and register with the RootResponder
|
542
|
+
view to be visible in the window and register with the `RootResponder`.
|
547
543
|
|
548
|
-
We don't call sc_super() here because PanelPane sets the current pane to
|
544
|
+
We don't call `sc_super()` here because `PanelPane` sets the current pane to
|
549
545
|
be the key pane when attached.
|
550
546
|
|
551
547
|
@returns {SC.MenuPane} receiver
|
@@ -584,7 +580,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
584
580
|
|
585
581
|
/**
|
586
582
|
Remove the menu pane status from the pane. This will simply set the
|
587
|
-
menuPane on the rootResponder to null.
|
583
|
+
`menuPane` on the `rootResponder` to `null.
|
588
584
|
|
589
585
|
@returns {SC.Pane} receiver
|
590
586
|
*/
|
@@ -596,7 +592,8 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
596
592
|
/**
|
597
593
|
The array of child menu item views that compose the menu.
|
598
594
|
|
599
|
-
This computed property parses
|
595
|
+
This computed property parses `displayItems` and constructs an
|
596
|
+
`SC.MenuItemView` (or whatever class you have set as the `exampleView`) for every item.
|
600
597
|
|
601
598
|
@property
|
602
599
|
@type Array
|
@@ -708,21 +705,21 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
708
705
|
or an object with key-value pairs, or an exotic mish-mash of both, we need
|
709
706
|
to normalize it for our display logic.
|
710
707
|
|
711
|
-
If an
|
708
|
+
If an `items` member is an object, we can assume it is formatted properly
|
712
709
|
and leave it as-is.
|
713
710
|
|
714
|
-
If an
|
711
|
+
If an `items` member is a string, we create a hash with the title value
|
715
712
|
set to that string, and some sensible defaults for the other properties.
|
716
713
|
|
717
|
-
As a last resort, if an
|
714
|
+
As a last resort, if an `items` member is an array, we have a legacy
|
718
715
|
handler that converts the array into a hash. This behavior is deprecated
|
719
716
|
and is not guaranteed to be supported in the future.
|
720
717
|
|
721
718
|
A side effect of running this computed property is that the menuHeight
|
722
719
|
property is updated.
|
723
720
|
|
724
|
-
|
725
|
-
|
721
|
+
`displayItems` should never be set directly; instead, set `items` and
|
722
|
+
`displayItems` will update automatically.
|
726
723
|
|
727
724
|
@property
|
728
725
|
@type Array
|
@@ -847,7 +844,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
847
844
|
|
848
845
|
// Scroll to the selected menu item if it's not visible on screen.
|
849
846
|
// This is useful for keyboard navigation and programmaticaly selecting
|
850
|
-
// the selected menu item, as in SelectButtonView
|
847
|
+
// the selected menu item, as in `SelectButtonView`.
|
851
848
|
if (currentMenuItem && currentMenuItem.get('isEnabled')) {
|
852
849
|
currentMenuItem.scrollToVisible();
|
853
850
|
}
|
@@ -990,7 +987,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
990
987
|
However, when the menu is part of another control, such as an
|
991
988
|
SC.PopupButtonView, the menu should still respond if it is hidden but its
|
992
989
|
parent control is visible. In those cases, the parameter
|
993
|
-
fromVisibleControl will be set to YES
|
990
|
+
fromVisibleControl will be set to `YES`.
|
994
991
|
|
995
992
|
@param keyEquivalent {String} the shortcut key sequence that was pressed
|
996
993
|
@param fromVisibleControl {Boolean} if the shortcut key press was proxied
|
@@ -1046,7 +1043,7 @@ SC.MenuPane = SC.PickerPane.extend(
|
|
1046
1043
|
Clear the key buffer if the user does not enter any text after a certain
|
1047
1044
|
amount of time.
|
1048
1045
|
|
1049
|
-
This is called by the timer created in the insertText method.
|
1046
|
+
This is called by the timer created in the `insertText` method.
|
1050
1047
|
|
1051
1048
|
@private
|
1052
1049
|
*/
|