sproutcore 1.5.0-java → 1.6.0.beta.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -49,8 +49,9 @@ SC.HOLD_BEHAVIOR = 'hold';
|
|
|
49
49
|
|
|
50
50
|
By default, a button uses the SC.Control mixin which will apply CSS
|
|
51
51
|
classnames when the state of the button changes:
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
|
|
53
|
+
- `active` -- when button is active
|
|
54
|
+
- `sel` -- when button is toggled to a selected state
|
|
54
55
|
|
|
55
56
|
@extends SC.View
|
|
56
57
|
@extends SC.Control
|
|
@@ -95,17 +96,17 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
95
96
|
Used to automatically update the state of the button view for toggle style
|
|
96
97
|
buttons.
|
|
97
98
|
|
|
98
|
-
|
|
99
|
+
For toggle style buttons, you can set the value and it will be used to
|
|
99
100
|
update the isSelected state of the button view. The value will also
|
|
100
101
|
change as the user selects or deselects. You can control which values
|
|
101
|
-
the button will treat as isSelected by setting the toggleOnValue and
|
|
102
|
-
toggleOffValue
|
|
103
|
-
YES or NO
|
|
102
|
+
the button will treat as `isSelected` by setting the `toggleOnValue` and
|
|
103
|
+
`toggleOffValue`. Alternatively, if you leave these properties set to
|
|
104
|
+
`YES` or `NO`, the button will do its best to convert a value to an
|
|
104
105
|
appropriate state:
|
|
105
106
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
- `null`, `false`, `0` -- `isSelected = false`
|
|
108
|
+
- any other single value -- `isSelected = true`
|
|
109
|
+
- array -- if all values are the same state, that state; otherwise `MIXED`.
|
|
109
110
|
|
|
110
111
|
@type Object
|
|
111
112
|
@default null
|
|
@@ -156,7 +157,9 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
156
157
|
localizeBindingDefault: SC.Binding.bool(),
|
|
157
158
|
|
|
158
159
|
/**
|
|
159
|
-
The button title. If localize is YES
|
|
160
|
+
The button title. If localize is `YES`, then this should be the
|
|
161
|
+
localization key to display. Otherwise, this will be the actual string
|
|
162
|
+
displayed in the title. This property is observable and bindable.
|
|
160
163
|
|
|
161
164
|
@type String
|
|
162
165
|
@default ""
|
|
@@ -231,16 +234,16 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
231
234
|
|
|
232
235
|
Possible values are:
|
|
233
236
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
237
|
+
- `SC.PUSH_BEHAVIOR` -- Pressing the button will trigger an action tied to the
|
|
238
|
+
button. Does not change the value of the button.
|
|
239
|
+
- `SC.TOGGLE_BEHAVIOR` -- Pressing the button will invert the current value of
|
|
240
|
+
the button. If the button has a mixed value, it will be set to true.
|
|
241
|
+
- `SC.TOGGLE_ON_BEHAVIOR` -- Pressing the button will set the current state to
|
|
242
|
+
true no matter the previous value.
|
|
243
|
+
- `SC.TOGGLE_OFF_BEHAVIOR` -- Pressing the button will set the current state to
|
|
244
|
+
false no matter the previous value.
|
|
245
|
+
- `SC.HOLD_BEHAVIOR` -- Pressing the button will cause the action to repeat at a
|
|
246
|
+
regular interval specifed by 'holdInterval'
|
|
244
247
|
|
|
245
248
|
@type String
|
|
246
249
|
@default SC.PUSH_BEHAVIOR
|
|
@@ -248,7 +251,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
248
251
|
buttonBehavior: SC.PUSH_BEHAVIOR,
|
|
249
252
|
|
|
250
253
|
/*
|
|
251
|
-
If buttonBehavior is SC.HOLD_BEHAVIOR
|
|
254
|
+
If buttonBehavior is `SC.HOLD_BEHAVIOR`, this specifies, in milliseconds,
|
|
252
255
|
how often to trigger the action. Ignored for other behaviors.
|
|
253
256
|
|
|
254
257
|
@type Number
|
|
@@ -259,7 +262,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
259
262
|
/**
|
|
260
263
|
If YES, then this button will be triggered when you hit return.
|
|
261
264
|
|
|
262
|
-
This is the same as setting the keyEquivalent to 'return'. This will also
|
|
265
|
+
This is the same as setting the `keyEquivalent` to 'return'. This will also
|
|
263
266
|
apply the "def" classname to the button.
|
|
264
267
|
|
|
265
268
|
@type Boolean
|
|
@@ -354,7 +357,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
354
357
|
The padding to add to the measured size of the text to arrive at the measured
|
|
355
358
|
size for the view.
|
|
356
359
|
|
|
357
|
-
SC.ButtonView gets this from its render delegate, but if not supplied, defaults
|
|
360
|
+
`SC.ButtonView` gets this from its render delegate, but if not supplied, defaults
|
|
358
361
|
to 10.
|
|
359
362
|
|
|
360
363
|
@default 10
|
|
@@ -465,7 +468,7 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
465
468
|
// a separate observer (see below)
|
|
466
469
|
|
|
467
470
|
/**
|
|
468
|
-
The following properties affect how SC.ButtonView is rendered, and will
|
|
471
|
+
The following properties affect how `SC.ButtonView` is rendered, and will
|
|
469
472
|
cause the view to be rerendered if they change.
|
|
470
473
|
|
|
471
474
|
@type Array
|
|
@@ -564,8 +567,9 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
564
567
|
|
|
565
568
|
/**
|
|
566
569
|
This is the standard logic to compute a proposed isSelected state for a
|
|
567
|
-
new value. This takes into account the toggleOnValue
|
|
568
|
-
properties, among other things. It may return YES
|
|
570
|
+
new value. This takes into account the `toggleOnValue`/`toggleOffValue`
|
|
571
|
+
properties, among other things. It may return `YES`, `NO`, or
|
|
572
|
+
`SC.MIXED_STATE`.
|
|
569
573
|
|
|
570
574
|
@param {Object} value
|
|
571
575
|
@returns {Boolean} return state
|
|
@@ -609,7 +613,9 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
609
613
|
}.observes('value'),
|
|
610
614
|
|
|
611
615
|
/** @private
|
|
612
|
-
Whenever the selected state is changed, make sure the button value is
|
|
616
|
+
Whenever the selected state is changed, make sure the button value is
|
|
617
|
+
also updated. Note that this may be called because the value has just
|
|
618
|
+
changed. In that case this should do nothing.
|
|
613
619
|
*/
|
|
614
620
|
_button_isSelectedDidChange: function() {
|
|
615
621
|
var newState = this.get('isSelected'),
|
|
@@ -629,8 +635,8 @@ SC.ButtonView = SC.View.extend(SC.Control,
|
|
|
629
635
|
Used to store the keyboard equivalent.
|
|
630
636
|
|
|
631
637
|
Setting the isDefault property to YES, for example, will cause the
|
|
632
|
-
keyEquivalent property to 'return'. This cached value is used to restore
|
|
633
|
-
the keyEquivalent property if isDefault is set back to NO.
|
|
638
|
+
`keyEquivalent` property to 'return'. This cached value is used to restore
|
|
639
|
+
the `keyEquivalent` property if isDefault is set back to NO.
|
|
634
640
|
|
|
635
641
|
@type String
|
|
636
642
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
Represents a Checkbox Button.
|
|
11
11
|
|
|
12
|
-
The view is an SC.ButtonView put into toggle mode and with the 'theme' property
|
|
12
|
+
The view is an `SC.ButtonView` put into toggle mode and with the 'theme' property
|
|
13
13
|
set to "checkbox".
|
|
14
14
|
|
|
15
15
|
Rendering
|
|
@@ -64,7 +64,7 @@ SC.CheckboxView = SC.ButtonView.extend(SC.StaticLayout,
|
|
|
64
64
|
needsEllipsis: NO,
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
YES if `isEnabled` is YES
|
|
67
|
+
`YES` if `isEnabled` is `YES`, `NO` otherwise
|
|
68
68
|
|
|
69
69
|
@type Boolean
|
|
70
70
|
@default NO
|
|
@@ -33,12 +33,12 @@ SC.BENCHMARK_RELOAD = NO;
|
|
|
33
33
|
|
|
34
34
|
Renders a collection of views from a source array of model objects.
|
|
35
35
|
|
|
36
|
-
The CollectionView is the root view class for rendering collections of
|
|
36
|
+
The `CollectionView` is the root view class for rendering collections of
|
|
37
37
|
views based on a source array of objects. It can automatically create the
|
|
38
38
|
and layout the views, including displaying them in groups. It also
|
|
39
39
|
handles event input for the entire collection.
|
|
40
40
|
|
|
41
|
-
To use CollectionView
|
|
41
|
+
To use `CollectionView`, just create the view and set the 'content' property
|
|
42
42
|
to an array of objects. (Note that if you setup a binding, it will
|
|
43
43
|
always transform content to an array.) The view will create instances of
|
|
44
44
|
exampleView to render the array. You can also bind to the selection
|
|
@@ -83,7 +83,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
83
83
|
//
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
If YES
|
|
86
|
+
If `YES`, uses the experimental fast `CollectionView` path.
|
|
87
87
|
|
|
88
88
|
@type Boolean
|
|
89
89
|
@default NO
|
|
@@ -94,12 +94,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
94
94
|
An array of content objects
|
|
95
95
|
|
|
96
96
|
This array should contain the content objects you want the collection view
|
|
97
|
-
to display. An item view (based on the exampleView view class) will be
|
|
97
|
+
to display. An item view (based on the `exampleView` view class) will be
|
|
98
98
|
created for each content object, in the order the content objects appear
|
|
99
99
|
in this array.
|
|
100
100
|
|
|
101
101
|
If you make the collection editable, the collection view will also modify
|
|
102
|
-
this array using the observable array methods of SC.Array
|
|
102
|
+
this array using the observable array methods of `SC.Array`.
|
|
103
103
|
|
|
104
104
|
Usually you will want to bind this property to a controller property
|
|
105
105
|
that actually contains the array of objects you to display.
|
|
@@ -143,12 +143,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
143
143
|
}.property('length', 'clippingFrame').cacheable(),
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
Indexes of selected content objects. This SC.SelectionSet is modified
|
|
146
|
+
Indexes of selected content objects. This `SC.SelectionSet` is modified
|
|
147
147
|
automatically by the collection view when the user changes the selection
|
|
148
148
|
on the collection.
|
|
149
149
|
|
|
150
150
|
Any item views representing content objects in this set will have their
|
|
151
|
-
isSelected property set to YES automatically.
|
|
151
|
+
isSelected property set to `YES` automatically.
|
|
152
152
|
|
|
153
153
|
@type SC.SelectionSet
|
|
154
154
|
@default null
|
|
@@ -158,8 +158,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
158
158
|
/**
|
|
159
159
|
Allow user to select content using the mouse and keyboard.
|
|
160
160
|
|
|
161
|
-
Set this property to NO to disallow the user from selecting items. If you
|
|
162
|
-
have items in your selectedIndexes property, they will still be reflected
|
|
161
|
+
Set this property to `NO` to disallow the user from selecting items. If you
|
|
162
|
+
have items in your `selectedIndexes property, they will still be reflected
|
|
163
163
|
visually.
|
|
164
164
|
|
|
165
165
|
@type Boolean
|
|
@@ -173,10 +173,10 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
173
173
|
/**
|
|
174
174
|
Enable or disable the view.
|
|
175
175
|
|
|
176
|
-
The collection view will set the isEnabled property of its item views to
|
|
177
|
-
reflect the same view of this property. Whenever isEnabled is false,
|
|
176
|
+
The collection view will set the `isEnabled` property of its item views to
|
|
177
|
+
reflect the same view of this property. Whenever ``isEnabled` is false,
|
|
178
178
|
the collection view will also be not selectable or editable, regardless of
|
|
179
|
-
the settings for isEditable & isSelectable
|
|
179
|
+
the settings for isEditable` & `isSelectable`.
|
|
180
180
|
|
|
181
181
|
@type Boolean
|
|
182
182
|
@default YES
|
|
@@ -189,10 +189,11 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
189
189
|
/**
|
|
190
190
|
Allow user to edit content views.
|
|
191
191
|
|
|
192
|
-
The collection view will set the isEditable property on its item views to
|
|
193
|
-
reflect the same value of this property. Whenever isEditable is false,
|
|
192
|
+
The collection view will set the `isEditable` property on its item views to
|
|
193
|
+
reflect the same value of this property. Whenever `isEditable` is false,
|
|
194
194
|
the user will not be able to reorder, add, or delete items regardless of
|
|
195
|
-
the canReorderContent and canDeleteContent and isDropTarget
|
|
195
|
+
the `canReorderContent` and `canDeleteContent` and `isDropTarget`
|
|
196
|
+
properties.
|
|
196
197
|
|
|
197
198
|
@type Boolean
|
|
198
199
|
@default YES
|
|
@@ -233,8 +234,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
233
234
|
|
|
234
235
|
/**
|
|
235
236
|
Allow user to edit the content by double clicking on it or hitting return.
|
|
236
|
-
This will only work if isEditable is YES and the item view implements
|
|
237
|
-
the beginEditing() method.
|
|
237
|
+
This will only work if isEditable is `YES` and the item view implements
|
|
238
|
+
the `beginEditing()` method.
|
|
238
239
|
|
|
239
240
|
@type Boolean
|
|
240
241
|
*/
|
|
@@ -274,8 +275,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
274
275
|
object and double clicking will trigger the action method on the
|
|
275
276
|
collection view.
|
|
276
277
|
|
|
277
|
-
If you set this property to YES
|
|
278
|
-
it (if isSelected is true) and trigger the action method.
|
|
278
|
+
If you set this property to `YES`, then clicking on a view will both select
|
|
279
|
+
it (if `isSelected` is true) and trigger the action method.
|
|
279
280
|
|
|
280
281
|
Use this if you are using the collection view as a menu of items.
|
|
281
282
|
|
|
@@ -310,9 +311,9 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
310
311
|
For best results, the view you set here should understand the following
|
|
311
312
|
properties:
|
|
312
313
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
- `content` -- The content object from the content array your view should display
|
|
315
|
+
- `isEnabled` -- True if the view should appear enabled
|
|
316
|
+
- `isSelected` -- True if the view should appear selected
|
|
316
317
|
|
|
317
318
|
In general you do not want your child views to actually respond to mouse
|
|
318
319
|
and keyboard events themselves. It is better to let the collection view
|
|
@@ -354,7 +355,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
354
355
|
|
|
355
356
|
/**
|
|
356
357
|
If set, this key will be used to get the example view for a given
|
|
357
|
-
content object. The groupExampleView property will be ignored.
|
|
358
|
+
content object. The `groupExampleView` property will be ignored.
|
|
358
359
|
|
|
359
360
|
@type String
|
|
360
361
|
@default null
|
|
@@ -367,7 +368,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
367
368
|
|
|
368
369
|
Set this to the name of the action you want to send down the
|
|
369
370
|
responder chain when the user double clicks on an item (or single clicks
|
|
370
|
-
if actOnSelect is true). You can optionally specify a specific target as
|
|
371
|
+
if `actOnSelect` is true). You can optionally specify a specific target as
|
|
371
372
|
well using the target property.
|
|
372
373
|
|
|
373
374
|
If you do not specify an action, then the collection view will also try to
|
|
@@ -402,12 +403,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
402
403
|
/**
|
|
403
404
|
Property on content items to use for display.
|
|
404
405
|
|
|
405
|
-
Built-in item views such as the
|
|
406
|
+
Built-in item views such as the `LabelView`s and `ImageView`s will use the
|
|
406
407
|
value of this property as a key on the content object to determine the
|
|
407
408
|
value they should display.
|
|
408
409
|
|
|
409
|
-
For example, if you set contentValueKey to 'name' and set the
|
|
410
|
-
exampleView to an SC.LabelView
|
|
410
|
+
For example, if you set `contentValueKey` to 'name' and set the
|
|
411
|
+
exampleView to an `SC.LabelView`, then the label views created by the
|
|
411
412
|
colleciton view will display the value of the content.name.
|
|
412
413
|
|
|
413
414
|
If you are writing your own custom item view for a collection, you can
|
|
@@ -429,7 +430,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
429
430
|
acceptsFirstResponder: NO,
|
|
430
431
|
|
|
431
432
|
/**
|
|
432
|
-
Changing this property value by default will cause the CollectionView to
|
|
433
|
+
Changing this property value by default will cause the `CollectionView` to
|
|
433
434
|
add/remove an 'active' class name to the root element.
|
|
434
435
|
|
|
435
436
|
@type Boolean
|
|
@@ -441,7 +442,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
441
442
|
/**
|
|
442
443
|
This property is used to store the calculated height to have
|
|
443
444
|
a consistent scrolling behavior due to the issues generated by using top
|
|
444
|
-
instead of scrollTop
|
|
445
|
+
instead of `scrollTop`. We could look at the min-height set in the view, but
|
|
445
446
|
to avoid perf hits we simply store it and the scrollView will use it if
|
|
446
447
|
different than 0.
|
|
447
448
|
|
|
@@ -453,7 +454,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
453
454
|
/**
|
|
454
455
|
This property is used to store the calculated width to have
|
|
455
456
|
a consistent scrolling behavior due to the issues generated by using left
|
|
456
|
-
instead of scrollLeft
|
|
457
|
+
instead of `scrollLeft`. We could look at the min-width set in the view, but
|
|
457
458
|
to avoid perf hits we simply store it and the scrollView will use it if
|
|
458
459
|
different than 0.
|
|
459
460
|
|
|
@@ -499,7 +500,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
499
500
|
This computed property returns an index set selecting all content indexes.
|
|
500
501
|
It will recompute anytime the length of the collection view changes.
|
|
501
502
|
|
|
502
|
-
This is used by the default contentIndexesInRect() implementation.
|
|
503
|
+
This is used by the default `contentIndexesInRect()` implementation.
|
|
503
504
|
|
|
504
505
|
@field
|
|
505
506
|
@type SC.IndexSet
|
|
@@ -512,8 +513,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
512
513
|
/**
|
|
513
514
|
Override to return an IndexSet with the indexes that are at least
|
|
514
515
|
partially visible in the passed rectangle. This method is used by the
|
|
515
|
-
default implementation of computeNowShowing() to determine the new
|
|
516
|
-
nowShowing range after a scroll.
|
|
516
|
+
default implementation of `computeNowShowing()` to determine the new
|
|
517
|
+
`nowShowing` range after a scroll.
|
|
517
518
|
|
|
518
519
|
Override this method to implement incremental rendering.
|
|
519
520
|
|
|
@@ -553,11 +554,11 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
553
554
|
|
|
554
555
|
Called during a drag to show the insertion point. Passed value is the
|
|
555
556
|
item view that you should display the insertion point before. If the
|
|
556
|
-
passed value is null
|
|
557
|
+
passed value is `null`, then you should show the insertion point *AFTER* that
|
|
557
558
|
last item view returned by the itemViews property.
|
|
558
559
|
|
|
559
560
|
Once this method is called, you are guaranteed to also recieve a call to
|
|
560
|
-
hideInsertionPoint() at some point in the future.
|
|
561
|
+
`hideInsertionPoint()` at some point in the future.
|
|
561
562
|
|
|
562
563
|
The default implementation of this method does nothing.
|
|
563
564
|
|
|
@@ -576,7 +577,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
576
577
|
will not be called when the insertion point changes during a drag.
|
|
577
578
|
|
|
578
579
|
You should expect to receive one or more calls to
|
|
579
|
-
showInsertionPointBefore() during a drag followed by at least one call to
|
|
580
|
+
`showInsertionPointBefore()` during a drag followed by at least one call to
|
|
580
581
|
this method at the end. Your method should not raise an error if it is
|
|
581
582
|
called more than once.
|
|
582
583
|
|
|
@@ -597,12 +598,12 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
597
598
|
You can assign a delegate object to this property that will be consulted
|
|
598
599
|
for various decisions regarding drag and drop, selection behavior, and
|
|
599
600
|
even rendering. The object you place here must implement some or all of
|
|
600
|
-
the SC.CollectionViewDelegate mixin.
|
|
601
|
+
the `SC.CollectionViewDelegate` mixin.
|
|
601
602
|
|
|
602
603
|
If you do not supply a delegate but the content object you set implements
|
|
603
|
-
the SC.CollectionViewDelegate mixin, then the content will be
|
|
604
|
+
the `SC.CollectionViewDelegate` mixin, then the content will be
|
|
604
605
|
automatically set as the delegate. Usually you will work with a
|
|
605
|
-
CollectionView in this way rather than setting a delegate explicitly.
|
|
606
|
+
`CollectionView` in this way rather than setting a delegate explicitly.
|
|
606
607
|
|
|
607
608
|
@type SC.CollectionViewDelegate
|
|
608
609
|
@default null
|
|
@@ -612,7 +613,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
612
613
|
/**
|
|
613
614
|
The delegate responsible for handling selection changes. This property
|
|
614
615
|
will be either the delegate, content, or the collection view itself,
|
|
615
|
-
whichever implements the SC.CollectionViewDelegate mixin.
|
|
616
|
+
whichever implements the `SC.CollectionViewDelegate` mixin.
|
|
616
617
|
|
|
617
618
|
@field
|
|
618
619
|
@type Object
|
|
@@ -638,8 +639,8 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
638
639
|
|
|
639
640
|
|
|
640
641
|
/** @private
|
|
641
|
-
A cache of the contentGroupIndexes value returned by the delegate. This
|
|
642
|
-
is frequently accessed and usually involves creating an SC.IndexSet
|
|
642
|
+
A cache of the `contentGroupIndexes` value returned by the delegate. This
|
|
643
|
+
is frequently accessed and usually involves creating an `SC.IndexSet`
|
|
643
644
|
object, so it's worthwhile to cache.
|
|
644
645
|
*/
|
|
645
646
|
_contentGroupIndexes: function() {
|
|
@@ -655,7 +656,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
655
656
|
Called whenever the content array or an item in the content array or a
|
|
656
657
|
property on an item in the content array changes. Reloads the appropriate
|
|
657
658
|
item view when the content array itself changes or calls
|
|
658
|
-
contentPropertyDidChange() if a property changes.
|
|
659
|
+
`contentPropertyDidChange()` if a property changes.
|
|
659
660
|
|
|
660
661
|
Normally you will not call this method directly though you may override
|
|
661
662
|
it if you need to change the way changes to observed ranges are handled.
|
|
@@ -677,7 +678,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
677
678
|
|
|
678
679
|
/**
|
|
679
680
|
Called whenever a property on an item in the content array changes. This
|
|
680
|
-
is only called if you have set observesContentProperties to YES
|
|
681
|
+
is only called if you have set `observesContentProperties` to `YES`.
|
|
681
682
|
|
|
682
683
|
Override this property if you want to do some custom work whenever a
|
|
683
684
|
property on a content object changes.
|
|
@@ -692,7 +693,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
692
693
|
contentPropertyDidChange: function(target, key, indexes) {},
|
|
693
694
|
|
|
694
695
|
/**
|
|
695
|
-
Called whenever the view needs to updates
|
|
696
|
+
Called whenever the view needs to updates its `contentRangeObserver` to
|
|
696
697
|
reflect the current nowShowing index set. You will not usually call this
|
|
697
698
|
method yourself but you may override it if you need to provide some
|
|
698
699
|
custom range observer behavior.
|
|
@@ -703,10 +704,10 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
703
704
|
this method should udpate it.
|
|
704
705
|
|
|
705
706
|
When you create a new range observer, the oberver must eventually call
|
|
706
|
-
contentRangeDidChange() for the collection view to function properly.
|
|
707
|
+
`contentRangeDidChange()` for the collection view to function properly.
|
|
707
708
|
|
|
708
709
|
If you override this method you probably also need to override
|
|
709
|
-
destroyRangeObserver() to cleanup any existing range observer.
|
|
710
|
+
`destroyRangeObserver()` to cleanup any existing range observer.
|
|
710
711
|
|
|
711
712
|
@returns {void}
|
|
712
713
|
*/
|
|
@@ -734,7 +735,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
734
735
|
provide your own range observer behavior.
|
|
735
736
|
|
|
736
737
|
Note that if you override this method you should probably also override
|
|
737
|
-
updateRangeObserver() to create or update a range oberver as needed.
|
|
738
|
+
`updateRangeObserver()` to create or update a range oberver as needed.
|
|
738
739
|
|
|
739
740
|
@returns {void}
|
|
740
741
|
*/
|
|
@@ -1562,7 +1563,7 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
1562
1563
|
/**
|
|
1563
1564
|
Primtive to remove the indexes from the selection.
|
|
1564
1565
|
|
|
1565
|
-
@param {Number|SC.IndexSet} indexes index or indexes to
|
|
1566
|
+
@param {Number|SC.IndexSet} indexes index or indexes to deselect
|
|
1566
1567
|
@returns {SC.CollectionView} receiver
|
|
1567
1568
|
*/
|
|
1568
1569
|
deselect: function(indexes) {
|
|
@@ -1909,7 +1910,17 @@ SC.CollectionView = SC.View.extend(SC.CollectionViewDelegate, SC.CollectionConte
|
|
|
1909
1910
|
this.select(sel, NO) ;
|
|
1910
1911
|
return YES ;
|
|
1911
1912
|
},
|
|
1912
|
-
|
|
1913
|
+
|
|
1914
|
+
/** @private
|
|
1915
|
+
Remove selection of any selected items.
|
|
1916
|
+
*/
|
|
1917
|
+
deselectAll: function() {
|
|
1918
|
+
var content = this.get('content'),
|
|
1919
|
+
sel = content ? SC.IndexSet.create(0, content.get('length')) : null;
|
|
1920
|
+
this.deselect(sel, NO) ;
|
|
1921
|
+
return YES ;
|
|
1922
|
+
},
|
|
1923
|
+
|
|
1913
1924
|
/** @private
|
|
1914
1925
|
Handle delete keyboard event.
|
|
1915
1926
|
*/
|