sproutcore 1.5.0 → 1.6.0.beta.1
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 +8 -1
- data/Rakefile +16 -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 +13 -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/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/panes/pane.js +3 -3
- 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/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_collection.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
- 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/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/lib/sproutcore.rb +2 -9
- 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/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/frame.js +0 -0
- data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.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/handlers/XMLDOC.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/lib/JSDOC.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/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/app/test.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/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/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
- data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
- metadata +176 -202
- 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
@@ -10,7 +10,7 @@ sc_require('views/button');
|
|
10
10
|
/**
|
11
11
|
@class
|
12
12
|
|
13
|
-
SelectButtonView has a functionality similar to that of SelectField
|
13
|
+
SelectButtonView has a functionality similar to that of `SelectField`
|
14
14
|
|
15
15
|
Clicking the SelectButtonView button displays a menu pane with a
|
16
16
|
list of items. The selected item will be displayed on the button.
|
@@ -43,7 +43,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
43
43
|
/**
|
44
44
|
If you set this to a non-null value, then the name shown for each
|
45
45
|
menu item will be pulled from the object using the named property.
|
46
|
-
if this is null
|
46
|
+
if this is `null`, the collection objects themselves will be used.
|
47
47
|
|
48
48
|
@type String
|
49
49
|
@default: null
|
@@ -52,7 +52,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
52
52
|
|
53
53
|
/**
|
54
54
|
If you set this to a non-null value, then the value of this key will
|
55
|
-
be used to sort the objects. If this is not set, then nameKey will
|
55
|
+
be used to sort the objects. If this is not set, then `nameKey` will
|
56
56
|
be used.
|
57
57
|
|
58
58
|
@property String}
|
@@ -111,7 +111,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
111
111
|
classNames: ['select-button'],
|
112
112
|
|
113
113
|
/**
|
114
|
-
Menu attached to the selectButton
|
114
|
+
Menu attached to the `selectButton`
|
115
115
|
|
116
116
|
@type SC.View
|
117
117
|
@default SC.MenuView
|
@@ -128,7 +128,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
128
128
|
|
129
129
|
/**
|
130
130
|
Property to set the index of the selected menu item. This in turn
|
131
|
-
is used to calculate the preferMatrix
|
131
|
+
is used to calculate the `preferMatrix`.
|
132
132
|
|
133
133
|
@type Number
|
134
134
|
@default null
|
@@ -144,7 +144,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
144
144
|
value: null,
|
145
145
|
|
146
146
|
/**
|
147
|
-
if this property is set to
|
147
|
+
if this property is set to `YES`, a checbox is shown next to the
|
148
148
|
selected menu item.
|
149
149
|
|
150
150
|
@type Boolean
|
@@ -161,19 +161,19 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
161
161
|
|
162
162
|
/** @private
|
163
163
|
Default value of the select button.
|
164
|
-
|
164
|
+
This will be the first item from the menu item list.
|
165
165
|
*/
|
166
166
|
_defaultVal: null,
|
167
167
|
|
168
168
|
/** @private
|
169
169
|
Default title of the select button.
|
170
|
-
|
170
|
+
This will be the title corresponding to the _defaultVal.
|
171
171
|
*/
|
172
172
|
_defaultTitle: null,
|
173
173
|
|
174
174
|
/** @private
|
175
175
|
Default icon of the select button.
|
176
|
-
|
176
|
+
This will be the icon corresponding to the _defaultVal.
|
177
177
|
*/
|
178
178
|
_defaultIcon: null,
|
179
179
|
|
@@ -194,8 +194,8 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
194
194
|
/**
|
195
195
|
Prefer matrix to position the select button menu such that the
|
196
196
|
selected item for the menu item will appear aligned to the
|
197
|
-
the button. The value at the second index(0) changes based on the
|
198
|
-
postion(index) of the menu item in the menu pane.
|
197
|
+
the button. The value at the second `index(0)` changes based on the
|
198
|
+
`postion(index)` of the menu item in the menu pane.
|
199
199
|
|
200
200
|
@type Array
|
201
201
|
@default null
|
@@ -204,8 +204,8 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
204
204
|
|
205
205
|
/**
|
206
206
|
Width of the sprite image that gets applied due to the theme.
|
207
|
-
|
208
|
-
|
207
|
+
This has to be accounted for while calculating the actual
|
208
|
+
width of the button
|
209
209
|
|
210
210
|
@type Number
|
211
211
|
@default 28
|
@@ -218,7 +218,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
218
218
|
isActiveBinding: '*menu.isVisibleInWindow',
|
219
219
|
|
220
220
|
/** @private
|
221
|
-
If this property is set to
|
221
|
+
If this property is set to `YES`, the menu pane will be positioned
|
222
222
|
below the anchor.
|
223
223
|
*/
|
224
224
|
isDefaultPosition: NO,
|
@@ -270,7 +270,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
270
270
|
|
271
271
|
/**
|
272
272
|
This is a property to enable/disable focus rings in buttons.
|
273
|
-
For select_button we are making it a default.
|
273
|
+
For `select_button` we are making it a default.
|
274
274
|
|
275
275
|
@type Boolean
|
276
276
|
@default YES
|
@@ -305,7 +305,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
305
305
|
|
306
306
|
/**
|
307
307
|
override this method to implement your own sorting of the menu. By
|
308
|
-
default, menu items are sorted using the value shown or the sortKey
|
308
|
+
default, menu items are sorted using the value shown or the `sortKey`
|
309
309
|
|
310
310
|
@param {SC.Array} objects the unsorted array of objects to display.
|
311
311
|
@returns sorted array of objects
|
@@ -650,28 +650,28 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
650
650
|
switch (this.get('controlSize')) {
|
651
651
|
case SC.TINY_CONTROL_SIZE:
|
652
652
|
controlSizeTuning = SC.SelectButtonView.TINY_OFFSET_Y;
|
653
|
-
customMenuItemHeight = SC.
|
654
|
-
customSeparatorHeight = SC.
|
653
|
+
customMenuItemHeight = SC.SelectButtonView.TINY_OFFSET_Y;
|
654
|
+
customSeparatorHeight = SC.SelectButtonView.TINY_POPUP_MENU_WIDTH_OFFSET;
|
655
655
|
break;
|
656
656
|
case SC.SMALL_CONTROL_SIZE:
|
657
657
|
controlSizeTuning = SC.SelectButtonView.SMALL_OFFSET_Y;
|
658
|
-
customMenuItemHeight = SC.
|
659
|
-
customSeparatorHeight = SC.
|
658
|
+
customMenuItemHeight = SC.SelectButtonView.SMALL_OFFSET_Y;
|
659
|
+
customSeparatorHeight = SC.SelectButtonView.SMALL_POPUP_MENU_WIDTH_OFFSET;
|
660
660
|
break;
|
661
661
|
case SC.REGULAR_CONTROL_SIZE:
|
662
662
|
controlSizeTuning = SC.SelectButtonView.REGULAR_OFFSET_Y;
|
663
|
-
customMenuItemHeight = SC.
|
664
|
-
customSeparatorHeight = SC.
|
663
|
+
customMenuItemHeight = SC.SelectButtonView.REGULAR_OFFSET_Y;
|
664
|
+
customSeparatorHeight = SC.SelectButtonView.REGULAR_POPUP_MENU_WIDTH_OFFSET;
|
665
665
|
break;
|
666
666
|
case SC.LARGE_CONTROL_SIZE:
|
667
667
|
controlSizeTuning = SC.SelectButtonView.LARGE_OFFSET_Y;
|
668
|
-
customMenuItemHeight = SC.
|
669
|
-
customSeparatorHeight = SC.
|
668
|
+
customMenuItemHeight = SC.SelectButtonView.LARGE_OFFSET_Y;
|
669
|
+
customSeparatorHeight = SC.SelectButtonView.LARGE_POPUP_MENU_WIDTH_OFFSET;
|
670
670
|
break;
|
671
671
|
case SC.HUGE_CONTROL_SIZE:
|
672
672
|
controlSizeTuning = SC.SelectButtonView.HUGE_OFFSET_Y;
|
673
|
-
customMenuItemHeight = SC.
|
674
|
-
customSeparatorHeight = SC.
|
673
|
+
customMenuItemHeight = SC.SelectButtonView.HUGE_OFFSET_Y;
|
674
|
+
customSeparatorHeight = SC.SelectButtonView.HUGE_POPUP_MENU_WIDTH_OFFSET;
|
675
675
|
break;
|
676
676
|
}
|
677
677
|
|
@@ -735,8 +735,8 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
735
735
|
},
|
736
736
|
|
737
737
|
/** @private
|
738
|
-
Because we responded YES to the mouseDown event, we have responsibility
|
739
|
-
for handling the corresponding mouseUp event.
|
738
|
+
Because we responded `YES` to the mouseDown event, we have responsibility
|
739
|
+
for handling the corresponding `mouseUp` event.
|
740
740
|
|
741
741
|
However, the user may click on this button, then drag the mouse down to a
|
742
742
|
menu item, and release the mouse over the menu item. We therefore need to
|
@@ -762,7 +762,7 @@ SC.SelectButtonView = SC.ButtonView.extend(
|
|
762
762
|
|
763
763
|
if (targetMenuItem && targetMenuItem.get('mouseHasEntered')) {
|
764
764
|
// Have the menu item perform its action.
|
765
|
-
// If the menu returns NO
|
765
|
+
// If the menu returns `NO`, it had no action to
|
766
766
|
// perform, so we should close the menu immediately.
|
767
767
|
if (!targetMenuItem.performAction()) menu.remove();
|
768
768
|
} else if (!touch && (timestamp - previousTimestamp > SC.ButtonView.CLICK_AND_HOLD_DELAY)) {
|
@@ -104,7 +104,7 @@ SC.SheetPane = SC.PanelPane.extend(
|
|
104
104
|
@returns {SC.SheetPane} receiver
|
105
105
|
*/
|
106
106
|
remove: function() {
|
107
|
-
// We want the functionality of SC.PanelPane.remove()
|
107
|
+
// We want the functionality of `SC.PanelPane.remove()`, but we only want it once the animation is complete.
|
108
108
|
// Store the reference to the superclass function, and it call it after the transition is complete.
|
109
109
|
var that = this, args = arguments;
|
110
110
|
this.invokeLater(function() { args.callee.base.apply(that, args) ;}, this.transitionDuration);
|
@@ -22,7 +22,7 @@ SC.DragSource = {
|
|
22
22
|
specified target. If you don't care about the target, just return a
|
23
23
|
constant value.
|
24
24
|
|
25
|
-
The default implementation returns SC.DRAG_NONE
|
25
|
+
The default implementation returns `SC.DRAG_NONE`
|
26
26
|
|
27
27
|
@param {SC.View} dropTarget The proposed target of the drop.
|
28
28
|
@param {SC.Drag} drag The SC.Drag instance managing this drag.
|
@@ -32,7 +32,7 @@ SC.DragSource = {
|
|
32
32
|
},
|
33
33
|
|
34
34
|
/**
|
35
|
-
If this property is set to NO or is not implemented, then the user may
|
35
|
+
If this property is set to `NO` or is not implemented, then the user may
|
36
36
|
modify the drag operation by changing the modifier keys they have
|
37
37
|
pressed.
|
38
38
|
|
@@ -55,7 +55,7 @@ SC.DragSource = {
|
|
55
55
|
|
56
56
|
/**
|
57
57
|
This method is called whenever the drag image is moved. This is
|
58
|
-
similar to the dragUpdated() method called on drop targets.
|
58
|
+
similar to the `dragUpdated()` method called on drop targets.
|
59
59
|
|
60
60
|
@param {SC.Drag} drag The Drag instance managing this drag.
|
61
61
|
@param {Point} loc The point in *window* coordinates where the drag
|
@@ -67,7 +67,7 @@ SC.DropTarget = {
|
|
67
67
|
|
68
68
|
/**
|
69
69
|
Called when the drag first enters the droppable area, if it returns a
|
70
|
-
drag operations other than SC.DRAG_NONE
|
70
|
+
drag operations other than `SC.DRAG_NONE`.
|
71
71
|
|
72
72
|
The default implementation does nothing.
|
73
73
|
|
@@ -132,7 +132,7 @@ SC.DropTarget = {
|
|
132
132
|
droppable area, the drag will latch onto the deepest view that returns one
|
133
133
|
or more available operations.
|
134
134
|
|
135
|
-
The default implementation returns SC.DRAG_NONE
|
135
|
+
The default implementation returns `SC.DRAG_NONE`
|
136
136
|
|
137
137
|
@param {SC.Drag} drag The current drag object
|
138
138
|
@param {SC.Event} evt The most recent mouse move event. Use to get
|
@@ -153,7 +153,7 @@ SC.DropTarget = {
|
|
153
153
|
perform fine-grained checks on the drop location, for example.
|
154
154
|
Return true to accept the drop operation.
|
155
155
|
|
156
|
-
The default implementation returns YES
|
156
|
+
The default implementation returns `YES`.
|
157
157
|
|
158
158
|
@param {SC.Drag} drag The drag instance managing this drag
|
159
159
|
@param {DragOp} op The proposed drag operation. A drag constant
|
@@ -168,12 +168,12 @@ SC.DropTarget = {
|
|
168
168
|
Called to actually perform the drag operation.
|
169
169
|
|
170
170
|
Overide this method to actually perform the drag operation. This method
|
171
|
-
is only called if you returned YES in acceptDragOperation()
|
171
|
+
is only called if you returned `YES` in `acceptDragOperation()`.
|
172
172
|
|
173
|
-
Return the operation that was actually performed or SC.DRAG_NONE if the
|
173
|
+
Return the operation that was actually performed or `SC.DRAG_NONE` if the
|
174
174
|
operation was aborted.
|
175
175
|
|
176
|
-
The default implementation returns SC.DRAG_NONE
|
176
|
+
The default implementation returns `SC.DRAG_NONE`
|
177
177
|
|
178
178
|
@param {SC.Drag} drag The drag instance managing this drag
|
179
179
|
@param {DragOp} op The proposed drag operation. A drag constant.
|
@@ -12,7 +12,7 @@
|
|
12
12
|
specific responder method, and a method with the correct signature to your
|
13
13
|
class.
|
14
14
|
|
15
|
-
DO NOT INCLUDE THIS MIXIN
|
15
|
+
**DO NOT INCLUDE THIS MIXIN**.
|
16
16
|
|
17
17
|
If you try and include this mixin, an error will be raised on startup.
|
18
18
|
|
@@ -26,7 +26,7 @@ SC.ResponderProtocol = {
|
|
26
26
|
//
|
27
27
|
|
28
28
|
/**
|
29
|
-
Called when the mouse is pressed. You must return YES to recieve
|
29
|
+
Called when the mouse is pressed. You must return `YES` to recieve
|
30
30
|
mouseDragged and mouseUp in the future.
|
31
31
|
|
32
32
|
@param evt {SC.Event} the mousedown event
|
@@ -43,7 +43,7 @@ SC.ResponderProtocol = {
|
|
43
43
|
mouseUp: function(evt) {},
|
44
44
|
|
45
45
|
/**
|
46
|
-
Called when the mouse is dragged, after responding YES to a previous mouseDown
|
46
|
+
Called when the mouse is dragged, after responding `YES` to a previous `mouseDown`:
|
47
47
|
call.
|
48
48
|
|
49
49
|
@param evt {SC.Event} the mousemove event
|
@@ -80,7 +80,7 @@ SC.ResponderProtocol = {
|
|
80
80
|
|
81
81
|
|
82
82
|
/**
|
83
|
-
Called when a selectstart event in IE is triggered. ONLY IE
|
83
|
+
Called when a selectstart event in IE is triggered. **ONLY IE**
|
84
84
|
We use it to disable IE accelerators and text selection
|
85
85
|
|
86
86
|
@param evt {SC.Event} the selectstart event
|
@@ -18,12 +18,12 @@
|
|
18
18
|
--------------------------
|
19
19
|
Expects these properties on the data source:
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
- `isSelected`
|
22
|
+
- `isActive`
|
23
|
+
- `isEnabled`
|
24
|
+
- `title`
|
25
25
|
|
26
|
-
Optional parameters include all parameters for the labelRenderDelegate
|
26
|
+
Optional parameters include all parameters for the `labelRenderDelegate`.
|
27
27
|
|
28
28
|
*/
|
29
29
|
SC.BaseTheme.checkboxRenderDelegate = SC.RenderDelegate.create({
|
@@ -9,7 +9,7 @@
|
|
9
9
|
/**
|
10
10
|
Border between the two panes of the MasterDetail.
|
11
11
|
|
12
|
-
Note that the border does NOT include any space on the sides. Space
|
12
|
+
Note that the border does *NOT* include any space on the sides. Space
|
13
13
|
on left or right sides of MasterDetail, if any, should be handled by
|
14
14
|
its layout.
|
15
15
|
*/
|
@@ -12,14 +12,14 @@
|
|
12
12
|
--------------------------
|
13
13
|
Expects these properties on the data source:
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
- `isIndeterminate`
|
16
|
+
- `isRunning`
|
17
|
+
- `isEnabled`
|
18
|
+
- `value`
|
19
19
|
|
20
20
|
Theme Constants
|
21
21
|
-------------------------------------
|
22
|
-
Ace's progressRenderDelegate's rendering process is not affected by
|
22
|
+
Ace's `progressRenderDelegate`'s rendering process is not affected by
|
23
23
|
any theme constants.
|
24
24
|
*/
|
25
25
|
SC.BaseTheme.progressRenderDelegate = SC.RenderDelegate.create({
|
@@ -12,17 +12,17 @@
|
|
12
12
|
Expected Properties
|
13
13
|
-----------------------------------
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
- `isSelected`
|
16
|
+
- `isActive`
|
17
|
+
- `isMixed`
|
18
|
+
- `isEnabled`
|
19
|
+
- `title`
|
20
20
|
|
21
21
|
Optional Properties
|
22
22
|
-----------------------------------
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
- `width` -- an optional width of the radio button
|
25
|
+
- `labelRenderDelegate` properties
|
26
26
|
|
27
27
|
*/
|
28
28
|
SC.BaseTheme.radioRenderDelegate = SC.RenderDelegate.create({
|
@@ -13,9 +13,9 @@
|
|
13
13
|
Expects Properties
|
14
14
|
-------------------------------
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
- `items` -- a collection of data sources for radioRenderDelegates
|
17
|
+
- `layoutDirection`
|
18
|
+
- `isEnabled`
|
19
19
|
|
20
20
|
Extended API
|
21
21
|
--------------------------------
|
@@ -12,8 +12,8 @@
|
|
12
12
|
-------------------------
|
13
13
|
Requires the following parameters:
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
- `value` -- a value from 0 to 1.
|
16
|
+
- `frame` -- containing the frame in which the slider is being drawn.
|
17
17
|
*/
|
18
18
|
|
19
19
|
SC.BaseTheme.sliderRenderDelegate = SC.RenderDelegate.create({
|
@@ -37,14 +37,16 @@ SC.BaseTheme.sliderRenderDelegate = SC.RenderDelegate.create({
|
|
37
37
|
|
38
38
|
context = context.begin('span').addClass('track');
|
39
39
|
this.includeSlices(dataSource, context, SC.THREE_SLICE);
|
40
|
-
context = context.end();
|
41
|
-
|
42
40
|
context.push(
|
43
|
-
'<img src="', blankImage,
|
41
|
+
'<img src="', blankImage,
|
44
42
|
'" class="sc-handle" style="left: ', dataSource.get('value'), '%" />',
|
45
43
|
'</span>'
|
46
44
|
);
|
47
45
|
|
46
|
+
context = context.end();
|
47
|
+
|
48
|
+
|
49
|
+
|
48
50
|
dataSource.get('renderState')._cachedHandle = null;
|
49
51
|
},
|
50
52
|
|
@@ -74,43 +74,43 @@ SC.View.reopen(
|
|
74
74
|
manages the mouse/touch events and coordinating with droppable targets until the
|
75
75
|
user releases the mouse button.
|
76
76
|
|
77
|
-
To initiate a drag, you should call SC.Drag.start() with the options below
|
77
|
+
To initiate a drag, you should call `SC.Drag.start()` with the options below
|
78
78
|
specified in a hash. Pass the ones you need to get the drag you want:
|
79
79
|
|
80
|
-
-
|
80
|
+
- `event` -- *(req)* The mouse event/touch that triggered the drag. This will be used
|
81
81
|
to position the element.
|
82
82
|
|
83
|
-
-
|
83
|
+
- `source` -- *(req)* The drag source object that should be consulted during
|
84
84
|
the drag operations. This is usually the container view that initiated
|
85
85
|
the drag.
|
86
86
|
|
87
|
-
-
|
87
|
+
- `dragView` -- Optional view that will be used as the source image for the
|
88
88
|
drag. The drag operation will clone the DOM elements for this view and
|
89
|
-
parent them under the drag pane, which has the class name
|
89
|
+
parent them under the drag pane, which has the class name `sc-ghost-view`.
|
90
90
|
The drag view is not moved from its original location during a drag.
|
91
91
|
If the dragView is not provided, the source is used as dragView.
|
92
92
|
|
93
|
-
-
|
94
|
-
dragView will not be hidden. Set to YES to make it appear that the
|
95
|
-
dragView itself is being dragged around.
|
93
|
+
- `ghost` -- `YES` | `NO` If `NO`, the drag view image will show, but the source
|
94
|
+
`dragView` will not be hidden. Set to `YES` to make it appear that the
|
95
|
+
`dragView` itself is being dragged around.
|
96
96
|
|
97
|
-
-
|
98
|
-
dragView will slide back to its source origin.
|
97
|
+
- `slideBack` -- `YES` | `NO` If `YES` and the drag operation is cancelled, the
|
98
|
+
`dragView` will slide back to its source origin.
|
99
99
|
|
100
|
-
-
|
100
|
+
- `origin` -- If passed, this will be used as the origin point for the
|
101
101
|
ghostView when it slides back. You normally do not need to pass this
|
102
102
|
unless the ghost view does not appear in the main UI.
|
103
103
|
|
104
|
-
-
|
104
|
+
- `data` -- Optional hash of data types and values. You can use this to pass
|
105
105
|
a static set of data instead of providing a dataSource. If you provide
|
106
106
|
a dataSource, it will be used instead.
|
107
107
|
|
108
|
-
-
|
108
|
+
- `dataSource` -- Optional object that will provide the data for the drag to
|
109
109
|
be consumed by the drop target. If you do not pass this parameter or the
|
110
110
|
data hash, then the source object will be used if it implements the
|
111
111
|
SC.DragDataSource protocol.
|
112
112
|
|
113
|
-
-
|
113
|
+
- `anchorView` -- if you pass this optional view, then the drag will only be
|
114
114
|
allowed to happen within this view. The ghostView will actually be added
|
115
115
|
as a child of this view during the drag. Normally the anchorView is the
|
116
116
|
window.
|
@@ -138,7 +138,7 @@ SC.Drag = SC.Object.extend(
|
|
138
138
|
ghostView: null,
|
139
139
|
|
140
140
|
/**
|
141
|
-
If YES
|
141
|
+
If `YES`, then the `ghostView` will acts like a cursor and attach directly
|
142
142
|
to the mouse/touch location.
|
143
143
|
|
144
144
|
@readOnly
|
@@ -147,12 +147,12 @@ SC.Drag = SC.Object.extend(
|
|
147
147
|
ghostActsLikeCursor: NO,
|
148
148
|
|
149
149
|
/**
|
150
|
-
The view that was used as the source of the ghostView
|
150
|
+
The view that was used as the source of the `ghostView`.
|
151
151
|
|
152
152
|
The drag view is not moved from its original location during a drag.
|
153
153
|
Instead, the DOM content of the view is cloned and managed by the
|
154
154
|
ghostView. If you want to visually indicate that the view is being
|
155
|
-
moved, you should set ghost to YES
|
155
|
+
moved, you should set ghost to `YES`.
|
156
156
|
If dragView is not provided the source is used instead.
|
157
157
|
|
158
158
|
@readOnly
|
@@ -161,7 +161,7 @@ SC.Drag = SC.Object.extend(
|
|
161
161
|
dragView: null,
|
162
162
|
|
163
163
|
/**
|
164
|
-
If YES
|
164
|
+
If `YES`, the `dragView` is automatically hidden while dragging around the
|
165
165
|
ghost.
|
166
166
|
|
167
167
|
@readOnly
|
@@ -170,7 +170,7 @@ SC.Drag = SC.Object.extend(
|
|
170
170
|
ghost: YES,
|
171
171
|
|
172
172
|
/**
|
173
|
-
If NO
|
173
|
+
If `NO`, the source will not be copied, clone, no ghost view will get created,
|
174
174
|
and it won't be moved.
|
175
175
|
|
176
176
|
@type Boolean
|
@@ -178,7 +178,7 @@ SC.Drag = SC.Object.extend(
|
|
178
178
|
sourceIsDraggable: YES,
|
179
179
|
|
180
180
|
/**
|
181
|
-
If YES
|
181
|
+
If `YES`, then the `ghostView` will slide back to its original location if
|
182
182
|
drag is cancelled.
|
183
183
|
|
184
184
|
@type Boolean
|
@@ -186,7 +186,7 @@ SC.Drag = SC.Object.extend(
|
|
186
186
|
slideBack: YES,
|
187
187
|
|
188
188
|
/**
|
189
|
-
The origin to slide back to in the coordinate of the dragView's
|
189
|
+
The origin to slide back to in the coordinate of the `dragView`'s
|
190
190
|
containerView.
|
191
191
|
|
192
192
|
@type Point
|
@@ -196,7 +196,7 @@ SC.Drag = SC.Object.extend(
|
|
196
196
|
/**
|
197
197
|
The current location of the mouse pointer in window coordinates. This is
|
198
198
|
updated as long as the mouse button is pressed or touch is active. Drop targets are
|
199
|
-
encouraged to update this property in their dragUpdated() method
|
199
|
+
encouraged to update this property in their `dragUpdated()` method
|
200
200
|
implementations.
|
201
201
|
|
202
202
|
The ghostView will be positioned at this location.
|
@@ -219,7 +219,7 @@ SC.Drag = SC.Object.extend(
|
|
219
219
|
types so that drop targets can detect if they can accept your drag data.
|
220
220
|
|
221
221
|
If you are implementing a drop target, you should inspect this property
|
222
|
-
on your dragEntered() and prepareForDragOperation() methods to determine
|
222
|
+
on your `dragEntered()` and `prepareForDragOperation()` methods to determine
|
223
223
|
if you can handle any of the data types offered up by the drag source.
|
224
224
|
|
225
225
|
@type Array
|
@@ -257,9 +257,9 @@ SC.Drag = SC.Object.extend(
|
|
257
257
|
},
|
258
258
|
|
259
259
|
/**
|
260
|
-
Retrieve the data for the specified dataType from the drag source.
|
260
|
+
Retrieve the data for the specified `dataType` from the drag source.
|
261
261
|
|
262
|
-
Drop targets can use this method during their performDragOperation()
|
262
|
+
Drop targets can use this method during their `performDragOperation()`
|
263
263
|
method to retrieve the actual data provided by the drag data source. This
|
264
264
|
data may be generated dynamically depending on the data source.
|
265
265
|
|
@@ -290,16 +290,16 @@ SC.Drag = SC.Object.extend(
|
|
290
290
|
/**
|
291
291
|
Optional object used to provide the data for the drag.
|
292
292
|
|
293
|
-
Drag source can designate a dataSource object to generate the data for
|
293
|
+
Drag source can designate a `dataSource` object to generate the data for
|
294
294
|
a drag dynamically. The data source can and often is the drag source
|
295
295
|
object itself.
|
296
296
|
|
297
|
-
Data Source objects must comply with the SC.DragDataSource interface. If
|
297
|
+
Data Source objects must comply with the `SC.DragDataSource` interface. If
|
298
298
|
you do not want to implement this interface, you can provide the data
|
299
299
|
directly with the data property.
|
300
300
|
|
301
301
|
If you are implementing a drop target, use the dataTypes property and
|
302
|
-
dataForTypes() method to access data instead of working directly with
|
302
|
+
`dataForTypes()` method to access data instead of working directly with
|
303
303
|
these properties.
|
304
304
|
|
305
305
|
@readOnly
|
@@ -313,7 +313,7 @@ SC.Drag = SC.Object.extend(
|
|
313
313
|
Drag sources can provide a hash of data when the drag begins instead of
|
314
314
|
specifying an actual dataSource. The data is stored in this property.
|
315
315
|
If you are implementing a drop target, use the dataTypes property and
|
316
|
-
dataForTypes() method to access data instead of working directly with
|
316
|
+
`dataForTypes()` method to access data instead of working directly with
|
317
317
|
these properties.
|
318
318
|
|
319
319
|
@readOnly
|
@@ -322,7 +322,7 @@ SC.Drag = SC.Object.extend(
|
|
322
322
|
data: null,
|
323
323
|
|
324
324
|
/**
|
325
|
-
Returns the currently allowed dragOperations for the drag. This will be
|
325
|
+
Returns the currently allowed `dragOperations` for the drag. This will be
|
326
326
|
set just before any callbacks are invoked on a drop target. The drag
|
327
327
|
source is given an opportunity to set these operations.
|
328
328
|
|
@@ -973,7 +973,7 @@ SC.Drag.mixin(
|
|
973
973
|
Register the view object as a drop target.
|
974
974
|
|
975
975
|
This method is called automatically whenever a view is created with the
|
976
|
-
isDropTarget property set to YES
|
976
|
+
isDropTarget property set to `YES`. You generally will not need to call it
|
977
977
|
yourself.
|
978
978
|
|
979
979
|
@param {SC.View} target a view implementing the SC.DropTarget protocol
|