sproutcore 1.4.5-java → 1.5.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -0
- data/CHANGELOG +126 -0
- data/README.txt +25 -0
- data/VERSION.yml +2 -2
- data/bin/sc-build +1 -1
- data/bin/sc-build-number +1 -1
- data/bin/sc-docs +1 -1
- data/bin/sc-gen +1 -1
- data/bin/sc-init +1 -1
- data/bin/sc-manifest +1 -1
- data/bin/sc-server +1 -1
- data/bin/sproutcore +1 -1
- data/lib/Buildfile +14 -5
- data/lib/buildtasks/build.rake +33 -17
- data/lib/buildtasks/manifest.rake +381 -103
- data/lib/buildtasks/target.rake +1 -0
- data/lib/doc_templates/sproutcore/index.tmpl +18 -4
- data/lib/doc_templates/sproutcore/publish.js +1 -1
- data/lib/frameworks/sproutcore/Buildfile +36 -33
- data/lib/frameworks/sproutcore/CHANGELOG.md +414 -0
- data/lib/frameworks/sproutcore/README.md +1 -0
- data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/alert.js +39 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +125 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +36 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/split.js +74 -0
- data/lib/frameworks/sproutcore/apps/test_controls/core.js +29 -0
- data/lib/frameworks/sproutcore/apps/test_controls/main.js +14 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +158 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +85 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +40 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +60 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +151 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/panels_page.js +62 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +33 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +55 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +77 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +99 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +61 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +54 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/split_page.js +141 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +50 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +53 -0
- data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +65 -0
- data/lib/frameworks/sproutcore/apps/test_controls/theme.js +34 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/detail.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/core.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +6 -6
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/main.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/detail.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/source.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/target.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/targets.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/tests.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/models/target.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/models/test.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/tests/views/offset_checkbox.js +1 -1
- data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +1 -1
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +10 -4
- data/lib/frameworks/sproutcore/apps/welcome/core.js +1 -1
- data/lib/frameworks/sproutcore/apps/{greenhouse → welcome}/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +24 -6
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +37 -47
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/strings.js +1 -1
- data/lib/frameworks/sproutcore/apps/welcome/main.js +1 -1
- data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +1 -1
- data/lib/frameworks/sproutcore/design/{SproutCore Datastore Design.graffle → Sproutcore_DatastoreDesign.graffle}/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Datastore Design.graffle → Sproutcore_DatastoreDesign.graffle}/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Datastore Design.graffle → Sproutcore_DatastoreDesign.graffle}/data.plist +0 -0
- data/lib/frameworks/sproutcore/{apps/docs/design/Doc Viewer.graffle → design/Sproutcore_DatastoreDesign.graffle}/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Design Template.graffle → Sproutcore_Design_Template.graffle}/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Design Template.graffle → Sproutcore_Design_Template.graffle}/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Design Template.graffle → Sproutcore_Design_Template.graffle}/data.plist +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Datastore Design.graffle → Sproutcore_Design_Template.graffle}/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/data.plist +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image10.png +0 -0
- data/lib/frameworks/sproutcore/{apps/docs/design/Doc Viewer.graffle → design/TestRunner_Design.graffle}/image11.png +0 -0
- data/lib/frameworks/sproutcore/{apps/docs/design/Doc Viewer.graffle → design/TestRunner_Design.graffle}/image13.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image15.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image16.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image17.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image18.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image19.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image22.tiff +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image23.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image24.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image25.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image30.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image31.png +0 -0
- data/lib/frameworks/sproutcore/design/{SproutCore Design Template.graffle → TestRunner_Design.graffle}/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner Design.graffle → TestRunner_Design.graffle}/image9.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +611 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/system/response.js +550 -0
- data/lib/frameworks/sproutcore/frameworks/ajax/tests/system/request.js +276 -0
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +57 -45
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +10 -5
- data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +219 -23
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +16 -15
- data/lib/frameworks/sproutcore/frameworks/bootstrap/tests/system/browser.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +540 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +342 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/function.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +293 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/localization.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/view.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/object.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/run_loop.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/string.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/responder_context.js +268 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/selection_support.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/keyboard.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/layout.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/main.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/manipulation.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +670 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/visibility.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/core.css +378 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/resources/view.css +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/bindable_span.js +164 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/browser.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/builder.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/core_query.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/cursor.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/datetime.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +991 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +289 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/page.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +419 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/ready.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1063 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/responder.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +2174 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/selection_set.js +693 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +397 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +165 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/theme.js +316 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/timer.js +548 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils/rect.js +104 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +301 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +344 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/string.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/checkbox_support.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/panes/template.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/builder.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/locale.js +140 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +288 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/theme.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +209 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +224 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/core.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +919 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +382 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +248 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/init.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +217 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +146 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +745 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render.js +203 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +213 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +242 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +1524 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +181 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/base.js +3 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/cursor.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/enabled.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/keyboard.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1115 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout_style.js +624 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/manipulation.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/theming.js +400 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/touch.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/visibility.js +118 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/english.lproj/strings.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/target.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/test.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +17 -21
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +322 -132
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/json.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +44 -61
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +16 -100
- data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +17 -24
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +8 -8
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +20 -21
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +457 -216
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +204 -94
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +17 -19
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +150 -115
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +148 -110
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +51 -26
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +160 -158
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +298 -204
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +419 -233
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +7 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +56 -18
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +36 -10
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +11 -11
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +8 -8
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +26 -4
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +5 -3
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +22 -22
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +39 -14
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +14 -6
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +89 -53
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +11 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/loadRecords.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +39 -36
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +17 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecord.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +85 -32
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/system/datetime.js +1103 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/core/tests/system/datetime.js +390 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/resources/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +10 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +19 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +8 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +0 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +0 -27
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +27 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +1 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +72 -74
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +49 -27
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +63 -46
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +6 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +53 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +84 -79
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +38 -24
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +396 -218
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +92 -123
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +23 -18
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +39 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +66 -53
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +364 -121
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +209 -108
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +40 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +16 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +25 -27
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +36 -24
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/button.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/collection.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/disclosure.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/image_button.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/menu.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/picker.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/popup_button.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +116 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segment.js +58 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/segmented.js +80 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/well.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +197 -103
- data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +74 -37
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +26 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +16 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +190 -22
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +69 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +30 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +91 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +9 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +11 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/content.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/keyEquivalents.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +46 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +91 -18
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +16 -32
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +29 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +27 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +16 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +40 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +5 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +129 -21
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +174 -43
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +93 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/integration.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +14 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +29 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +26 -83
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +292 -61
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +11 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +32 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +78 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +11 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +11 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +16 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +33 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +550 -231
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +63 -55
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +286 -187
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +77 -53
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +39 -31
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +43 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +58 -36
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +668 -509
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +313 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +93 -54
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +152 -38
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +261 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +35 -30
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +131 -122
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +208 -208
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +24 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +332 -135
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +184 -73
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +829 -426
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +377 -143
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +96 -37
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +26 -10
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +52 -39
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +19 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +15 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +387 -271
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +10 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +15 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +18 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +114 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +14 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +103 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +36 -20
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +27 -31
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +285 -0
- data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +6 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/README.md +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/README +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/TODO +56 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/beautify.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/design.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/file.js +35 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/files.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/layout.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/controllers/library.js +194 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/page.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/property.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/property_editor.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/target.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/targets.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/controllers/view_configs.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/core_file.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/data_source.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/app_page.js +399 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/app-selector.css +107 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/button.css +314 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/dock.css +90 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/general.css +51 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/main-page.css +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/menu.css +49 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/modal.css +41 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/css/picker.css +195 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/css/search.css +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/css/text-field.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/dialogs.js +303 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/apps/greenhouse}/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/inspectors.js +365 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/loading.rhtml +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/english.lproj/main_page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/english.lproj/strings.js +93 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/fixtures/file.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/main.js +28 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/mixins/drop_down.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/design.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/dir.js +93 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/models/file.js +51 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/models/target.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/models/view_config.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/resources/test_page.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/inspector.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/library.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/main.js +283 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/modals.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/states/ready.js +235 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/tests/controllers/design.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/tests/controllers/designs.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/tests/controllers/file.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/tests/controllers/files.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/tests/models/file.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/tests/models/view_config.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/list_item.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/tests/views/plist_item.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/theme.js +25 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/anchor.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/application_list_item.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/event_blocker.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/label_designer.js +0 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/list_item.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/plist_item.js +178 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/simple_button.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/apps/greenhouse/views/tear_off_picker.js +56 -0
- data/lib/frameworks/sproutcore/{apps → frameworks/experimental/apps}/greenhouse/views/web.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/design.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +349 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/controllers.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/design.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_design.js +172 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/core.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_rule.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/button.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/label.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +298 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/tab.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/text_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +1269 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/css/designer.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/design_page.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/high_light.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/controller.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/dock-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/dock-item-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/dock-item-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/page.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/pane.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/images/view.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/english.lproj/selection_handles.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/binding.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/button.js +13 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +227 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/coders/page.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/tests/designers/view_designer.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/views/high_light.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/{designer → experimental/frameworks/designer}/views/page_item_view.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/selection_handles.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +11 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +46 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/many.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/simple.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/single.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_child.js +229 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/mixins/split_thumb.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/render_delegates/split_divider.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/children.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/dividers.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/methods.js +294 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_child.js +135 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/tests/split_thumb.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split.js +929 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/split_divider.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/split_view/views/thumb.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/default_styles.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/edit_mode.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/emptiness.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/forms/render_delegates/form.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/forms/render_delegates/form_row.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_label.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_radio_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_row.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_text_field.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/forms/views/form.js +286 -0
- data/lib/frameworks/sproutcore/frameworks/forms/views/form_row.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +52 -43
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +15 -142
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +29 -21
- data/lib/frameworks/sproutcore/frameworks/foundation/delegates/inline_text_field.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +4 -16
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/checkbox_view.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/radio_view.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +4 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/string.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +234 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +24 -26
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +355 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +4 -350
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +10 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +8 -9
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_value_support.js +227 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +105 -200
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +16 -15
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +745 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editable.js +254 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor.js +188 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inner_frame.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +20 -21
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +57 -53
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +18 -9
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +214 -203
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/helpers/sizing.js +174 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/image.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/label.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +386 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +404 -191
- data/lib/frameworks/sproutcore/frameworks/foundation/system/chance.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cookie.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +20 -2006
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +9 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +363 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +433 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/module.js +591 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +123 -24
- data/lib/frameworks/sproutcore/frameworks/foundation/system/string.js +422 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +19 -16
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +91 -96
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/colors.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/range.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/string_measurement.js +254 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/delegates/inline_text_field/inline_text_field.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +9 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_display.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/content_value_support/content.js +168 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/beginEditing.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/commitEditing.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editable/discardEditing.js +151 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/beginEditing.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/commitEditing.js +151 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_editor/discardEditing.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +13 -22
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +8 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +59 -59
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +114 -114
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +74 -74
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/render_delegates/render_delegate.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/cookie.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +19 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/routes.js +30 -20
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/string.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +8 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/user_defaults.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +241 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/range.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/credit_card.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +11 -13
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/not_empty.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/number.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/password.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/validator.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +10 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +76 -11
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +499 -46
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +32 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +87 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +39 -12
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +6 -10
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +5 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +16 -14
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +23 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +307 -105
- data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +654 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +81 -195
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +287 -116
- data/lib/frameworks/sproutcore/frameworks/handlebars/handlebars.js +1435 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffer.js +390 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery-sc.js +12 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +7179 -0
- data/lib/frameworks/sproutcore/frameworks/jquery/tests/set_class.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +10 -8
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +4 -6
- data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +4 -5
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +30 -28
- data/lib/frameworks/sproutcore/frameworks/qunit/README.md +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/package.json +21 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.css +215 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.js +1442 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/headless.html +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/index.html +18 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.html +17 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/same.js +1421 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/test.js +314 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +232 -537
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +163 -4
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +74 -74
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/array.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/date.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/function.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/ext/string.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +29 -28
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +577 -317
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +16 -13
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +25 -18
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +351 -308
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +51 -52
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1149 -1001
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +85 -45
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +61 -55
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +51 -107
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +361 -348
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +24 -24
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +45 -40
- data/lib/frameworks/sproutcore/frameworks/runtime/system/function.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +275 -265
- data/lib/frameworks/sproutcore/frameworks/runtime/system/json.js +515 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +1337 -204
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +312 -259
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +89 -87
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +119 -106
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +107 -101
- data/lib/frameworks/sproutcore/frameworks/runtime/system/string.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +23 -47
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/beget.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/console.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +59 -126
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +21 -19
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +71 -33
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/keys.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/makeArray.js +21 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +39 -15
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable.js +623 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable_observers.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +286 -98
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observersForKey.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +7 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +78 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +7 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +87 -8
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/error.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/json.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/logger.js +180 -92
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/enhance.js +196 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/observer_set.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +12 -12
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +6 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +77 -45
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +4 -10
- data/lib/frameworks/sproutcore/frameworks/statechart/debug/monitor.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +1241 -97
- data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +1617 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/respond_to_event.js +401 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/advanced/without_concurrent_states.js +306 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/with_concurrent_states.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/basic/without_concurrent_states.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/pane.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/responder_chain.js +109 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/event_handling/responder/root_responder.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/initial_substate.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/is_current_state.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/namespacing.js +248 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/mixin.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/plugin/nesting.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state/state_observes.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/core.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/with_concurrent_states.js +123 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/async/without_concurrent_states.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/core.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/initial_substate/without_concurrent_states.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/with_concurrent_states.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/context.js +191 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/history_state/standard/without_concurrent_states/core.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/advanced.js +239 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/basic.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/with_concurrent_states/intermediate.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/context.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/standard/without_concurrent_states/core.js +281 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/state_transitioning/transient/without_concurrent_states.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/assigned_root_state.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/create/unassigned_root_state.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/destroy.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/invoke_state_method.js +241 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/statechart/owner.js +236 -0
- data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/table/views/table.js +6 -5
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +3 -2
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +6 -4
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +4 -1
- data/lib/frameworks/sproutcore/frameworks/testing/extras.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +32 -19
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +13 -3
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/utils.js +1 -1
- data/lib/frameworks/sproutcore/lib/index.rhtml +54 -9
- data/lib/frameworks/sproutcore/license.js +32 -30
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/dark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/light.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/panel/pointers.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/body.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/button.css +33 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/button.css +102 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/button.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/button.css +39 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/ace/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/button.css +93 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/button.css +72 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/dark/button.js +5 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/button/popup/select.css +21 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +11 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/loading.css +50 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.css +79 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/pane/pane.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.css +13 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.css +41 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio.css +57 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/segmented/segmented.css +83 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/slider.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +31 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/tab/tab.css +3 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/well/well.css +7 -0
- data/lib/frameworks/sproutcore/themes/ace/theme.js +30 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +16 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/strings.js +1 -1
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/Panel.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd b/data/lib/frameworks/sproutcore/themes/legacy_theme/Source/SproutCore Theme → Buttons.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data b/data/lib/frameworks/sproutcore/themes/legacy_theme/Source/ToolbarView → Pattern.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg b/data/lib/frameworks/sproutcore/themes/legacy_theme/Source/ToolbarView → Pattern.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg b/data/lib/frameworks/sproutcore/themes/legacy_theme/Source/ToolbarView → Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/16/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/24/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/32/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/48/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/48/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/48/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/icons/48/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/panel-sprite-x.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/panel-sprite-y.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/sc-theme-repeat-x-2.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/sc-theme-repeat-x.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/sc-theme-sprite.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/sc-theme-ysprite.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/shared-icons.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/sproutcore-logo.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/Source/sticky-note.psd +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/button.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/checkbox.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/collection.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/core.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/disclosure.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/icons/mini_222222.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/icons/mini_454545.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/icons/mini_888888.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/panels/sprite-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/panels/sprite-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/images/sc-toolbar-view.png +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/label.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/list_item.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/menu.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/menu_item_view.css +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/pane.css +18 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/panel.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/picker.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/progress.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/radio.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/scroller.css +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/english.lproj/segmented.css +270 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/slider.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/split_view.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/tab.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/table.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/text_field.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/toolbar.css +0 -0
- data/lib/frameworks/sproutcore/themes/{standard_theme → legacy_theme}/english.lproj/well.css +0 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/button.js +89 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/panel.js +28 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/progress.js +194 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/slider.js +67 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/render_delegates/well.js +27 -0
- data/lib/frameworks/sproutcore/themes/legacy_theme/theme.js +13 -0
- data/lib/gen/app/templates/apps/@target_name@/Buildfile +14 -0
- data/lib/gen/app/templates/apps/@target_name@/theme.js +27 -0
- data/lib/gen/html_app/Buildfile +36 -0
- data/lib/gen/html_app/README +1 -0
- data/lib/gen/html_app/USAGE +15 -0
- data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +14 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/images/.gitkeep +0 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/stylesheets/@target_name@.css +4 -0
- data/lib/gen/html_app/templates/apps/@target_name@/resources/templates/@target_name@.handlebars +1 -0
- data/lib/gen/html_project/Buildfile +45 -0
- data/lib/gen/html_project/INIT +3 -0
- data/lib/gen/html_project/README +1 -0
- data/lib/gen/html_project/USAGE +2 -0
- data/lib/gen/html_project/templates/@filename@/Buildfile +8 -0
- data/lib/gen/html_project/templates/@filename@/README +7 -0
- data/lib/gen/project/templates/@filename@/Buildfile +7 -2
- data/lib/gen/theme/templates/themes/@target_name@/Buildfile +3 -0
- data/lib/gen/theme/templates/themes/@target_name@/theme.js +23 -0
- data/lib/sproutcore.rb +11 -2
- data/lib/sproutcore/builders.rb +4 -2
- data/lib/sproutcore/builders/base.rb +10 -3
- data/lib/sproutcore/builders/chance_file.rb +78 -0
- data/lib/sproutcore/builders/combine.rb +6 -5
- data/lib/sproutcore/builders/handlebars.rb +30 -0
- data/lib/sproutcore/builders/html.rb +2 -0
- data/lib/sproutcore/builders/javascript.rb +15 -2
- data/lib/sproutcore/builders/minify.rb +14 -25
- data/lib/sproutcore/builders/module.rb +74 -0
- data/lib/sproutcore/builders/string_wrapper.rb +41 -0
- data/lib/sproutcore/buildfile.rb +17 -17
- data/lib/sproutcore/buildfile/task.rb +4 -12
- data/lib/sproutcore/buildfile/task_manager.rb +13 -4
- data/lib/sproutcore/helpers.rb +1 -1
- data/lib/sproutcore/helpers/entry_sorter.rb +5 -9
- data/lib/sproutcore/helpers/minifier.rb +110 -0
- data/lib/sproutcore/helpers/static_helper.rb +105 -39
- data/lib/sproutcore/models/generator.rb +16 -0
- data/lib/sproutcore/models/manifest.rb +3 -3
- data/lib/sproutcore/models/manifest_entry.rb +10 -3
- data/lib/sproutcore/models/target.rb +146 -34
- data/lib/sproutcore/rack/dev.rb +3 -3
- data/lib/sproutcore/rack/proxy.rb +1 -1
- data/lib/sproutcore/tools.rb +53 -5
- data/lib/sproutcore/tools/build.rb +10 -16
- data/lib/sproutcore/tools/docs.rb +1 -1
- data/lib/sproutcore/tools/gen.rb +1 -1
- data/lib/sproutcore/tools/init.rb +26 -10
- data/lib/sproutcore/tools/server.rb +9 -1
- data/lib/sproutcore/version.rb +1 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/chance_2x_spec.rb +100 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/chance_spec.rb +104 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +86 -9
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +1 -1
- data/spec/buildtasks/manifest/prepare_build_tasks/handlebars_spec.rb +39 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +1 -1
- data/spec/buildtasks/manifest/prepare_build_tasks/module_info_spec.rb +96 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/module_spec.rb +83 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_indirect_spec.rb +191 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_2x_spec.rb +185 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +46 -11
- data/spec/buildtasks/manifest/spec_helper.rb +4 -0
- data/spec/fixtures/builder_tests/Buildfile +11 -9
- data/spec/fixtures/builder_tests/apps/chance_test/Buildfile +14 -0
- data/spec/fixtures/builder_tests/apps/chance_test/core.js +27 -0
- data/spec/fixtures/builder_tests/apps/chance_test/main.js +30 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/demo.css +6 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/force@2x.png +0 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/last_file.css +7 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/loading.rhtml +9 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/main_page.js +24 -0
- data/spec/fixtures/builder_tests/apps/chance_test/resources/z_first_file.css +6 -0
- data/spec/fixtures/builder_tests/apps/chance_test/theme.js +27 -0
- data/spec/fixtures/builder_tests/apps/handlebars_test/template.handlebars +5 -0
- data/spec/fixtures/builder_tests/apps/module_test/module.js +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/javascript.js +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/deferred_module/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/inlined_module/README +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/module_test/modules/required_target/req_js_1.js +0 -0
- data/spec/fixtures/helper_tests/apps/minifier_test/core.js +8 -0
- data/spec/fixtures/real_world/Buildfile +11 -1
- data/spec/fixtures/real_world/apps/account/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/calendar/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/contacts/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/contacts/modules/printing/README +0 -0
- data/spec/fixtures/real_world/apps/mail/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/apps/mail/modules/printing/README +0 -0
- data/spec/fixtures/real_world/apps/photos/modules/email/README +0 -0
- data/spec/fixtures/real_world/apps/photos/modules/preferences/README +0 -0
- data/spec/fixtures/real_world/frameworks/no_2x/resources/test.css +1 -0
- data/spec/fixtures/real_world/frameworks/no_2x/resources/test.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/templates/demo.handlebars +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/force@2x.png +0 -0
- data/spec/lib/builders/chance_file_spec.rb +44 -0
- data/spec/lib/builders/handlebars_spec.rb +29 -0
- data/spec/lib/builders/module_spec.rb +133 -0
- data/spec/lib/builders/strings_spec.rb +1 -0
- data/spec/lib/helpers/minifier.rb +31 -0
- data/spec/lib/models/project/find_targets_for_spec.rb +1 -1
- data/sproutcore.gemspec +11 -4
- data/vendor/chance/.gitignore +5 -0
- data/vendor/chance/Gemfile +4 -0
- data/vendor/chance/Rakefile +2 -0
- data/vendor/chance/bin/chance +46 -0
- data/vendor/chance/chance.gemspec +28 -0
- data/vendor/chance/lib/chance.rb +156 -0
- data/vendor/chance/lib/chance/instance.rb +330 -0
- data/vendor/chance/lib/chance/instance/data_url.rb +85 -0
- data/vendor/chance/lib/chance/instance/javascript.rb +19 -0
- data/vendor/chance/lib/chance/instance/slicing.rb +181 -0
- data/vendor/chance/lib/chance/instance/spriting.rb +311 -0
- data/vendor/chance/lib/chance/parser.rb +835 -0
- data/vendor/chance/lib/chance/perf.rb +17 -0
- data/vendor/chance/lib/chance/version.rb +3 -0
- data/vendor/chance/lib/tester/test.rb +108 -0
- data/vendor/chance/lib/tester/test_runner.rb +27 -0
- data/vendor/chance/test/case/abc.png +0 -0
- data/vendor/chance/test/case/more/abc.png +0 -0
- data/vendor/chance/test/case/more/another.css +4 -0
- data/vendor/chance/test/case/test1.css +22 -0
- data/vendor/chance/test/case/test2.css +6 -0
- data/vendor/chance/tests/parser/basic/input/test.css +4 -0
- data/vendor/chance/tests/parser/basic/output/test.parsed.css +5 -0
- data/vendor/sproutcore/SCCompiler.jar +0 -0
- data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
- data/vendor/sproutcore/lib/htmlcompressor-0.9.3.jar +0 -0
- data/{lib/sproutcore/vendor/yui-compressor → vendor/sproutcore/lib}/yuicompressor-2.4.2.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/build.xml +74 -0
- 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/lib/yuicompressor-2.4.4.jar +0 -0
- data/vendor/sproutcore/src/SCCompiler/manifest.mf +3 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +894 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +8 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +10 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +4 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +90 -0
- data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +15 -0
- data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +348 -0
- metadata +1236 -560
- data/lib/frameworks/sproutcore/CHANGELOG +0 -93
- data/lib/frameworks/sproutcore/CHANGELOG-1.4.md +0 -170
- data/lib/frameworks/sproutcore/apps/docs/core.js +0 -27
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +0 -14378
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/loading.rhtml +0 -9
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/main_page.js +0 -22
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/strings.js +0 -15
- data/lib/frameworks/sproutcore/apps/docs/main.js +0 -30
- data/lib/frameworks/sproutcore/apps/greenhouse/README +0 -25
- data/lib/frameworks/sproutcore/apps/greenhouse/TODO +0 -72
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/file.js +0 -75
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/library.js +0 -201
- data/lib/frameworks/sproutcore/apps/greenhouse/core.js +0 -67
- data/lib/frameworks/sproutcore/apps/greenhouse/core_file.js +0 -124
- data/lib/frameworks/sproutcore/apps/greenhouse/data_source.js +0 -250
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +0 -377
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +0 -111
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/button.css +0 -310
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/dock.css +0 -85
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/general.css +0 -52
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +0 -120
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/menu.css +0 -52
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/modal.css +0 -40
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/picker.css +0 -188
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/tabbed.css +0 -68
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/dialogs.js +0 -302
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/inspectors.js +0 -365
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +0 -87
- data/lib/frameworks/sproutcore/apps/greenhouse/main.js +0 -28
- data/lib/frameworks/sproutcore/apps/greenhouse/models/design.js +0 -22
- data/lib/frameworks/sproutcore/apps/greenhouse/models/dir.js +0 -92
- data/lib/frameworks/sproutcore/apps/greenhouse/models/file.js +0 -51
- data/lib/frameworks/sproutcore/apps/greenhouse/states/inspector.js +0 -144
- data/lib/frameworks/sproutcore/apps/greenhouse/states/library.js +0 -133
- data/lib/frameworks/sproutcore/apps/greenhouse/states/main.js +0 -224
- data/lib/frameworks/sproutcore/apps/greenhouse/states/modals.js +0 -291
- data/lib/frameworks/sproutcore/apps/greenhouse/states/ready.js +0 -197
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/views/list_item.js +0 -15
- data/lib/frameworks/sproutcore/apps/greenhouse/views/plist_item.js +0 -39
- data/lib/frameworks/sproutcore/apps/greenhouse/views/tear_off_picker.js +0 -56
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/parentless.js +0 -134
- data/lib/frameworks/sproutcore/frameworks/datejs/core.js +0 -865
- data/lib/frameworks/sproutcore/frameworks/datejs/english.lproj/en-US.js +0 -186
- data/lib/frameworks/sproutcore/frameworks/datejs/extras.js +0 -332
- data/lib/frameworks/sproutcore/frameworks/datejs/license.js +0 -25
- data/lib/frameworks/sproutcore/frameworks/datejs/parser.js +0 -1116
- data/lib/frameworks/sproutcore/frameworks/datejs/spanish.lproj/es-CO.js +0 -186
- data/lib/frameworks/sproutcore/frameworks/datejs/sugarpak.js +0 -475
- data/lib/frameworks/sproutcore/frameworks/datejs/time.js +0 -269
- data/lib/frameworks/sproutcore/frameworks/datejs/validators/datejs.js +0 -34
- data/lib/frameworks/sproutcore/frameworks/designer/coders/design.js +0 -20
- data/lib/frameworks/sproutcore/frameworks/designer/coders/localization.js +0 -19
- data/lib/frameworks/sproutcore/frameworks/designer/coders/object.js +0 -347
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/controllers.js +0 -16
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/design.js +0 -37
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/designs.js +0 -134
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_design.js +0 -170
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_files.js +0 -22
- data/lib/frameworks/sproutcore/frameworks/designer/core.js +0 -26
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_rule.js +0 -22
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style.js +0 -29
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style_sheet.js +0 -201
- data/lib/frameworks/sproutcore/frameworks/designer/designers/button.js +0 -21
- data/lib/frameworks/sproutcore/frameworks/designer/designers/label.js +0 -16
- data/lib/frameworks/sproutcore/frameworks/designer/designers/object_designer.js +0 -296
- data/lib/frameworks/sproutcore/frameworks/designer/designers/tab.js +0 -18
- data/lib/frameworks/sproutcore/frameworks/designer/designers/text_field.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/designer/designers/view_designer.js +0 -1259
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/design_page.js +0 -55
- data/lib/frameworks/sproutcore/frameworks/designer/ext/object.js +0 -26
- data/lib/frameworks/sproutcore/frameworks/designer/ext/page.js +0 -86
- data/lib/frameworks/sproutcore/frameworks/designer/ext/view.js +0 -54
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/button.js +0 -11
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/snap_lines.js +0 -221
- data/lib/frameworks/sproutcore/frameworks/designer/views/designer_drop_target.js +0 -138
- data/lib/frameworks/sproutcore/frameworks/designer/views/drawing.js +0 -219
- data/lib/frameworks/sproutcore/frameworks/designer/views/selection_handles.js +0 -78
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/array.js +0 -518
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/controller.js +0 -44
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/object.js +0 -342
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/core.css +0 -474
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/view.css +0 -57
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/object.js +0 -83
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +0 -162
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +0 -585
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/responder_context.js +0 -269
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +0 -250
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +0 -543
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/main.js +0 -51
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/pane.js +0 -848
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +0 -84
- data/lib/frameworks/sproutcore/frameworks/foundation/system/application.js +0 -37
- data/lib/frameworks/sproutcore/frameworks/foundation/system/browser.js +0 -59
- data/lib/frameworks/sproutcore/frameworks/foundation/system/builder.js +0 -210
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +0 -337
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cursor.js +0 -131
- data/lib/frameworks/sproutcore/frameworks/foundation/system/datetime.js +0 -1140
- data/lib/frameworks/sproutcore/frameworks/foundation/system/device.js +0 -143
- data/lib/frameworks/sproutcore/frameworks/foundation/system/event.js +0 -894
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +0 -433
- data/lib/frameworks/sproutcore/frameworks/foundation/system/json.js +0 -515
- data/lib/frameworks/sproutcore/frameworks/foundation/system/locale.js +0 -293
- data/lib/frameworks/sproutcore/frameworks/foundation/system/page.js +0 -108
- data/lib/frameworks/sproutcore/frameworks/foundation/system/platform.js +0 -298
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +0 -197
- data/lib/frameworks/sproutcore/frameworks/foundation/system/render_context.js +0 -988
- data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +0 -599
- data/lib/frameworks/sproutcore/frameworks/foundation/system/responder.js +0 -124
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +0 -538
- data/lib/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +0 -2068
- data/lib/frameworks/sproutcore/frameworks/foundation/system/time.js +0 -473
- data/lib/frameworks/sproutcore/frameworks/foundation/system/timer.js +0 -551
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +0 -710
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/array_case.js +0 -218
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/enum_case.js +0 -206
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/null_case.js +0 -64
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/selection_support.js +0 -318
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/single_case.js +0 -136
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/empty_case.js +0 -82
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/multiple_case.js +0 -111
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_case.js +0 -193
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_enumerable_case.js +0 -265
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/content.js +0 -195
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +0 -89
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +0 -57
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +0 -68
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/content.js +0 -168
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/responder_context.js +0 -75
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/string.js +0 -83
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/builder.js +0 -42
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_core.js +0 -1334
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_dimensions.js +0 -387
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_selector.js +0 -405
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/within.js +0 -66
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/datetime.js +0 -382
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/json.js +0 -14
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/locale.js +0 -134
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/begin.js +0 -47
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/element.js +0 -44
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +0 -124
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/get.js +0 -51
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_attr.js +0 -50
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_basic.js +0 -28
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_className.js +0 -179
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +0 -101
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/init.js +0 -55
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js +0 -28
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/push_text.js +0 -74
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/tag.js +0 -46
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +0 -218
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/request.js +0 -223
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeKeyPane.js +0 -124
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMainPane.js +0 -68
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMenuPane.js +0 -48
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/root_responder.js +0 -101
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/targetForAction.js +0 -251
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invalidate.js +0 -38
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invokeLater.js +0 -201
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/isPaused.js +0 -71
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/performAction.js +0 -69
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/schedule.js +0 -170
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/normalizeURL.js +0 -18
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/rect.js +0 -99
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/main_pane.js +0 -31
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/append_remove.js +0 -124
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/firstResponder.js +0 -148
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/keyPane.js +0 -133
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js +0 -31
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendEvent.js +0 -206
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/clippingFrame.js +0 -133
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertFrames.js +0 -246
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertLayouts.js +0 -145
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createChildViews.js +0 -122
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createLayer.js +0 -97
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/destroyLayer.js +0 -83
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/didAppendToDocument.js +0 -48
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/findLayerInParentLayer.js +0 -50
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/init.js +0 -50
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/insertBefore.js +0 -200
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/isVisible.js +0 -51
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/isVisibleInWindow.js +0 -116
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layer.js +0 -150
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutChildViews.js +0 -162
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutDidChange.js +0 -127
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutStyle.js +0 -531
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/nextValidKeyView.js +0 -110
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/parentViewDidChange.js +0 -67
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/prepareContext.js +0 -180
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/removeChild.js +0 -189
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/render.js +0 -83
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/replaceChild.js +0 -29
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayer.js +0 -146
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayerLocation.js +0 -194
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/viewDidResize.js +0 -202
- data/lib/frameworks/sproutcore/frameworks/foundation/views/view.js +0 -3313
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/delegate_support.js +0 -110
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/observable_protocol.js +0 -40
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/sparse_array_delegate.js +0 -131
- data/lib/frameworks/sproutcore/frameworks/runtime/system/cookie.js +0 -160
- data/lib/frameworks/sproutcore/frameworks/runtime/system/selection_set.js +0 -697
- data/lib/frameworks/sproutcore/frameworks/runtime/system/sparse_array.js +0 -379
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +0 -622
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/cookie.js +0 -163
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/add.js +0 -92
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js +0 -17
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/indexSetForSource.js +0 -98
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/isEqual.js +0 -60
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/remove.js +0 -111
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/sparse_array.js +0 -194
- data/lib/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +0 -336
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/basic.js +0 -90
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/history.js +0 -71
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/nested.js +0 -59
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/transient.js +0 -148
- data/lib/frameworks/sproutcore/frameworks/testing/jquery.js +0 -3559
- data/lib/frameworks/sproutcore/frameworks/testing/qunit.js +0 -827
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/pane.css +0 -18
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/segmented.css +0 -275
- data/lib/sproutcore/builders/bundle.rb +0 -63
- data/lib/sproutcore/buildfile/cloneable.rb +0 -34
- data/lib/sproutcore/vendor/yui-compressor/SCyuicompressor-2.4.2.jar +0 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/bundle_spec.rb +0 -254
- data/spec/fixtures/builder_tests/apps/bundle_test/bundle.js +0 -1
- data/spec/lib/builders/bundle_spec.rb +0 -295
@@ -0,0 +1,65 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2010 Sprout Systems, Inc. and contributors.
|
4
|
+
// Portions ©2008-2011 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
sc_require("system/task_queue");
|
9
|
+
|
10
|
+
/** @ignore */
|
11
|
+
SC.chance = {
|
12
|
+
|
13
|
+
preload_task: SC.Task.create({
|
14
|
+
run: function(queue) {
|
15
|
+
var bank = SC.chance.bank, idx, len = bank.length, images = SC.chance.images;
|
16
|
+
for (idx = 0; idx < len; idx++) {
|
17
|
+
if (images.length < 1) {
|
18
|
+
return SC.chance.didPreloadImages();
|
19
|
+
}
|
20
|
+
|
21
|
+
var img = images.pop();
|
22
|
+
bank[idx].className = img;
|
23
|
+
}
|
24
|
+
|
25
|
+
// to force a break:
|
26
|
+
setTimeout(function(){
|
27
|
+
SC.run(function() {
|
28
|
+
SC.backgroundTaskQueue.push(SC.chance.preload_task);
|
29
|
+
});
|
30
|
+
}, 0);
|
31
|
+
}
|
32
|
+
}),
|
33
|
+
|
34
|
+
|
35
|
+
images: [],
|
36
|
+
bank: [],
|
37
|
+
PRELOAD_CONCURRENCY: 50,
|
38
|
+
|
39
|
+
preloadImages: function() {
|
40
|
+
if (window.CHANCE_SLICES) {
|
41
|
+
this.images = window.CHANCE_SLICES;
|
42
|
+
}
|
43
|
+
|
44
|
+
var bank = this.bank, idx, con = this.PRELOAD_CONCURRENCY;
|
45
|
+
for (idx = 0; idx < con; idx++) {
|
46
|
+
var img = document.createElement('div');
|
47
|
+
document.body.appendChild(img);
|
48
|
+
bank.push(img);
|
49
|
+
}
|
50
|
+
|
51
|
+
SC.run(function(){
|
52
|
+
SC.backgroundTaskQueue.push(SC.chance.preload_task);
|
53
|
+
});
|
54
|
+
},
|
55
|
+
|
56
|
+
didPreloadImages: function() {
|
57
|
+
var bank = this.bank, idx, len = bank.length;
|
58
|
+
for (idx = 0; idx < len; idx++) {
|
59
|
+
document.body.removeChild(bank[idx]);
|
60
|
+
bank[idx] = undefined;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
};
|
64
|
+
|
65
|
+
SC.ready(SC.chance, 'preloadImages');
|
@@ -0,0 +1,176 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore - JavaScript Application Framework
|
3
|
+
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
+
// ©2008-2011 Apple Inc. All rights reserved.
|
5
|
+
// License: Licensed under MIT license (see license.js)
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
|
9
|
+
/** @class
|
10
|
+
|
11
|
+
Allows for easier handling of the document.cookie object. To create a cookie,
|
12
|
+
simply call SC.Cookie.create. To retrieve a cookie, use SC.Cookie.find.
|
13
|
+
Cookies are not added to document.cookie, which SC.Cookie.find uses, until you
|
14
|
+
have called SC.Cookie#write.
|
15
|
+
|
16
|
+
Heavy inspiration from the
|
17
|
+
{@link <a href="http://plugins.jquery.com/project/cookie">jQuery cookie plugin</a>}.
|
18
|
+
|
19
|
+
@extends SC.Object
|
20
|
+
@since Sproutcore 1.0
|
21
|
+
@author Colin Campbell
|
22
|
+
*/
|
23
|
+
|
24
|
+
SC.Cookie = SC.Object.extend(
|
25
|
+
/** @scope SC.Cookie.prototype */{
|
26
|
+
|
27
|
+
// ..........................................................
|
28
|
+
// PROPERTIES
|
29
|
+
//
|
30
|
+
|
31
|
+
/**
|
32
|
+
@type String
|
33
|
+
@default null
|
34
|
+
*/
|
35
|
+
name: null,
|
36
|
+
|
37
|
+
/**
|
38
|
+
@type String
|
39
|
+
@default ''
|
40
|
+
*/
|
41
|
+
value: '',
|
42
|
+
|
43
|
+
/**
|
44
|
+
Amount of time until the cookie expires. Set to -1 in order to delete the cookie.
|
45
|
+
|
46
|
+
If passing an Integer, it is interpreted as a number of days.
|
47
|
+
|
48
|
+
@type Integer|SC.DateTime|Date
|
49
|
+
@default null
|
50
|
+
*/
|
51
|
+
expires: null,
|
52
|
+
|
53
|
+
/**
|
54
|
+
@type String
|
55
|
+
@deafult null
|
56
|
+
*/
|
57
|
+
path: null,
|
58
|
+
|
59
|
+
/**
|
60
|
+
@type String
|
61
|
+
@default null
|
62
|
+
*/
|
63
|
+
domain: null,
|
64
|
+
|
65
|
+
/**
|
66
|
+
If true, the secure attribute of the cookie will be set and the cookie transmission will
|
67
|
+
require a secure protocol (like HTTPS).
|
68
|
+
|
69
|
+
@type Boolean
|
70
|
+
@default NO
|
71
|
+
*/
|
72
|
+
secure: NO,
|
73
|
+
|
74
|
+
/**
|
75
|
+
Walk like a duck
|
76
|
+
|
77
|
+
@type Boolean
|
78
|
+
@default YES
|
79
|
+
@readOnly
|
80
|
+
*/
|
81
|
+
isCookie: YES,
|
82
|
+
|
83
|
+
|
84
|
+
// ..........................................................
|
85
|
+
// METHODS
|
86
|
+
//
|
87
|
+
|
88
|
+
/**
|
89
|
+
Sets SC.Cookie#expires to -1, which destroys the cookie.
|
90
|
+
*/
|
91
|
+
destroy: function() {
|
92
|
+
this.set('expires', -1);
|
93
|
+
this.write();
|
94
|
+
|
95
|
+
sc_super();
|
96
|
+
},
|
97
|
+
|
98
|
+
/**
|
99
|
+
Writes this SC.Cookie to document.cookie and adds it to SC.Cookie collection. To find this
|
100
|
+
cookie later, or on reload, use SC.Cookie.find.
|
101
|
+
|
102
|
+
@see SC.Cookie.find
|
103
|
+
*/
|
104
|
+
write: function() {
|
105
|
+
var name = this.get('name'),
|
106
|
+
value = this.get('value'),
|
107
|
+
expires = this.get('expires'),
|
108
|
+
path = this.get('path'),
|
109
|
+
domain = this.get('domain'),
|
110
|
+
secure = this.get('secure'),
|
111
|
+
output = '',
|
112
|
+
date;
|
113
|
+
|
114
|
+
if (expires) {
|
115
|
+
if (typeof expires === SC.T_NUMBER) {
|
116
|
+
date = new Date();
|
117
|
+
date.setTime(date.getTime() + (expires*24*60*60*1000));
|
118
|
+
} else if (SC.DateTime && expires.get && expires.get('milliseconds')) {
|
119
|
+
date = new Date(expires.get('milliseconds'));
|
120
|
+
} else if (expires.toUTCString && expires.toUTCString.apply) {
|
121
|
+
date = expires;
|
122
|
+
}
|
123
|
+
|
124
|
+
if (date) output = "; expires=" + date.toUTCString();
|
125
|
+
}
|
126
|
+
|
127
|
+
if (!SC.none(path)) output += '; path=' + path;
|
128
|
+
if (!SC.none(domain)) output += '; domain=' + domain;
|
129
|
+
if (secure === YES) output += '; secure';
|
130
|
+
|
131
|
+
document.cookie = name + "=" + encodeURIComponent(value) + output;
|
132
|
+
|
133
|
+
return this;
|
134
|
+
}
|
135
|
+
|
136
|
+
});
|
137
|
+
|
138
|
+
SC.Cookie.mixin(
|
139
|
+
/** @scope SC.Cookie */ {
|
140
|
+
|
141
|
+
/**
|
142
|
+
Finds a cookie that has been stored
|
143
|
+
|
144
|
+
@param {String} name The name of the cookie
|
145
|
+
@returns SC.Cookie object containing name and value of cookie
|
146
|
+
*/
|
147
|
+
find: function(name) {
|
148
|
+
if (document.cookie && document.cookie !== '') {
|
149
|
+
var cookies = document.cookie.split(';');
|
150
|
+
for (var i = 0; i < cookies.length; i++) {
|
151
|
+
var cookie = SC.String.trim(String(cookies[i]));
|
152
|
+
if (cookie.substring(0, name.length + 1) === (name + "=")) {
|
153
|
+
return SC.Cookie.create({
|
154
|
+
name: name,
|
155
|
+
value: decodeURIComponent(cookie.substring(name.length + 1))
|
156
|
+
});
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
return null;
|
161
|
+
}
|
162
|
+
|
163
|
+
});
|
164
|
+
|
165
|
+
SC.CookieMonster = {
|
166
|
+
nomNomNom: function(cookie) {
|
167
|
+
var isCookie = SC.kindOf(cookie, SC.Cookie);
|
168
|
+
if (isCookie) {
|
169
|
+
SC.Logger.log("YUM!");
|
170
|
+
return cookie.destroy();
|
171
|
+
}
|
172
|
+
|
173
|
+
SC.Logger.error("Y U PASS ME NO COOKIE? %@", cookie);
|
174
|
+
return NO;
|
175
|
+
}
|
176
|
+
};
|
@@ -1,1941 +1,48 @@
|
|
1
1
|
// ==========================================================================
|
2
2
|
// Project: SproutCore - JavaScript Application Framework
|
3
3
|
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
-
//
|
4
|
+
// ©2008-2011 Apple Inc. All rights reserved.
|
5
5
|
// License: Licensed under MIT license (see license.js)
|
6
6
|
// ==========================================================================
|
7
|
-
/*globals CQ add*/
|
8
7
|
|
9
|
-
|
8
|
+
SC.mixin(SC.$.fn, /** @scope SC.$.prototype */ {
|
10
9
|
|
11
|
-
/**
|
12
|
-
CoreQuery is a simplified DOM manipulation library used internally by
|
13
|
-
SproutCore to find and edit DOM elements. Outside of SproutCore, you
|
14
|
-
should generally use a more full-featured DOM library such as Prototype
|
15
|
-
or jQuery.
|
16
|
-
|
17
|
-
CoreQuery itself is a subset of jQuery with some additional plugins. If
|
18
|
-
you have jQuery already loaded when SproutCore loads, in fact, it will
|
19
|
-
replace CoreQuery with the full jQuery library and install any CoreQuery
|
20
|
-
plugins, including support for the SC.Enumerable mixin.
|
21
|
-
|
22
|
-
Much of this code is adapted from jQuery 1.2.6, which is available under an
|
23
|
-
MIT license just like SproutCore.
|
24
|
-
|
25
|
-
h1. Using CoreQuery
|
26
|
-
|
27
|
-
You can work with CoreQuery much like you would work with jQuery. The core
|
28
|
-
manipulation object is exposed as SC.$. To find some elements on the page
|
29
|
-
you just pass in a selector like this:
|
30
|
-
|
31
|
-
{{{
|
32
|
-
var cq = SC.$('p');
|
33
|
-
}}}
|
34
|
-
|
35
|
-
The object returned from this call is a CoreQuery object that implements
|
36
|
-
SC.Enumerable as well as a number of other useful manipulation methods.
|
37
|
-
Often times we call this object the "matched set", because it usually an
|
38
|
-
array of elements matching the selector key you passed.
|
39
|
-
|
40
|
-
To work with the matched set, just call the various helper methods on it.
|
41
|
-
Here are some of the more useful ones:
|
42
|
-
|
43
|
-
{{{
|
44
|
-
// change all of the text red
|
45
|
-
cq.css('color','red');
|
46
|
-
|
47
|
-
// hide/show the set
|
48
|
-
cq.hide(); cq.show();
|
49
|
-
|
50
|
-
// set the text content of the set
|
51
|
-
cq.text("Hello World!");
|
52
|
-
|
53
|
-
}}}
|
54
|
-
|
55
|
-
Of course, you can also chain these methods, just like jQuery. Here is
|
56
|
-
how you might find all of the headings in your page, change their text and
|
57
|
-
color:
|
58
|
-
|
59
|
-
{{{
|
60
|
-
SC.$('h1').text('Hello World!').css('color','red');
|
61
|
-
}}}
|
62
|
-
|
63
|
-
h1. Using CoreQuery with Views
|
64
|
-
|
65
|
-
Usually you will not want to just blindly edit the HTML content in your
|
66
|
-
application. Instead, you will use CoreQuery to update the portion of the
|
67
|
-
page managed by your SC.View instances. Every SC.View instance has a $()
|
68
|
-
property just like SC.$(). The difference is that this function will start
|
69
|
-
searching from the root of the view. For example, you could use the
|
70
|
-
following code in your updateDisplay method to set your content and color:
|
71
|
-
|
72
|
-
{{{
|
73
|
-
updateDisplay: function() {
|
74
|
-
this.$().text(this.get('value')).css('color','red');
|
75
|
-
}
|
76
|
-
}}}
|
77
|
-
|
78
|
-
You could also work on content within your view, for example this will
|
79
|
-
change the title on your view held in the span.title element:
|
80
|
-
|
81
|
-
{{{
|
82
|
-
updateDisplay: function() {
|
83
|
-
this.$('span.title').text('Hello World');
|
84
|
-
this.$().setClassName('sc-enabled', YES) ;
|
85
|
-
}
|
86
|
-
}}}
|
87
|
-
|
88
|
-
@class
|
89
|
-
@extends SC.Builder.fn
|
90
|
-
*/
|
91
|
-
SC.CoreQuery = (function() {
|
92
|
-
// Define CoreQuery inside of its own scope to support some jQuery idioms.
|
93
|
-
|
94
|
-
// A simple way to check for HTML strings or ID strings
|
95
|
-
// (both of which we optimize for)
|
96
|
-
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
|
97
|
-
// Is it a simple selector
|
98
|
-
isSimple = /^.[^:#\[\.]*$/;
|
99
|
-
|
100
|
-
// Regular expressions
|
101
|
-
var CQHtmlRegEx =/ CQ\d+="(?:\d+|null)"/g,
|
102
|
-
tagSearchRegEx = /(<(\w+)[^>]*?)\/>/g,
|
103
|
-
xmlTagsRegEx = /^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i,
|
104
|
-
checkforSpaceRegEx = /\s+/,
|
105
|
-
trimWhiteSpaceRegEx = /^\s+/,
|
106
|
-
bodyHTMLOffsetRegEx = /^body|html$/i,
|
107
|
-
specialAttributesRegEx = /href|src|style/,
|
108
|
-
tagsWithTabIndexRegEx = /(button|input|object|select|textarea)/i,
|
109
|
-
alphaDetectRegEx = /alpha\([^)]*\)/,
|
110
|
-
alphaReplaceRegEx = /opacity=([^)]*)/;
|
111
|
-
|
112
|
-
var styleFloat = SC.browser.msie ? "styleFloat" : "cssFloat";
|
113
|
-
|
114
|
-
// used for the find() method.
|
115
|
-
var chars = (SC.browser.safari && parseInt(SC.browser.version,0) < 417) ?
|
116
|
-
"(?:[\\w*_-]|\\\\.)" :
|
117
|
-
"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ;
|
118
|
-
var quickID = new RegExp("^(" + chars + "+)(#)(" + chars + "+)") ;
|
119
|
-
var singleClass = new RegExp("^([#.]?)(" + chars + "*)");
|
120
|
-
var quickSplit = new RegExp("([#.]?)(" + chars + "*)",'g');
|
121
|
-
|
122
|
-
// Constants used in CQ.css()
|
123
|
-
var LEFT_RIGHT = ["Left", "Right"];
|
124
|
-
var TOP_BOTTOM = ["Top", "Bottom"];
|
125
|
-
var CSS_DISPLAY_PROPS = {
|
126
|
-
position: "absolute", visibility: "hidden", display:"block"
|
127
|
-
} ;
|
128
|
-
|
129
|
-
var getWH = function getWH(elem, name, which) {
|
130
|
-
var val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
|
131
|
-
var padding = 0, border = 0, loc=which.length, dim;
|
132
|
-
while(--loc>=0) {
|
133
|
-
dim = which[loc];
|
134
|
-
padding += parseFloat(CQ.curCSS( elem, "padding" + dim, true)) || 0;
|
135
|
-
border += parseFloat(CQ.curCSS( elem, "border" + dim + "Width", true)) ||0;
|
136
|
-
}
|
137
|
-
val -= Math.round(padding + border);
|
138
|
-
return val;
|
139
|
-
} ;
|
140
|
-
|
141
|
-
var expando = SC.guidKey, uuid = 0, windowData = {},
|
142
|
-
// exclude the following css properties to add px
|
143
|
-
exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
|
144
|
-
// cache defaultView
|
145
|
-
defaultView = document.defaultView || {};
|
146
|
-
|
147
|
-
// A helper method for determining if an element's values are broken
|
148
|
-
var styleIsBorked = function styleIsBorked( elem ) {
|
149
|
-
if ( !SC.browser.safari ) return false;
|
150
|
-
|
151
|
-
// defaultView is cached
|
152
|
-
var ret = defaultView.getComputedStyle( elem, null );
|
153
|
-
return !ret || ret.getPropertyValue("color") === "";
|
154
|
-
} ;
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
// Helper function used by the dimensions and offset modules
|
159
|
-
function num(elem, prop) {
|
160
|
-
return elem[0] && parseInt( CQ.curCSS(elem[0], prop, true), 10 ) || 0;
|
161
|
-
}
|
162
|
-
|
163
|
-
var CoreQuery, CQ ;
|
164
|
-
|
165
|
-
// implement core methods here from jQuery that we want available all the
|
166
|
-
// time. Use this area to implement jQuery-compatible methods ONLY.
|
167
|
-
// New methods should be added at the bottom of the file, where they will
|
168
|
-
// be installed as plugins on CoreQuery or jQuery.
|
169
|
-
CQ = CoreQuery = SC.Builder.create( /** @scope SC.CoreQuery.fn */ {
|
170
|
-
|
171
|
-
/** Indicates that this is a jQuery-like object. */
|
172
|
-
jquery: 'SC.CoreQuery',
|
173
|
-
|
174
|
-
/**
|
175
|
-
Called on a new CoreQuery instance when it is first created. You
|
176
|
-
can pass a variety of options to the CoreQuery constructor function
|
177
|
-
including:
|
178
|
-
|
179
|
-
- a simple selector: this will find the element and return it
|
180
|
-
- element or array of elements - this will return a query with them
|
181
|
-
- html-string: this will convert to DOM.
|
182
|
-
|
183
|
-
@returns {CoreQuery} CoreQuery instance
|
184
|
-
*/
|
185
|
-
init: function( selector, context ) {
|
186
|
-
|
187
|
-
// Make sure that a selection was provided
|
188
|
-
selector = selector || document;
|
189
|
-
|
190
|
-
// Handle $(DOMElement)
|
191
|
-
if ( selector.nodeType ) {
|
192
|
-
this[0] = selector;
|
193
|
-
this.length = 1;
|
194
|
-
return this ;
|
195
|
-
|
196
|
-
// Handle HTML strings
|
197
|
-
} else if ( typeof selector === "string" ) {
|
198
|
-
// Are we dealing with HTML string or an ID?
|
199
|
-
var match = quickExpr.exec( selector );
|
200
|
-
|
201
|
-
// Verify a match, and that no context was specified for #id
|
202
|
-
if ( match && (match[1] || !context) ) {
|
203
|
-
|
204
|
-
// HANDLE: $(html) -> $(array)
|
205
|
-
if ( match[1] ) {
|
206
|
-
selector = CQ.clean( [ match[1] ], context );
|
207
|
-
}
|
208
|
-
// HANDLE: $("#id")
|
209
|
-
else {
|
210
|
-
var elem = document.getElementById( match[3] );
|
211
|
-
|
212
|
-
// Make sure an element was located
|
213
|
-
if ( elem ){
|
214
|
-
// Handle the case where IE and Opera return items
|
215
|
-
// by name instead of ID
|
216
|
-
if ( elem.id != match[3] ) return CQ().find( selector );
|
217
|
-
|
218
|
-
// Otherwise, we inject the element directly into the jQuery object
|
219
|
-
return CQ( elem );
|
220
|
-
}
|
221
|
-
selector = [];
|
222
|
-
}
|
223
|
-
|
224
|
-
// HANDLE: $(expr, [context])
|
225
|
-
// (which is just equivalent to: $(content).find(expr)
|
226
|
-
} else return CQ( context ).find( selector );
|
227
|
-
|
228
|
-
// HANDLE: $(function)
|
229
|
-
// Shortcut for document ready
|
230
|
-
} else if (SC.typeOf(selector) === SC.T_FUNCTION) {
|
231
|
-
return SC.ready(selector);
|
232
|
-
}
|
233
|
-
|
234
|
-
return this.setArray(CQ.makeArray(selector));
|
235
|
-
},
|
236
|
-
|
237
|
-
/** Return the number of elements in the matched set. */
|
238
|
-
size: function() { return this.length; },
|
239
|
-
|
240
|
-
/** Return the nth element of the working array OR return a clean array
|
241
|
-
with the result set, if no number is passed.
|
242
|
-
|
243
|
-
@param {Number} num (Optional)
|
244
|
-
@returns {Object|Array}
|
245
|
-
*/
|
246
|
-
get: function( num ) {
|
247
|
-
return num === undefined ? CQ.makeArray(this) : this[num];
|
248
|
-
},
|
249
|
-
|
250
|
-
/**
|
251
|
-
Find subelements matching the passed selector. Note that CoreQuery
|
252
|
-
supports only a very simplified selector search method. See
|
253
|
-
CoreQuery.find() for more information.
|
254
|
-
|
255
|
-
@param {String} selector
|
256
|
-
@returns {CoreQuery} new instance with match
|
257
|
-
*/
|
258
|
-
find: function( selector ) {
|
259
|
-
var elems = CQ.map(this, function(elem){
|
260
|
-
return CQ.find( selector, elem );
|
261
|
-
});
|
262
|
-
|
263
|
-
return this.pushStack(elems);
|
264
|
-
},
|
265
|
-
|
266
|
-
/**
|
267
|
-
Filters the matching set to include only those matching the passed
|
268
|
-
selector. Note that CoreQuery supports only a simplified selector
|
269
|
-
search method. See CoreQuery.find() for more information.
|
270
|
-
|
271
|
-
Also note that CoreQuery implements SC.Enumerable, which means you can
|
272
|
-
also call this method with a callback and target and the callback will
|
273
|
-
be executed on every element in the matching set to return a result.
|
274
|
-
|
275
|
-
@param {String} selector
|
276
|
-
@returns {CoreQuery}
|
277
|
-
*/
|
278
|
-
filter: function( selector ) {
|
279
|
-
return this.pushStack(
|
280
|
-
(SC.typeOf(selector) === SC.T_FUNCTION) &&
|
281
|
-
CQ.grep(this, function(elem, i){
|
282
|
-
return selector.call( elem, i );
|
283
|
-
}) || CQ.multiFilter( selector, this ) );
|
284
|
-
},
|
285
|
-
|
286
|
-
/**
|
287
|
-
Returns the results not matching the passed selector. This is the
|
288
|
-
opposite of filter.
|
289
|
-
|
290
|
-
|
291
|
-
@param {String} selector
|
292
|
-
@returns {CoreQuery}
|
293
|
-
*/
|
294
|
-
not: function( selector ) {
|
295
|
-
if ( typeof selector === "string" ) {
|
296
|
-
// test special case where just one selector is passed in
|
297
|
-
if ( isSimple.test( selector ) ) {
|
298
|
-
return this.pushStack( CQ.multiFilter( selector, this, true ) );
|
299
|
-
}else {
|
300
|
-
selector = CQ.multiFilter( selector, this );
|
301
|
-
}
|
302
|
-
}
|
303
|
-
|
304
|
-
var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
|
305
|
-
return this.filter(function() {
|
306
|
-
return isArrayLike ? CQ.inArray( this, selector ) < 0 : this != selector;
|
307
|
-
});
|
308
|
-
},
|
309
|
-
|
310
|
-
/**
|
311
|
-
Force the current matched set of elements to become the specified array
|
312
|
-
of elements (destroying the stack in the process) You should use
|
313
|
-
pushStack() in order to do this, but maintain the stack.
|
314
|
-
|
315
|
-
This method is mostly used internally. You will not need to use it
|
316
|
-
yourself very often.
|
317
|
-
|
318
|
-
@param {Array} elems
|
319
|
-
@returns {CoreQuery} receiver
|
320
|
-
*/
|
321
|
-
setArray: function( elems ) {
|
322
|
-
// Resetting the length to 0, then using the native Array push
|
323
|
-
// is a super-fast way to populate an object with array-like properties
|
324
|
-
this.length = 0;
|
325
|
-
Array.prototype.push.apply( this, elems );
|
326
|
-
return this;
|
327
|
-
},
|
328
|
-
|
329
|
-
/**
|
330
|
-
Executes the passed function on every element in the CoreQuery object.
|
331
|
-
Returns an array with the return values. Note that null values will
|
332
|
-
be omitted from the resulting set. This differs from SC.Enumerable and
|
333
|
-
the JavaScript standard.
|
334
|
-
|
335
|
-
The callback must have the signature:
|
336
|
-
|
337
|
-
{{{
|
338
|
-
function(currentElement, currentIndex) { return mappedValue; }
|
339
|
-
}}}
|
340
|
-
|
341
|
-
Note that "this" on the function will also be the currentElement.
|
342
|
-
|
343
|
-
@param {Function} callback
|
344
|
-
@returns {CoreQuery} results
|
345
|
-
*/
|
346
|
-
map: function( callback ) {
|
347
|
-
return this.pushStack( CQ.map(this, function(elem, i){
|
348
|
-
return callback.call( elem, i, elem );
|
349
|
-
}));
|
350
|
-
},
|
351
|
-
|
352
|
-
/**
|
353
|
-
Execute a callback for every element in the matched set. (You can seed
|
354
|
-
the arguments with an array of args, but this is only used internally.)
|
355
|
-
|
356
|
-
@param {Function} callback
|
357
|
-
@param {Object} args
|
358
|
-
@returns {CoreQuery} receiver
|
359
|
-
*/
|
360
|
-
each: function( callback, args ) {
|
361
|
-
return CQ.each( this, callback, args );
|
362
|
-
},
|
363
|
-
|
364
|
-
/**
|
365
|
-
Determine the position of an element within a matched set of elements.
|
366
|
-
jQuery-compatible name for indexOf().
|
367
|
-
|
368
|
-
@param {Element} elem
|
369
|
-
@returns {Number} location
|
370
|
-
*/
|
371
|
-
index: function( elem ) {
|
372
|
-
if (elem && elem.jquery) elem = elem[0];
|
373
|
-
return Array.prototype.indexOf.call(this, elem);
|
374
|
-
},
|
375
|
-
|
376
|
-
/**
|
377
|
-
Returns a new CoreQuery object that contains just the matching item.
|
378
|
-
|
379
|
-
@param {Number} i
|
380
|
-
@returns {CoreQuery}
|
381
|
-
*/
|
382
|
-
eq: function( i ) {
|
383
|
-
return this.slice( i, +i + 1 );
|
384
|
-
},
|
385
|
-
|
386
|
-
/**
|
387
|
-
Slice the CoreQuery result set just like you might slice and array.
|
388
|
-
Returns a new CoreQuery object with the result set.
|
389
|
-
|
390
|
-
@returns {CoreQuery}
|
391
|
-
*/
|
392
|
-
slice: function() {
|
393
|
-
return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
|
394
|
-
},
|
395
|
-
|
396
|
-
/** Adds the relevant elements to the existing matching set. */
|
397
|
-
add: function( selector ) {
|
398
|
-
return this.pushStack( CQ.merge(
|
399
|
-
this.get(),
|
400
|
-
typeof selector === 'string' ?
|
401
|
-
CQ( selector ) :
|
402
|
-
CQ.makeArray( selector )
|
403
|
-
).uniq()) ;
|
404
|
-
},
|
405
|
-
|
406
|
-
/**
|
407
|
-
Get to set the named attribute value on the element. You can either
|
408
|
-
pass in the name of an attribute you would like to read from the first
|
409
|
-
matched element, a single attribute/value pair to set on all elements
|
410
|
-
or a hash of attribute/value pairs to set on all elements.
|
411
|
-
|
412
|
-
@param {String} name attribute name
|
413
|
-
@param {Object} value attribute value
|
414
|
-
@param {String} type ?
|
415
|
-
@returns {CoreQuery} receiver
|
416
|
-
*/
|
417
|
-
attr: function( name, value, type ) {
|
418
|
-
var options = name;
|
419
|
-
|
420
|
-
// Look for the case where we're accessing a style value
|
421
|
-
if ( typeof name === "string" ) {
|
422
|
-
if ( value === undefined ) {
|
423
|
-
return this[0] && CQ[ type || "attr" ]( this[0], name );
|
424
|
-
}
|
425
|
-
else {
|
426
|
-
options = {};
|
427
|
-
options[ name ] = value;
|
428
|
-
}
|
429
|
-
}
|
430
|
-
// Check to see if we're setting style values
|
431
|
-
return this.each(function(i){
|
432
|
-
// Set all the styles
|
433
|
-
for ( name in options ) {
|
434
|
-
CQ.attr(
|
435
|
-
(type)?this.style:this,
|
436
|
-
name, CQ.prop( this, options[ name ], type, i, name ));
|
437
|
-
}
|
438
|
-
});
|
439
|
-
},
|
440
|
-
|
441
|
-
html: function( value ) {
|
442
|
-
return value === undefined ?
|
443
|
-
(this[0] ?
|
444
|
-
this[0].innerHTML.replace(CQHtmlRegEx, "") :
|
445
|
-
null) :
|
446
|
-
this.empty().append( value );
|
447
|
-
},
|
448
|
-
|
449
|
-
andSelf: function() { return this.add( this.prevObject ); },
|
450
|
-
|
451
|
-
/**
|
452
|
-
Returns YES if every element in the matching set matches the passed
|
453
|
-
selector. Remember that only simple selectors are supported in
|
454
|
-
CoreQuery.
|
455
|
-
|
456
|
-
@param {String} selector
|
457
|
-
@return {Boolean}
|
458
|
-
*/
|
459
|
-
is: function( selector ) {
|
460
|
-
return !!selector && CQ.multiFilter( selector, this ).length > 0;
|
461
|
-
},
|
462
|
-
|
463
|
-
/**
|
464
|
-
Returns YES if every element in the matching set has the named CSS
|
465
|
-
class.
|
466
|
-
|
467
|
-
@param {String} className
|
468
|
-
@returns {Boolean}
|
469
|
-
*/
|
470
|
-
hasClass: function( className ) {
|
471
|
-
return Array.prototype.every.call(this, function(elem) {
|
472
|
-
return (elem.nodeType===1) && CQ.className.has(elem, className) ;
|
473
|
-
});
|
474
|
-
},
|
475
|
-
|
476
|
-
/**
|
477
|
-
Provides a standardized, cross-browser method to get and set the
|
478
|
-
value attribute of a form element. Optionally pass a value to set or
|
479
|
-
no value to get.
|
480
|
-
|
481
|
-
@param {Object} value
|
482
|
-
@return {Object|CoreQuery}
|
483
|
-
*/
|
484
|
-
val: function( value ) {
|
485
|
-
|
486
|
-
// get the value
|
487
|
-
if ( value === undefined ) {
|
488
|
-
var elem = this[0];
|
489
|
-
if (elem) {
|
490
|
-
if(CQ.nodeName(elem, 'option')) {
|
491
|
-
return (elem.attributes.value || {}).specified ? elem.value : elem.text;
|
492
|
-
}
|
493
|
-
// We need to handle select boxes special
|
494
|
-
if ( CQ.nodeName( elem, "select" ) ) {
|
495
|
-
var index = elem.selectedIndex,
|
496
|
-
values = [],
|
497
|
-
options = elem.options,
|
498
|
-
one = elem.type === "select-one",
|
499
|
-
option;
|
500
|
-
|
501
|
-
// Nothing was selected
|
502
|
-
if ( index < 0 ) return null;
|
503
|
-
|
504
|
-
// Loop through all the selected options
|
505
|
-
var i, max = one ? index+1:options.length;
|
506
|
-
for (i = one ? index : 0; i < max; i++ ) {
|
507
|
-
option = options[ i ];
|
508
|
-
if ( option.selected ) {
|
509
|
-
value = CQ(option).val(); // get value
|
510
|
-
if (one) return value; // We don't need an array for one
|
511
|
-
values.push( value ); // Multi-Selects return an array
|
512
|
-
}
|
513
|
-
}
|
514
|
-
|
515
|
-
return values;
|
516
|
-
}
|
517
|
-
|
518
|
-
// Everything else, we just grab the value
|
519
|
-
return (elem.value || "").replace(/\r/g, "");
|
520
|
-
}
|
521
|
-
return undefined;
|
522
|
-
|
523
|
-
// otherwise set the value
|
524
|
-
} else {
|
525
|
-
if( typeof value === "number" ) value += ''; // force to string
|
526
|
-
this.each(function(){
|
527
|
-
if ( this.nodeType !== 1 ) return;
|
528
|
-
|
529
|
-
// handle radio/checkbox. set the checked value
|
530
|
-
if (SC.typeOf(value) === SC.T_ARRAY && (/radio|checkbox/).test(this.type)) {
|
531
|
-
this.checked = (CQ.inArray(this.value, value) >= 0 ||
|
532
|
-
CQ.inArray(this.name, value) >= 0);
|
533
|
-
|
534
|
-
// handle selects
|
535
|
-
} else if ( CQ.nodeName( this, "select" ) ) {
|
536
|
-
var values = CQ.makeArray(value);
|
537
|
-
CQ( "option", this ).each(function(){
|
538
|
-
this.selected = (CQ.inArray( this.value, values ) >= 0 ||
|
539
|
-
CQ.inArray( this.text, values ) >= 0);
|
540
|
-
});
|
541
|
-
|
542
|
-
if (!values.length) this.selectedIndex = -1;
|
543
|
-
|
544
|
-
// otherwise, just set the value property
|
545
|
-
} else this.value = value;
|
546
|
-
});
|
547
|
-
}
|
548
|
-
return this ;
|
549
|
-
},
|
550
|
-
|
551
|
-
/**
|
552
|
-
Returns a clone of the matching set of elements. Note that this will
|
553
|
-
NOT clone event handlers like the jQuery version does becaue CoreQuery
|
554
|
-
does not deal with events.
|
555
|
-
*/
|
556
|
-
clone: function() {
|
557
|
-
// Do the clone
|
558
|
-
var ret = this.map(function(){
|
559
|
-
if ( SC.browser.msie && !CQ.isXMLDoc(this) ) {
|
560
|
-
// IE copies events bound via attachEvent when
|
561
|
-
// using cloneNode. Calling detachEvent on the
|
562
|
-
// clone will also remove the events from the orignal
|
563
|
-
// In order to get around this, we use innerHTML.
|
564
|
-
// Unfortunately, this means some modifications to
|
565
|
-
// attributes in IE that are actually only stored
|
566
|
-
// as properties will not be copied (such as the
|
567
|
-
// the name attribute on an input).
|
568
|
-
var clone = this.cloneNode(true),
|
569
|
-
container = document.createElement("div");
|
570
|
-
container.appendChild(clone);
|
571
|
-
return CQ.clean([container.innerHTML])[0];
|
572
|
-
} else return this.cloneNode(true);
|
573
|
-
});
|
574
|
-
|
575
|
-
// Need to set the expando to null on the cloned set if it exists
|
576
|
-
// removeData doesn't work here, IE removes it from the original as well
|
577
|
-
// this is primarily for IE but the data expando shouldn't be copied
|
578
|
-
// over in any browser
|
579
|
-
var clone = ret.find("*").andSelf().each(function(){
|
580
|
-
if ( this[ SC.guidKey ] !== undefined ) {
|
581
|
-
this[ SC.guidKey ] = null;
|
582
|
-
}
|
583
|
-
});
|
584
|
-
|
585
|
-
// Return the cloned set
|
586
|
-
return ret;
|
587
|
-
},
|
588
|
-
|
589
|
-
/**
|
590
|
-
Set or retrieve the specified CSS value. Pass only a key to get the
|
591
|
-
current value, pass a key and value to change it.
|
592
|
-
|
593
|
-
@param {String} key
|
594
|
-
@param {Object} value
|
595
|
-
@returns {Object|CoreQuery}
|
596
|
-
*/
|
597
|
-
css: function( key, value ) {
|
598
|
-
// ignore negative width and height values
|
599
|
-
if ((key === 'width' || key === 'height') && parseFloat(value,0) < 0 ) {
|
600
|
-
value = undefined;
|
601
|
-
}
|
602
|
-
return this.attr( key, value, "curCSS" );
|
603
|
-
},
|
604
|
-
|
605
|
-
/**
|
606
|
-
Set or retrieve the text content of an element. Pass a text element to
|
607
|
-
update or set to end it.
|
608
|
-
|
609
|
-
@param {String} text
|
610
|
-
@returns {String|CoreQuery}
|
611
|
-
*/
|
612
|
-
text: function( text ) {
|
613
|
-
if ( text !== undefined && typeof text !== "object" && text != null ) {
|
614
|
-
return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
|
615
|
-
}
|
616
|
-
var ret = "";
|
617
|
-
|
618
|
-
CQ.each( text || this, function(){
|
619
|
-
CQ.each( this.childNodes, function(){
|
620
|
-
if ( this.nodeType !== 8 ){
|
621
|
-
ret += this.nodeType !== 1 ?
|
622
|
-
this.nodeValue : CQ.fn.text( [ this ] );
|
623
|
-
}
|
624
|
-
});
|
625
|
-
});
|
626
|
-
|
627
|
-
return ret;
|
628
|
-
},
|
629
|
-
|
630
|
-
/** Simple method to show elements without animation. */
|
631
|
-
show: function() {
|
632
|
-
var isVisible = SC.$.isVisible;
|
633
|
-
this.each(function() {
|
634
|
-
if (!isVisible(this)) {
|
635
|
-
|
636
|
-
// try to restore to natural layout as defined by CSS
|
637
|
-
this.style.display = this.oldblock || '';
|
638
|
-
|
639
|
-
// handle edge case where the CSS style is none so we can't detect
|
640
|
-
// the natural display state.
|
641
|
-
if (CQ.css(this,'display') === 'none') {
|
642
|
-
var elem = CQ('<' + this.tagName + '/>');
|
643
|
-
CQ('body').append(elem);
|
644
|
-
this.style.display = elem.css('display');
|
645
|
-
// edge case where we still can't get the display
|
646
|
-
if (this.style.display === 'none') this.style.display = 'block';
|
647
|
-
elem.remove(); elem = null;
|
648
|
-
}
|
649
|
-
}
|
650
|
-
}) ;
|
651
|
-
return this ;
|
652
|
-
},
|
653
|
-
|
654
|
-
/** Simple method to hide elements without animation. */
|
655
|
-
hide: function() {
|
656
|
-
var isVisible = SC.$.isVisible;
|
657
|
-
this.each(function() {
|
658
|
-
if (isVisible(this)) {
|
659
|
-
this.oldblock = this.oldblock || CQ.css(this,'display');
|
660
|
-
this.style.display = 'none';
|
661
|
-
}
|
662
|
-
}) ;
|
663
|
-
return this ;
|
664
|
-
},
|
665
|
-
|
666
|
-
/**
|
667
|
-
Low-level dom manipulation method used by append(), before(), after()
|
668
|
-
among others. Unlike the jQuery version, this version does not execute
|
669
|
-
<script> tags. That is generally not a good way to input scripts.
|
670
|
-
*/
|
671
|
-
domManip: function( args, table, reverse, callback ) {
|
672
|
-
var clone = this.length > 1, elems;
|
673
|
-
|
674
|
-
return this.each(function(){
|
675
|
-
if ( !elems ) {
|
676
|
-
elems = CQ.clean( args, this.ownerDocument );
|
677
|
-
if (reverse) elems.reverse();
|
678
|
-
}
|
679
|
-
|
680
|
-
var obj = this;
|
681
|
-
if ( table && CQ.nodeName( this, "table" ) && CQ.nodeName( elems[0], "tr" ) ) {
|
682
|
-
obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") );
|
683
|
-
}
|
684
|
-
|
685
|
-
CQ.each(elems, function(){
|
686
|
-
var elem = clone ? CQ( this ).clone( true )[0] : this;
|
687
|
-
// Inject the elements into the document
|
688
|
-
callback.call( obj, elem );
|
689
|
-
});
|
690
|
-
});
|
691
|
-
},
|
692
|
-
|
693
|
-
append: function() {
|
694
|
-
return this.domManip(arguments, true, false, function(elem){
|
695
|
-
if (this.nodeType === 1) this.appendChild( elem );
|
696
|
-
});
|
697
|
-
},
|
698
|
-
|
699
|
-
prepend: function() {
|
700
|
-
return this.domManip(arguments, true, true, function(elem){
|
701
|
-
if (this.nodeType === 1) this.insertBefore( elem, this.firstChild );
|
702
|
-
});
|
703
|
-
},
|
704
|
-
|
705
|
-
before: function() {
|
706
|
-
return this.domManip(arguments, false, false, function(elem){
|
707
|
-
this.parentNode.insertBefore( elem, this );
|
708
|
-
});
|
709
|
-
},
|
710
|
-
|
711
|
-
after: function() {
|
712
|
-
return this.domManip(arguments, false, true, function(elem){
|
713
|
-
this.parentNode.insertBefore( elem, this.nextSibling );
|
714
|
-
});
|
715
|
-
},
|
716
|
-
|
717
|
-
replaceWith: function( value ) {
|
718
|
-
return this.after( value ).remove();
|
719
|
-
},
|
720
|
-
|
721
|
-
removeData: function( key ){
|
722
|
-
return this.each(function(){ SC.removeData( this, key ); });
|
723
|
-
}
|
724
|
-
|
725
|
-
}) ;
|
726
|
-
|
727
|
-
// add useful helper methods to CoreQuery
|
728
|
-
CoreQuery.mixin(/** @scope SC.CoreQuery */ {
|
729
|
-
|
730
|
-
nodeName: function( elem, name ) {
|
731
|
-
return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
|
732
|
-
},
|
733
|
-
|
734
|
-
/**
|
735
|
-
Execute the passed callback on the elems array, returning an array with
|
736
|
-
the mapped values. Note that null return values are left out of the
|
737
|
-
resulting mapping array. This differs from the standard map() function
|
738
|
-
defined by SC.Enumerable and the JavaScript standard.
|
739
|
-
|
740
|
-
The callback must have the signature:
|
741
|
-
|
742
|
-
{{{
|
743
|
-
function(currentElement, currentIndex) { return mappedValue; }
|
744
|
-
}}}
|
745
|
-
|
746
|
-
Note that "this" on the function will also be the currentElement.
|
747
|
-
|
748
|
-
@param {Array} elems
|
749
|
-
@param {Function} callback
|
750
|
-
@returns {Array} mapped elements
|
751
|
-
*/
|
752
|
-
map: function( elems, callback ) {
|
753
|
-
var ret = [], value, i, length;
|
754
|
-
|
755
|
-
// Go through the array, translating each of the items to their
|
756
|
-
// new value (or values).
|
757
|
-
for ( i = 0, length = elems.length; i < length; i++ ) {
|
758
|
-
value = callback( elems[ i ], i );
|
759
|
-
|
760
|
-
if ( value != null ) ret[ ret.length ] = value;
|
761
|
-
}
|
762
|
-
|
763
|
-
return ret.concat.apply([],ret) ;
|
764
|
-
},
|
765
|
-
|
766
|
-
/**
|
767
|
-
Executes the passed callback on each item in the iterable object
|
768
|
-
passed. This deviates from the standard getEach() method defined in
|
769
|
-
SC.Enumerable and in the JavaScript standards.
|
770
|
-
|
771
|
-
@param {Array} object
|
772
|
-
@param {Function} callback
|
773
|
-
@param {Object} args internal use only
|
774
|
-
@returns {Object} object
|
775
|
-
*/
|
776
|
-
each: function( object, callback, args ) {
|
777
|
-
var name, i = 0, length = object.length;
|
778
|
-
|
779
|
-
if ( args ) {
|
780
|
-
if ( length === undefined ) {
|
781
|
-
for ( name in object ) {
|
782
|
-
if ( callback.apply( object[ name ], args ) === false ) break;
|
783
|
-
}
|
784
|
-
} else {
|
785
|
-
for ( ; i < length; ) {
|
786
|
-
if ( callback.apply( object[ i++ ], args ) === false ) break;
|
787
|
-
}
|
788
|
-
}
|
789
|
-
// A special, fast, case for the most common use of each
|
790
|
-
} else {
|
791
|
-
if ( length === undefined ) {
|
792
|
-
for ( name in object ) {
|
793
|
-
if ( callback.call( object[ name ], name, object[ name ] ) === false ) break;
|
794
|
-
}
|
795
|
-
} else {
|
796
|
-
for ( var value = object[0];
|
797
|
-
i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
|
798
|
-
}
|
799
|
-
}
|
800
|
-
|
801
|
-
return object;
|
802
|
-
},
|
803
|
-
|
804
|
-
isXMLDoc: function( elem ) {
|
805
|
-
return elem.documentElement && !elem.body ||
|
806
|
-
elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
|
807
|
-
},
|
808
|
-
|
809
|
-
clean: function( elems, context ) {
|
810
|
-
var ret = [];
|
811
|
-
context = context || document;
|
812
|
-
// !context.createElement fails in IE with an error but returns typeof 'object'
|
813
|
-
if (typeof context.createElement == 'undefined') {
|
814
|
-
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
|
815
|
-
}
|
816
|
-
|
817
|
-
CQ.each(elems, function(i, elem){
|
818
|
-
if ( typeof elem === 'number' ) elem += '';
|
819
|
-
if ( !elem ) return;
|
820
|
-
|
821
|
-
// Convert html string into DOM nodes
|
822
|
-
if ( typeof elem === "string" ) {
|
823
|
-
// Fix "XHTML"-style tags in all browsers
|
824
|
-
elem = elem.replace(tagSearchRegEx, function(all, front, tag){
|
825
|
-
return tag.match(xmlTagsRegEx) ?
|
826
|
-
all :
|
827
|
-
front + "></" + tag + ">";
|
828
|
-
});
|
829
|
-
|
830
|
-
// Trim whitespace, otherwise indexOf won't work as expected
|
831
|
-
var tags = elem.replace(trimWhiteSpaceRegEx, "").substring(0, 10).toLowerCase(),
|
832
|
-
div = context.createElement("div");
|
833
|
-
|
834
|
-
var wrap =
|
835
|
-
// option or optgroup
|
836
|
-
!tags.indexOf("<opt") &&
|
837
|
-
[ 1, "<select multiple='multiple'>", "</select>" ] ||
|
838
|
-
|
839
|
-
!tags.indexOf("<leg") &&
|
840
|
-
[ 1, "<fieldset>", "</fieldset>" ] ||
|
841
|
-
|
842
|
-
tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
|
843
|
-
[ 1, "<table>", "</table>" ] ||
|
844
|
-
|
845
|
-
!tags.indexOf("<tr") &&
|
846
|
-
[ 2, "<table><tbody>", "</tbody></table>" ] ||
|
847
|
-
|
848
|
-
// <thead> matched above
|
849
|
-
(!tags.indexOf("<td") || !tags.indexOf("<th")) &&
|
850
|
-
[ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
|
851
|
-
|
852
|
-
!tags.indexOf("<col") &&
|
853
|
-
[ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
|
854
|
-
|
855
|
-
// IE can't serialize <link> and <script> tags normally
|
856
|
-
SC.browser.msie &&
|
857
|
-
[ 1, "div<div>", "</div>" ] ||
|
858
|
-
|
859
|
-
[ 0, "", "" ];
|
860
|
-
|
861
|
-
// Go to html and back, then peel off extra wrappers
|
862
|
-
div.innerHTML = wrap[1] + elem + wrap[2];
|
863
|
-
|
864
|
-
// Move to the right depth
|
865
|
-
while ( wrap[0]-- ) div = div.lastChild;
|
866
|
-
|
867
|
-
// Remove IE's autoinserted <tbody> from table fragments
|
868
|
-
if ( SC.browser.msie ) {
|
869
|
-
|
870
|
-
// String was a <table>, *may* have spurious <tbody>
|
871
|
-
var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?
|
872
|
-
div.firstChild && div.firstChild.childNodes :
|
873
|
-
|
874
|
-
// String was a bare <thead> or <tfoot>
|
875
|
-
wrap[1] === "<table>" && tags.indexOf("<tbody") < 0 ?
|
876
|
-
div.childNodes :
|
877
|
-
[];
|
878
|
-
|
879
|
-
for ( var j = tbody.length - 1; j >= 0 ; --j ) {
|
880
|
-
if ( CQ.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
|
881
|
-
tbody[ j ].parentNode.removeChild( tbody[ j ] );
|
882
|
-
}
|
883
|
-
}
|
884
|
-
// IE completely kills leading whitespace when innerHTML is used
|
885
|
-
if ( /^\s/.test( elem ) ) {
|
886
|
-
div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
|
887
|
-
}
|
888
|
-
}
|
889
|
-
|
890
|
-
elem = CQ.makeArray( div.childNodes );
|
891
|
-
}
|
892
|
-
|
893
|
-
if (elem.length === 0 && (!CQ.nodeName( elem, "form" ) && !CQ.nodeName( elem, "select" ))) return;
|
894
|
-
|
895
|
-
if (elem[0] === undefined || CQ.nodeName( elem, "form" ) || elem.options) ret.push( elem );
|
896
|
-
|
897
|
-
else ret = CQ.merge( ret, elem );
|
898
|
-
|
899
|
-
});
|
900
|
-
|
901
|
-
return ret;
|
902
|
-
},
|
903
|
-
|
904
|
-
/**
|
905
|
-
Core element finder function in SC.CoreQuery. CoreQuery supports only
|
906
|
-
a very simple set of finders. Namely, you can specify the following
|
907
|
-
simple types of selectors:
|
908
|
-
|
909
|
-
- .class-name: this will find all elements with the matching class name
|
910
|
-
- #id: this will find all elements matching the ID
|
911
|
-
- tagname: this will find all elements with the matching tags.
|
912
|
-
|
913
|
-
You can also do some basic joined expressions like:
|
914
|
-
|
915
|
-
{{{
|
916
|
-
tagname.class-name and tagname#id
|
917
|
-
}}}
|
918
|
-
|
919
|
-
Finally, you can do simple compound searches like
|
920
|
-
|
921
|
-
{{{
|
922
|
-
tagname .class-name tagname#id
|
923
|
-
}}}
|
924
|
-
|
925
|
-
You can also pass multiple selectors separated by commas. The return
|
926
|
-
set will be the OR of all the result set.
|
927
|
-
|
928
|
-
{{{
|
929
|
-
#item1,#item2,#item3
|
930
|
-
}}}
|
931
|
-
|
932
|
-
You cannot do any child searches, psuedo-selectors or other complex
|
933
|
-
searches. These are only the kinds of selectors that can be parsed
|
934
|
-
quickly and use built-in methods on the browser.
|
935
|
-
|
936
|
-
@param {String} t selector
|
937
|
-
@param {Element} context
|
938
|
-
@returns {Array} matched elements
|
939
|
-
*/
|
940
|
-
find: function( t, context ) {
|
941
|
-
var ret;
|
942
|
-
|
943
|
-
// Quickly handle non-string expressions
|
944
|
-
if ( typeof t !== "string" ) return [ t ];
|
945
|
-
|
946
|
-
// if the selector contains commas, then we actually want to search
|
947
|
-
// multiple selectors.
|
948
|
-
if (t.indexOf(',')>=0) {
|
949
|
-
ret = t.split(',').map(function(sel) {
|
950
|
-
return CQ.find(sel,context);
|
951
|
-
});
|
952
|
-
|
953
|
-
// flatten arrays
|
954
|
-
return ret.concat.apply([],ret).uniq() ;
|
955
|
-
}
|
956
|
-
|
957
|
-
// check to make sure context is a DOM element or a document
|
958
|
-
if ( context && context.nodeType !== 1 && context.nodeType !== 9) {
|
959
|
-
return [];
|
960
|
-
}
|
961
|
-
|
962
|
-
// Set the correct context (if none is provided)
|
963
|
-
context = context || document;
|
964
|
-
|
965
|
-
// Initialize the search. split the selector into pieces
|
966
|
-
ret = [context];
|
967
|
-
var nodeName, inFindMode = YES,
|
968
|
-
parts = t.match(quickSplit), len = parts.length, m ;
|
969
|
-
|
970
|
-
// loop through each part and either find or filter as needed
|
971
|
-
for(var idx=0;idx<len;idx++) {
|
972
|
-
t = parts[idx]; // the current selector to parse
|
973
|
-
|
974
|
-
// handle space separators. this just resets to find mode
|
975
|
-
if (t === ' ' || t === '') {
|
976
|
-
inFindMode = YES ;
|
977
|
-
|
978
|
-
// if we are in find mode, then use the current selector to
|
979
|
-
// find new elements that are children. at the end, leave findMode.
|
980
|
-
} else if (inFindMode) {
|
981
|
-
|
982
|
-
// split into parts to test result
|
983
|
-
m = singleClass.exec(t);
|
984
|
-
|
985
|
-
// handle special case where we get a tag name followed by an ID.
|
986
|
-
// in this case, just swap the two and proceed.
|
987
|
-
if ((m[1] === '') && (idx<(len-1)) && (parts[idx+1].charAt(0)==='#')) {
|
988
|
-
t = parts[idx+1]; parts[idx+1] = parts[idx]; // swap
|
989
|
-
m = singleClass.exec(t); // reparse
|
990
|
-
}
|
991
|
-
|
992
|
-
// now loop through and find elements based on tag
|
993
|
-
var next = [], retlen = ret.length, retidx, cur, val = m[2], found;
|
994
|
-
for(retidx=0;retidx<retlen;retidx++) {
|
995
|
-
cur = ret[retidx];
|
996
|
-
switch(m[1]) {
|
997
|
-
case '': // tag
|
998
|
-
if (!val) val = '*';
|
999
|
-
// Handle IE7 being really dumb about <object>s
|
1000
|
-
if ( val === "*" && cur.nodeName.toLowerCase() === "object" ) {
|
1001
|
-
val = "param";
|
1002
|
-
}
|
1003
|
-
|
1004
|
-
next = CQ.merge(next, cur.getElementsByTagName(val));
|
1005
|
-
break;
|
1006
|
-
|
1007
|
-
case '#': // id
|
1008
|
-
// handle special case where we are searching the document
|
1009
|
-
if (cur === document) {
|
1010
|
-
found = document.getElementById(val) ;
|
1011
|
-
|
1012
|
-
// if this is IE, verify that it didn't search by name
|
1013
|
-
if (SC.browser.msie && found && found.getAttribute('id')!==val){
|
1014
|
-
found = NO; // clear
|
1015
|
-
} else {
|
1016
|
-
if (found) next.push(found) ;
|
1017
|
-
found = YES ; // do not do slow search
|
1018
|
-
}
|
1019
|
-
} else found = NO;
|
1020
|
-
|
1021
|
-
// Otherwise, we have to do a slow search
|
1022
|
-
if (!found) {
|
1023
|
-
// the return value of getElementsByTagName is not an Array
|
1024
|
-
// so we need to fake it.
|
1025
|
-
found = cur.getElementsByTagName('*') ;
|
1026
|
-
found = Array.prototype.find.call(found, function(el){
|
1027
|
-
return el.getAttribute && (el.getAttribute('id')===val);
|
1028
|
-
}) ;
|
1029
|
-
if (found) next.push(found) ;
|
1030
|
-
}
|
1031
|
-
break ;
|
1032
|
-
|
1033
|
-
case '.': // class
|
1034
|
-
if (cur.getElementsByClassName) {
|
1035
|
-
next = CQ.merge(next, cur.getElementsByClassName(val));
|
1036
|
-
} else {
|
1037
|
-
next = CQ.merge(next,
|
1038
|
-
CQ.classFilter(cur.getElementsByTagName('*'),val));
|
1039
|
-
}
|
1040
|
-
break;
|
1041
|
-
default:
|
1042
|
-
// do nothing
|
1043
|
-
}
|
1044
|
-
}
|
1045
|
-
delete ret;
|
1046
|
-
ret = next ; // swap array
|
1047
|
-
inFindMode = NO;
|
1048
|
-
|
1049
|
-
// if we are not in findMode then simply filter the results.
|
1050
|
-
} else ret = CQ.filter(t, ret) ;
|
1051
|
-
}
|
1052
|
-
|
1053
|
-
// remove original context if still there
|
1054
|
-
if (ret && ret[0] == context) ret.shift();
|
1055
|
-
return ret.uniq() ; // make sure no duplicated are returned
|
1056
|
-
},
|
1057
|
-
|
1058
|
-
classFilter: function(r,m,not){
|
1059
|
-
m = " " + m + " ";
|
1060
|
-
var tmp = [], pass;
|
1061
|
-
for ( var i = 0; r[i]; i++ ) {
|
1062
|
-
pass = (" " + r[i].className + " ").indexOf( m ) >= 0;
|
1063
|
-
if ( !not && pass || not && !pass ) {
|
1064
|
-
tmp.push( r[i] );
|
1065
|
-
}
|
1066
|
-
}
|
1067
|
-
return tmp;
|
1068
|
-
},
|
1069
|
-
|
1070
|
-
/**
|
1071
|
-
Filters a set of elements according to those matching the passed
|
1072
|
-
selector. The selector can contain only tag, class, and id options.
|
1073
|
-
|
1074
|
-
The CoreQuery filter function is only capable of handling simple querys
|
1075
|
-
such as a tag, class or ID. You cannot combine them. Instead call
|
1076
|
-
filter several times.
|
1077
|
-
|
1078
|
-
@param {String} t the selector to filter by
|
1079
|
-
@param {Array} r the element to filter
|
1080
|
-
@param {Boolean} not invert filter
|
1081
|
-
@returns {Array} filtered array
|
1082
|
-
*/
|
1083
|
-
filter: function(t,r,not) {
|
1084
|
-
// split into parts to test result
|
1085
|
-
var m = singleClass.exec(t), val = m[2], kind = m[1], filter ;
|
1086
|
-
if (kind === '.') { // special case class
|
1087
|
-
return CQ.classFilter(CQ.makeArray(r), val, not) ;
|
1088
|
-
} else {
|
1089
|
-
if (kind === '#') { // id
|
1090
|
-
filter = function(el) {
|
1091
|
-
var ret=el && el.getAttribute && (el.getAttribute('id') === val);
|
1092
|
-
return (not) ? !ret : ret ;
|
1093
|
-
} ;
|
1094
|
-
|
1095
|
-
} else { // tag
|
1096
|
-
filter = function(el) {
|
1097
|
-
var ret= CQ.nodeName(el, val);
|
1098
|
-
return (not) ? !ret : ret ;
|
1099
|
-
} ;
|
1100
|
-
}
|
1101
|
-
|
1102
|
-
// the return value may not be a real instance of Array, so fake it.
|
1103
|
-
return Array.prototype.filter.call(CQ.makeArray(r), filter) ;
|
1104
|
-
}
|
1105
|
-
},
|
1106
|
-
|
1107
|
-
/** @private Accepts filters separated by commas. */
|
1108
|
-
multiFilter: function( expr, elems, not ) {
|
1109
|
-
expr = expr.indexOf(',') ? expr.split(',') : [expr];
|
1110
|
-
var loc=expr.length,cur,ret=[];
|
1111
|
-
while(--loc >= 0) { // unit tests expect reverse iteration
|
1112
|
-
cur = CQ.filter(expr[loc].trim(), elems, not) ;
|
1113
|
-
ret = not ? elems = cur : CQ.merge(cur,ret);
|
1114
|
-
}
|
1115
|
-
return ret ;
|
1116
|
-
},
|
1117
|
-
|
1118
|
-
/**
|
1119
|
-
Merge two result sets together. This method knows how to handle
|
1120
|
-
the special iterables returned by IE as well. Used internally.
|
1121
|
-
*/
|
1122
|
-
merge: function(first, second) {
|
1123
|
-
// We have to loop this way because IE & Opera overwrite the length
|
1124
|
-
// expando of getElementsByTagName
|
1125
|
-
var i = 0, elem, pos = first.length;
|
1126
|
-
// Also, we need to make sure that the correct elements are being
|
1127
|
-
// returned (IE returns comment nodes in a '*' query)
|
1128
|
-
if ( SC.browser.msie ) {
|
1129
|
-
while ( elem = second[ i++ ] ) {
|
1130
|
-
if ( elem.nodeType !== 8 ) first[ pos++ ] = elem;
|
1131
|
-
}
|
1132
|
-
|
1133
|
-
} else {
|
1134
|
-
while ( elem = second[ i++ ] ) first[ pos++ ] = elem;
|
1135
|
-
}
|
1136
|
-
|
1137
|
-
return first;
|
1138
|
-
},
|
1139
|
-
|
1140
|
-
// makeArray is the CoreQuery version of $A().
|
1141
|
-
makeArray: function(array) {
|
1142
|
-
var ret = [];
|
1143
|
-
|
1144
|
-
if( !SC.none(array) ){
|
1145
|
-
var i = array.length;
|
1146
|
-
// The window, strings (and functions) also have 'length'
|
1147
|
-
if( i == null || typeof array === 'string' || array.setInterval ) {
|
1148
|
-
ret[0] = array;
|
1149
|
-
}
|
1150
|
-
else {
|
1151
|
-
while( i ) ret[--i] = array[i];
|
1152
|
-
}
|
1153
|
-
}
|
1154
|
-
|
1155
|
-
return ret;
|
1156
|
-
},
|
1157
|
-
|
1158
|
-
inArray: function(elem,array) {
|
1159
|
-
return array.indexOf ? array.indexOf(elem) : Array.prototype.indexOf.call(array, elem);
|
1160
|
-
},
|
1161
|
-
|
1162
|
-
// Check to see if the W3C box model is being used
|
1163
|
-
boxModel: !SC.browser.msie || document.compatMode === "CSS1Compat",
|
1164
|
-
|
1165
|
-
props: {
|
1166
|
-
"for": "htmlFor",
|
1167
|
-
"class": "className",
|
1168
|
-
"float": styleFloat,
|
1169
|
-
cssFloat: styleFloat,
|
1170
|
-
styleFloat: styleFloat,
|
1171
|
-
readonly: "readOnly",
|
1172
|
-
maxlength: "maxLength",
|
1173
|
-
cellspacing: "cellSpacing",
|
1174
|
-
rowspan: "rowSpan"
|
1175
|
-
},
|
1176
|
-
|
1177
|
-
/** @private Prepares a property string for insertion. */
|
1178
|
-
prop: function( elem, value, type, i, name ) {
|
1179
|
-
// Handle executable functions
|
1180
|
-
if (SC.typeOf(value) === SC.T_FUNCTION) value = value.call(elem, i);
|
1181
|
-
|
1182
|
-
// Handle passing in a number to a CSS property
|
1183
|
-
return value && (typeof value === "number") && type === "curCSS" && !exclude.test( name ) ? value + "px" : value;
|
1184
|
-
},
|
1185
|
-
|
1186
|
-
|
1187
|
-
grep: function( elems, callback, inv ) {
|
1188
|
-
var ret = [];
|
1189
|
-
|
1190
|
-
// Go through the array, only saving the items
|
1191
|
-
// that pass the validator function
|
1192
|
-
for ( var i = 0, length = elems.length; i < length; i++ ) {
|
1193
|
-
if ( !inv != !callback( elems[ i ], i ) ) ret.push( elems[ i ] );
|
1194
|
-
}
|
1195
|
-
return ret;
|
1196
|
-
},
|
1197
|
-
|
1198
|
-
/** @private internal use only */
|
1199
|
-
className: {
|
1200
|
-
|
1201
|
-
// internal only, use addClass("class")
|
1202
|
-
add: function( elem, classNames ) {
|
1203
|
-
var has = CQ.className.has ;
|
1204
|
-
CQ.each((classNames || "").split(checkforSpaceRegEx), function(i, className){
|
1205
|
-
if ( elem.nodeType === 1 && !has( elem.className, className ) ) {
|
1206
|
-
elem.className += (elem.className ? " " : "") + className;
|
1207
|
-
}
|
1208
|
-
});
|
1209
|
-
},
|
1210
|
-
|
1211
|
-
// internal only, use removeClass("class")
|
1212
|
-
remove: function( elem, classNames ) {
|
1213
|
-
if (elem.nodeType === 1) {
|
1214
|
-
elem.className = classNames !== undefined ?
|
1215
|
-
CQ.grep(elem.className.split(checkforSpaceRegEx), function(className){
|
1216
|
-
return !CQ.className.has( classNames, className );
|
1217
|
-
}).join(" ") : "";
|
1218
|
-
}
|
1219
|
-
},
|
1220
|
-
|
1221
|
-
// internal only, use hasClass("class")
|
1222
|
-
has: function( elem, className ) {
|
1223
|
-
return elem && CQ.inArray( className, (elem.className || elem).toString().split(checkforSpaceRegEx) ) > -1;
|
1224
|
-
}
|
1225
|
-
},
|
1226
|
-
|
1227
|
-
/** @private A method for quickly swapping in/out CSS properties to get
|
1228
|
-
correct calculations */
|
1229
|
-
swap: function( elem, options, callback, direction, arg ) {
|
1230
|
-
var old = {}, name;
|
1231
|
-
// Remember the old values, and insert the new ones
|
1232
|
-
for ( name in options ) {
|
1233
|
-
old[ name ] = elem.style[ name ];
|
1234
|
-
elem.style[ name ] = options[ name ];
|
1235
|
-
}
|
1236
|
-
|
1237
|
-
var ret = callback(elem, direction, arg );
|
1238
|
-
|
1239
|
-
// Revert the old values
|
1240
|
-
for ( name in options ) elem.style[ name ] = old[ name ];
|
1241
|
-
return ret ;
|
1242
|
-
},
|
1243
|
-
|
1244
|
-
/** returns a normalized value for the specified style name. */
|
1245
|
-
css: function( elem, name, force ) {
|
1246
|
-
// handle special case for width/height
|
1247
|
-
if ( name === "width" || name === "height" ) {
|
1248
|
-
var val, which = (name === "width") ? LEFT_RIGHT : TOP_BOTTOM,
|
1249
|
-
props = CSS_DISPLAY_PROPS;
|
1250
|
-
|
1251
|
-
val = SC.$.isVisible(elem) ? getWH(elem,name,which) : CQ.swap(elem,props,getWH,name,which) ;
|
1252
|
-
|
1253
|
-
return Math.max(0, val);
|
1254
|
-
}
|
1255
|
-
|
1256
|
-
return CQ.curCSS( elem, name, force );
|
1257
|
-
},
|
1258
|
-
|
1259
|
-
/** @private internal method to retrieve current CSS. */
|
1260
|
-
curCSS: function( elem, name, force ) {
|
1261
|
-
var ret, style = elem.style;
|
1262
|
-
|
1263
|
-
// We need to handle opacity special in IE
|
1264
|
-
if ( name === "opacity" && SC.browser.msie ) {
|
1265
|
-
ret = CQ.attr( style, "opacity" );
|
1266
|
-
return ret === "" ? "1" : ret;
|
1267
|
-
}
|
1268
|
-
|
1269
|
-
// Opera sometimes will give the wrong display answer, this fixes it,
|
1270
|
-
// see #2037
|
1271
|
-
if ( SC.browser.opera && name === "display" ) {
|
1272
|
-
var save = style.outline;
|
1273
|
-
style.outline = "0 solid black";
|
1274
|
-
style.outline = save;
|
1275
|
-
}
|
1276
|
-
|
1277
|
-
// Make sure we're using the right name for getting the float value
|
1278
|
-
var isFloat = name.match(/float/i);
|
1279
|
-
if (isFloat) name = styleFloat;
|
1280
|
-
|
1281
|
-
// simple case to collect the value
|
1282
|
-
if ( !force && style && style[ name ] ) {
|
1283
|
-
ret = style[ name ];
|
1284
|
-
|
1285
|
-
// otherwise try to use cached computed value
|
1286
|
-
} else if ( defaultView.getComputedStyle ) {
|
1287
|
-
|
1288
|
-
// Only "float" is needed here
|
1289
|
-
if (isFloat) name = "float";
|
1290
|
-
|
1291
|
-
name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
|
1292
|
-
|
1293
|
-
// get the computed style and verify its not broken.
|
1294
|
-
var computedStyle = defaultView.getComputedStyle( elem, null );
|
1295
|
-
if ( computedStyle && !styleIsBorked(elem, defaultView) ) {
|
1296
|
-
ret = computedStyle.getPropertyValue( name );
|
1297
|
-
|
1298
|
-
// If the element isn't reporting its values properly in Safari
|
1299
|
-
// then some display: none elements are involved
|
1300
|
-
} else {
|
1301
|
-
var swap = [], stack = [], a = elem, i = 0, swLen, stLen;
|
1302
|
-
|
1303
|
-
// Locate all of the parent display: none elements
|
1304
|
-
for ( ; a && styleIsBorked(a); a = a.parentNode ) stack.unshift(a);
|
1305
|
-
|
1306
|
-
// Go through and make them visible, but in reverse
|
1307
|
-
// (It would be better if we knew the exact display type that they
|
1308
|
-
// had)
|
1309
|
-
for (stLen = stack.length ; i < stLen; i++ ) {
|
1310
|
-
var stackTmp =stack[i];
|
1311
|
-
if (stackTmp && stackTmp.style && styleIsBorked(stackTmp)) {
|
1312
|
-
swap[i] = stackTmp.style.display;
|
1313
|
-
stackTmp.style.display = "block";
|
1314
|
-
}
|
1315
|
-
}
|
1316
|
-
|
1317
|
-
// Since we flip the display style, we have to handle that
|
1318
|
-
// one special, otherwise get the value
|
1319
|
-
ret = (name === "display" && swap[stack.length-1]!==null) ? "none" :
|
1320
|
-
(computedStyle && computedStyle.getPropertyValue(name)) || "";
|
1321
|
-
|
1322
|
-
// Finally, revert the display styles back
|
1323
|
-
for ( i = 0, swLen = swap.length; i < swLen; i++ ) {
|
1324
|
-
if (swap[i]!==null) stack[i].style.display = swap[i];
|
1325
|
-
}
|
1326
|
-
}
|
1327
|
-
|
1328
|
-
// We should always get a number back from opacity
|
1329
|
-
if (name === "opacity" && ret === "") ret = "1";
|
1330
|
-
|
1331
|
-
} else if (elem.currentStyle) {
|
1332
|
-
// var camelCase = name.camelize();
|
1333
|
-
|
1334
|
-
ret = elem.currentStyle[ name ] || elem.currentStyle[ name.camelize() ];
|
1335
|
-
|
1336
|
-
// From the awesome hack by Dean Edwards
|
1337
|
-
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
|
1338
|
-
// If we're not dealing with a regular pixel number
|
1339
|
-
// but a number that has a weird ending, we need to convert it to
|
1340
|
-
// pixels
|
1341
|
-
if (!(/^\d+(px)?$/i).test(ret) && (/^\d/).test(ret)) {
|
1342
|
-
// Remember the original values
|
1343
|
-
var left = style.left, rsLeft = elem.runtimeStyle.left;
|
1344
|
-
|
1345
|
-
// Put in the new values to get a computed value out
|
1346
|
-
elem.runtimeStyle.left = elem.currentStyle.left;
|
1347
|
-
style.left = ret || 0;
|
1348
|
-
ret = style.pixelLeft + "px";
|
1349
|
-
|
1350
|
-
// Revert the changed values
|
1351
|
-
style.left = left;
|
1352
|
-
elem.runtimeStyle.left = rsLeft;
|
1353
|
-
}
|
1354
|
-
}
|
1355
|
-
|
1356
|
-
return ret;
|
1357
|
-
},
|
1358
|
-
|
1359
|
-
/** @private
|
1360
|
-
returns all of the actual nodes (excluding whitespace, comments, etc) in
|
1361
|
-
the passed element.
|
1362
|
-
*/
|
1363
|
-
dir: function( elem, dir ){
|
1364
|
-
var matched = [], cur = elem[dir];
|
1365
|
-
while ( cur && cur != document ) {
|
1366
|
-
if ( cur.nodeType === 1 ) matched.push( cur );
|
1367
|
-
cur = cur[dir];
|
1368
|
-
}
|
1369
|
-
return matched;
|
1370
|
-
},
|
1371
|
-
|
1372
|
-
/** @private
|
1373
|
-
Returns the nth actual node (not whitespace, comment, etc) in the passed
|
1374
|
-
element.
|
1375
|
-
*/
|
1376
|
-
nth: function(cur,result,dir,elem){
|
1377
|
-
result = result || 1;
|
1378
|
-
var num = 0;
|
1379
|
-
for ( ; cur; cur = cur[dir] ) {
|
1380
|
-
if ( cur.nodeType === 1 && ++num == result ) break;
|
1381
|
-
}
|
1382
|
-
return cur;
|
1383
|
-
},
|
1384
|
-
|
1385
|
-
/** @private Finds the regular element-style siblings. */
|
1386
|
-
sibling: function( n, elem ) {
|
1387
|
-
var r = [];
|
1388
|
-
for ( ; n; n = n.nextSibling ) {
|
1389
|
-
if ( n.nodeType === 1 && n != elem ) r.push( n );
|
1390
|
-
}
|
1391
|
-
return r;
|
1392
|
-
},
|
1393
|
-
|
1394
|
-
/** Primitive helper can read or update an attribute on an element. */
|
1395
|
-
attr: function( elem, name, value ) {
|
1396
|
-
// don't set attributes on text and comment nodes
|
1397
|
-
if (!elem || elem.nodeType === 3 || elem.nodeType === 8) return undefined;
|
1398
|
-
|
1399
|
-
var notxml = !CQ.isXMLDoc( elem ),
|
1400
|
-
set = value !== undefined,
|
1401
|
-
msie = SC.browser.msie;
|
1402
|
-
|
1403
|
-
// Try to normalize/fix the name
|
1404
|
-
name = notxml && CQ.props[ name ] || name;
|
1405
|
-
|
1406
|
-
// Only do all the following if this is a node (faster for style)
|
1407
|
-
// IE elem.getAttribute passes even for style
|
1408
|
-
if ( elem.tagName ) {
|
1409
|
-
|
1410
|
-
// These attributes require special treatment
|
1411
|
-
var special = specialAttributesRegEx.test( name );
|
1412
|
-
|
1413
|
-
// Safari mis-reports the default selected property of a hidden option
|
1414
|
-
// Accessing the parent's selectedIndex property fixes it
|
1415
|
-
if ( name === "selected" && elem.parentNode ) {
|
1416
|
-
elem.parentNode.selectedIndex;
|
1417
|
-
}
|
1418
|
-
|
1419
|
-
// If applicable, access the attribute via the DOM 0 way
|
1420
|
-
if ( name in elem && notxml && !special ) {
|
1421
|
-
if ( set ){
|
1422
|
-
// We can't allow the type property to be changed (since it causes
|
1423
|
-
// problems in IE)
|
1424
|
-
if ( name === "type" && CQ.nodeName( elem, "input" ) && elem.parentNode ) {
|
1425
|
-
throw "type property can't be changed";
|
1426
|
-
}
|
1427
|
-
|
1428
|
-
elem[ name ] = value;
|
1429
|
-
}
|
1430
|
-
|
1431
|
-
// browsers index elements by id/name on forms, give priority to
|
1432
|
-
// attributes.
|
1433
|
-
if( CQ.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
|
1434
|
-
return elem.getAttributeNode( name ).nodeValue;
|
1435
|
-
}
|
1436
|
-
|
1437
|
-
// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
|
1438
|
-
// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
|
1439
|
-
if ( name === "tabIndex" ) {
|
1440
|
-
var attributeNode = elem.getAttributeNode( "tabIndex" );
|
1441
|
-
return attributeNode && attributeNode.specified
|
1442
|
-
? attributeNode.value
|
1443
|
-
: elem.nodeName.match(tagsWithTabIndexRegEx)
|
1444
|
-
? 0
|
1445
|
-
: elem.nodeName.match(/^(a|area)$/i) && elem.href
|
1446
|
-
? 0
|
1447
|
-
: undefined;
|
1448
|
-
}
|
1449
|
-
|
1450
|
-
return elem[ name ];
|
1451
|
-
}
|
1452
|
-
|
1453
|
-
if ( msie && notxml && name === "style" ) {
|
1454
|
-
return CQ.attr( elem.style, "cssText", value );
|
1455
|
-
}
|
1456
|
-
// convert the value to a string (all browsers do this but IE) see
|
1457
|
-
// #1070 (jQuery)
|
1458
|
-
if ( set ) elem.setAttribute( name, "" + value );
|
1459
|
-
|
1460
|
-
// Some attributes require a special call on IE
|
1461
|
-
var attr = (msie && notxml && special)
|
1462
|
-
? elem.getAttribute( name, 2 )
|
1463
|
-
: elem.getAttribute( name );
|
1464
|
-
|
1465
|
-
// Non-existent attributes return null, we normalize to undefined
|
1466
|
-
return attr === null ? undefined : attr;
|
1467
|
-
}
|
1468
|
-
|
1469
|
-
// elem is actually elem.style ... set the style
|
1470
|
-
|
1471
|
-
// IE uses filters for opacity
|
1472
|
-
if ( msie && name === "opacity" ) {
|
1473
|
-
if ( set ) {
|
1474
|
-
// IE has trouble with opacity if it does not have layout
|
1475
|
-
// Force it by setting the zoom level
|
1476
|
-
elem.zoom = 1;
|
1477
|
-
|
1478
|
-
// Set the alpha filter to set the opacity
|
1479
|
-
elem.filter = (elem.filter || "").replace( alphaDetectRegEx, "" ) +
|
1480
|
-
(parseInt(value,0) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
|
1481
|
-
}
|
1482
|
-
|
1483
|
-
return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
|
1484
|
-
(parseFloat( elem.filter.match(alphaReplaceRegEx)[1] ) / 100) + '':
|
1485
|
-
"";
|
1486
|
-
}
|
1487
|
-
|
1488
|
-
name = name.camelize();
|
1489
|
-
if ( set ) elem[ name ] = value;
|
1490
|
-
|
1491
|
-
return elem[ name ];
|
1492
|
-
}
|
1493
|
-
|
1494
|
-
}) ;
|
1495
|
-
|
1496
|
-
CQ.fn.init.prototype = CQ.fn;
|
1497
|
-
|
1498
|
-
// Create a new generic handlers.
|
1499
|
-
CQ.each({
|
1500
|
-
parent: function(elem){return elem.parentNode;},
|
1501
|
-
|
1502
|
-
parents: function(elem){return CQ.dir(elem,"parentNode");},
|
1503
|
-
|
1504
|
-
next: function(elem){return CQ.nth(elem,2,"nextSibling");},
|
1505
|
-
|
1506
|
-
prev: function(elem){return CQ.nth(elem,2,"previousSibling");},
|
1507
|
-
|
1508
|
-
nextAll: function(elem){
|
1509
|
-
return CQ.dir(elem,"nextSibling");
|
1510
|
-
},
|
1511
|
-
|
1512
|
-
prevAll: function(elem){
|
1513
|
-
return CQ.dir(elem,"previousSibling");
|
1514
|
-
},
|
1515
|
-
|
1516
|
-
siblings: function(elem){
|
1517
|
-
return CQ.sibling(elem.parentNode.firstChild,elem);
|
1518
|
-
},
|
1519
|
-
|
1520
|
-
children: function(elem){return CQ.sibling(elem.firstChild);},
|
1521
|
-
|
1522
|
-
contents: function(elem){
|
1523
|
-
return CQ.nodeName(elem,"iframe") ?
|
1524
|
-
elem.contentDocument||elem.contentWindow.document :
|
1525
|
-
CQ.makeArray(elem.childNodes);
|
1526
|
-
}
|
1527
|
-
|
1528
|
-
}, function(name, fn){
|
1529
|
-
CQ.fn[ name ] = function( selector ) {
|
1530
|
-
var ret = CQ.map( this, fn );
|
1531
|
-
|
1532
|
-
if ( selector && typeof selector === "string" ) {
|
1533
|
-
ret = CQ.multiFilter( selector, ret );
|
1534
|
-
}
|
1535
|
-
return this.pushStack(ret.uniq());
|
1536
|
-
};
|
1537
|
-
});
|
1538
|
-
|
1539
|
-
CQ.each({
|
1540
|
-
appendTo: "append",
|
1541
|
-
prependTo: "prepend",
|
1542
|
-
insertBefore: "before",
|
1543
|
-
insertAfter: "after",
|
1544
|
-
replaceAll: "replaceWith"
|
1545
|
-
}, function(name, original){
|
1546
|
-
CQ.fn[ name ] = function() {
|
1547
|
-
var args = arguments;
|
1548
|
-
|
1549
|
-
return this.each(function(){
|
1550
|
-
for ( var i = 0, length = args.length; i < length; i++ ) {
|
1551
|
-
CQ( args[ i ] )[ original ]( this );
|
1552
|
-
}
|
1553
|
-
});
|
1554
|
-
};
|
1555
|
-
});
|
1556
|
-
|
1557
|
-
CQ.each({
|
1558
|
-
removeAttr: function( name ) {
|
1559
|
-
CQ.attr( this, name, "" );
|
1560
|
-
if (this.nodeType === 1) this.removeAttribute( name );
|
1561
|
-
},
|
1562
|
-
|
1563
|
-
addClass: function( classNames ) {
|
1564
|
-
CQ.className.add( this, classNames );
|
1565
|
-
},
|
1566
|
-
|
1567
|
-
removeClass: function( classNames ) {
|
1568
|
-
CQ.className.remove( this, classNames );
|
1569
|
-
},
|
1570
|
-
|
1571
|
-
toggleClass: function( classNames ) {
|
1572
|
-
CQ.className[ CQ.className.has( this, classNames ) ? "remove" : "add" ]( this, classNames );
|
1573
|
-
},
|
1574
|
-
|
1575
|
-
/**
|
1576
|
-
Removes either all elements or elements matching the selector. Note
|
1577
|
-
that this does NOT account for event handling, since events are not
|
1578
|
-
managed by CoreQuery, unlike jQuery.
|
1579
|
-
*/
|
1580
|
-
remove: function( selector ) {
|
1581
|
-
if ( !selector || CQ.filter( selector, [ this ] ).length ) {
|
1582
|
-
if (this.parentNode) this.parentNode.removeChild( this );
|
1583
|
-
}
|
1584
|
-
},
|
1585
|
-
|
1586
|
-
/**
|
1587
|
-
Removes the contents of the receiver, leaving it empty. Note that this
|
1588
|
-
does NOT deal with Event handling since that is not managed by
|
1589
|
-
CoreQuery.
|
1590
|
-
*/
|
1591
|
-
empty: function() {
|
1592
|
-
while ( this.firstChild ) this.removeChild( this.firstChild );
|
1593
|
-
}
|
1594
|
-
|
1595
|
-
}, function(name, fn){
|
1596
|
-
CQ.fn[name] = function(){ return this.each(fn, arguments); };
|
1597
|
-
});
|
1598
|
-
|
1599
|
-
// Setup width and height functions
|
1600
|
-
CQ.each([ "Height", "Width" ], function(i, name){
|
1601
|
-
var type = name.toLowerCase(), ret;
|
1602
|
-
|
1603
|
-
CQ.fn[ type ] = function( size ) {
|
1604
|
-
|
1605
|
-
// Get window width or height
|
1606
|
-
if(this[0] === window) {
|
1607
|
-
|
1608
|
-
// Opera reports document.body.client[Width/Height] properly in both
|
1609
|
-
// quirks and standards
|
1610
|
-
if (SC.browser.opera) {
|
1611
|
-
ret = document.body["client" + name];
|
1612
|
-
|
1613
|
-
// Safari reports inner[Width/Height] just fine (Mozilla and Opera
|
1614
|
-
// include scroll bar widths)
|
1615
|
-
} else if (SC.browser.safari) {
|
1616
|
-
ret = window["inner" + name] ;
|
1617
|
-
|
1618
|
-
// Everyone else use document.documentElement or document.body
|
1619
|
-
// depending on Quirks vs Standards mode
|
1620
|
-
} else if (document.compatMode) {
|
1621
|
-
ret = documentElement['client' + name];
|
1622
|
-
} else ret = document.body['client' + name];
|
1623
|
-
|
1624
|
-
// get document width or height
|
1625
|
-
} else if (this[0] === document) {
|
1626
|
-
// Either scroll[Width/Height] or offset[Width/Height], whichever is
|
1627
|
-
// greater
|
1628
|
-
ret = Math.max(
|
1629
|
-
Math.max(document.body["scroll" + name], document.documentElement["scroll" + name]),
|
1630
|
-
Math.max(document.body["offset" + name], document.documentElement["offset" + name])) ;
|
1631
|
-
|
1632
|
-
// get/set element width/or height
|
1633
|
-
} else {
|
1634
|
-
if (size === undefined) {
|
1635
|
-
return this.length ? CQ.css(this[0], type) : null ;
|
1636
|
-
|
1637
|
-
// Set the width or height on the element (default to pixels if value is unitless)
|
1638
|
-
} else {
|
1639
|
-
return this.css(type, (typeof size === "string") ? size : size+"px");
|
1640
|
-
}
|
1641
|
-
}
|
1642
|
-
return ret ;
|
1643
|
-
};
|
1644
|
-
|
1645
|
-
var tl = i ? "Left" : "Top", // top or left
|
1646
|
-
br = i ? "Right" : "Bottom"; // bottom or right
|
1647
|
-
|
1648
|
-
// innerHeight and innerWidth
|
1649
|
-
CQ.fn["inner" + name] = function(){
|
1650
|
-
return this[ name.toLowerCase() ]() +
|
1651
|
-
num(this, "padding" + tl) +
|
1652
|
-
num(this, "padding" + br);
|
1653
|
-
};
|
1654
|
-
|
1655
|
-
// outerHeight and outerWidth
|
1656
|
-
CQ.fn["outer" + name] = function(margin) {
|
1657
|
-
return this["inner" + name]() +
|
1658
|
-
num(this, "border" + tl + "Width") +
|
1659
|
-
num(this, "border" + br + "Width") +
|
1660
|
-
(margin ? num(this, "margin" + tl) + num(this, "margin" + br) : 0);
|
1661
|
-
};
|
1662
|
-
|
1663
|
-
});
|
1664
|
-
|
1665
|
-
// The Offset Method
|
1666
|
-
// Originally By Brandon Aaron, part of the Dimension Plugin
|
1667
|
-
// http://jquery.com/plugins/project/dimensions
|
1668
|
-
|
1669
|
-
/** Calculates the offset for the first passed element. */
|
1670
|
-
CoreQuery.fn.offset = function() {
|
1671
|
-
var left = 0, top = 0, elem = this[0], br = SC.browser, results;
|
1672
|
-
if (!elem) return undefined;
|
1673
|
-
|
1674
|
-
function border(elem) {
|
1675
|
-
add( CQ.curCSS(elem, "borderLeftWidth", true), CQ.curCSS(elem, "borderTopWidth", true) );
|
1676
|
-
}
|
1677
|
-
|
1678
|
-
function add(l, t) {
|
1679
|
-
left += parseInt(l, 10) || 0;
|
1680
|
-
top += parseInt(t, 10) || 0;
|
1681
|
-
}
|
1682
|
-
|
1683
|
-
var parent = elem.parentNode,
|
1684
|
-
offsetChild = elem,
|
1685
|
-
offsetParent = elem.offsetParent,
|
1686
|
-
doc = elem.ownerDocument,
|
1687
|
-
safari2 = br.safari && parseInt(br.version,0) < 522 && !(/adobeair/i).test(br.userAgent),
|
1688
|
-
css = CQ.curCSS,
|
1689
|
-
fixed = CQ.css(elem, "position") === "fixed";
|
1690
|
-
|
1691
|
-
// Use getBoundingClientRect if available
|
1692
|
-
if (!(br.mozilla && elem==document.body) && elem.getBoundingClientRect){
|
1693
|
-
var box = elem.getBoundingClientRect();
|
1694
|
-
|
1695
|
-
// Add the document scroll offsets
|
1696
|
-
add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
|
1697
|
-
box.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));
|
1698
|
-
|
1699
|
-
// IE adds the HTML element's border, by default it is medium which is
|
1700
|
-
// 2px IE 6 and 7 quirks mode the border width is overwritable by the
|
1701
|
-
// following css html { border: 0; } IE 7 standards mode, the border is
|
1702
|
-
// always 2px This border/offset is typically represented by the
|
1703
|
-
// clientLeft and clientTop properties
|
1704
|
-
// However, in IE6 and 7 quirks mode the clientLeft and clientTop
|
1705
|
-
// properties are not updated when overwriting it via CSS
|
1706
|
-
// Therefore this method will be off by 2px in IE while in quirksmode
|
1707
|
-
add( -doc.documentElement.clientLeft, -doc.documentElement.clientTop );
|
1708
|
-
|
1709
|
-
// Otherwise loop through the offsetParents and parentNodes
|
1710
|
-
} else {
|
1711
|
-
|
1712
|
-
// Initial element offsets
|
1713
|
-
add( elem.offsetLeft, elem.offsetTop );
|
1714
|
-
|
1715
|
-
// Get parent offsets
|
1716
|
-
while ( offsetParent ) {
|
1717
|
-
// Add offsetParent offsets
|
1718
|
-
add( offsetParent.offsetLeft, offsetParent.offsetTop );
|
1719
|
-
|
1720
|
-
// Mozilla and Safari > 2 does not include the border on offset parents
|
1721
|
-
// However Mozilla adds the border for table or table cells
|
1722
|
-
if ( br.mozilla && !(/^t(able|d|h)$/i).test(offsetParent.tagName) || br.safari && !safari2 ) border( offsetParent );
|
1723
|
-
|
1724
|
-
// Add the document scroll offsets if position is fixed on any
|
1725
|
-
// offsetParent
|
1726
|
-
if (!fixed && css(offsetParent, "position") === "fixed") fixed = true;
|
1727
|
-
|
1728
|
-
// Set offsetChild to previous offsetParent unless it is the body
|
1729
|
-
// element
|
1730
|
-
offsetChild = (/^body$/i).test(offsetParent.tagName) ? offsetChild : offsetParent;
|
1731
|
-
// Get next offsetParent
|
1732
|
-
offsetParent = offsetParent.offsetParent;
|
1733
|
-
}
|
1734
|
-
|
1735
|
-
// Get parent scroll offsets
|
1736
|
-
while ( parent && parent.tagName && !(bodyHTMLOffsetRegEx).test(parent.tagName)) {
|
1737
|
-
|
1738
|
-
// Remove parent scroll UNLESS that parent is inline or a table to
|
1739
|
-
// work around Opera inline/table scrollLeft/Top bug
|
1740
|
-
if ( !(/^inline|table.*$/i).test(css(parent, "display")) ) {
|
1741
|
-
// Subtract parent scroll offsets
|
1742
|
-
add( -parent.scrollLeft, -parent.scrollTop );
|
1743
|
-
}
|
1744
|
-
|
1745
|
-
// Mozilla does not add the border for a parent that has overflow !=
|
1746
|
-
// visible
|
1747
|
-
if ( br.mozilla && css(parent, "overflow") !== "visible" ) border(parent);
|
1748
|
-
|
1749
|
-
// Get next parent
|
1750
|
-
parent = parent.parentNode;
|
1751
|
-
}
|
1752
|
-
|
1753
|
-
// Safari <= 2 doubles body offsets with a fixed position
|
1754
|
-
// element/offsetParent or absolutely positioned offsetChild
|
1755
|
-
// Mozilla doubles body offsets with a non-absolutely positioned
|
1756
|
-
// offsetChild
|
1757
|
-
if ((safari2 && (fixed || css(offsetChild, "position") === "absolute"))||
|
1758
|
-
(br.mozilla && css(offsetChild, "position") !== "absolute") ) {
|
1759
|
-
add( -doc.body.offsetLeft, -doc.body.offsetTop );
|
1760
|
-
}
|
1761
|
-
|
1762
|
-
// Add the document scroll offsets if position is fixed
|
1763
|
-
if ( fixed ) {
|
1764
|
-
add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
|
1765
|
-
Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));
|
1766
|
-
}
|
1767
|
-
}
|
1768
|
-
|
1769
|
-
// Return an object with top and left properties
|
1770
|
-
results = { top: top, left: left };
|
1771
|
-
|
1772
|
-
return results;
|
1773
|
-
};
|
1774
|
-
|
1775
|
-
CoreQuery.fn.mixin({
|
1776
|
-
position: function() {
|
1777
|
-
var left = 0, top = 0, results;
|
1778
|
-
|
1779
|
-
if ( this[0] ) {
|
1780
|
-
// Get *real* offsetParent
|
1781
|
-
var offsetParent = this.offsetParent(),
|
1782
|
-
|
1783
|
-
// Get correct offsets
|
1784
|
-
offset = this.offset(),
|
1785
|
-
parentOffset = bodyHTMLOffsetRegEx.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
|
1786
|
-
|
1787
|
-
// Subtract element margins
|
1788
|
-
// note: when an element has margin: auto the offsetLeft and marginLeft
|
1789
|
-
// are the same in Safari causing offset.left to incorrectly be 0
|
1790
|
-
offset.top -= num( this, 'marginTop' );
|
1791
|
-
offset.left -= num( this, 'marginLeft' );
|
1792
|
-
|
1793
|
-
// Add offsetParent borders
|
1794
|
-
parentOffset.top += num( offsetParent, 'borderTopWidth' );
|
1795
|
-
parentOffset.left += num( offsetParent, 'borderLeftWidth' );
|
1796
|
-
|
1797
|
-
// Subtract the two offsets
|
1798
|
-
results = {
|
1799
|
-
top: offset.top - parentOffset.top,
|
1800
|
-
left: offset.left - parentOffset.left
|
1801
|
-
};
|
1802
|
-
}
|
1803
|
-
|
1804
|
-
return results;
|
1805
|
-
},
|
1806
|
-
|
1807
|
-
offsetParent: function() {
|
1808
|
-
var offsetParent = this[0].offsetParent || document.body;
|
1809
|
-
while ( offsetParent && (!(bodyHTMLOffsetRegEx).test(offsetParent.tagName) && CQ.css(offsetParent, 'position') === 'static') ) {
|
1810
|
-
offsetParent = offsetParent.offsetParent;
|
1811
|
-
}
|
1812
|
-
return CQ(offsetParent);
|
1813
|
-
}
|
1814
|
-
}) ;
|
1815
|
-
|
1816
|
-
|
1817
|
-
// Create scrollLeft and scrollTop methods
|
1818
|
-
CQ.each( ['Left', 'Top'], function(i, name) {
|
1819
|
-
var method = 'scroll' + name;
|
1820
|
-
|
1821
|
-
CQ.fn[ method ] = function(val) {
|
1822
|
-
if (!this[0]) return;
|
1823
|
-
|
1824
|
-
return val !== undefined ?
|
1825
|
-
|
1826
|
-
// Set the scroll offset
|
1827
|
-
this.each(function() {
|
1828
|
-
this == window || this == document ?
|
1829
|
-
window.scrollTo(
|
1830
|
-
!i ? val : CQ(window).scrollLeft(),
|
1831
|
-
i ? val : CQ(window).scrollTop()
|
1832
|
-
) :
|
1833
|
-
this[ method ] = val;
|
1834
|
-
}) :
|
1835
|
-
|
1836
|
-
// Return the scroll offset
|
1837
|
-
this[0] == window || this[0] == document ?
|
1838
|
-
self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
|
1839
|
-
CQ.boxModel && document.documentElement[ method ] ||
|
1840
|
-
document.body[ method ] : this[0][ method ];
|
1841
|
-
};
|
1842
|
-
});
|
1843
|
-
|
1844
|
-
|
1845
|
-
return CoreQuery ;
|
1846
|
-
}()) ;
|
1847
|
-
|
1848
|
-
// Install CoreQuery or jQuery, depending on what is available, as SC.$().
|
1849
|
-
SC.$ = (typeof jQuery == "undefined") ? SC.CoreQuery : jQuery ;
|
1850
|
-
|
1851
|
-
// Add some plugins to CoreQuery. If jQuery is installed, it will get these
|
1852
|
-
// also. -- test in system/core_query/additions
|
1853
|
-
SC.mixin(SC.$.fn, /** @scope SC.CoreQuery.prototype */ {
|
1854
|
-
|
1855
|
-
isCoreQuery: YES, // walk like a duck
|
1856
|
-
|
1857
|
-
/** @private - better loggin */
|
1858
|
-
toString: function() {
|
1859
|
-
var values = [],
|
1860
|
-
len = this.length, idx=0;
|
1861
|
-
for(idx=0;idx<len;idx++) {
|
1862
|
-
values[idx] = '%@: %@'.fmt(idx, this[idx] ? this[idx].toString() : '(null)');
|
1863
|
-
}
|
1864
|
-
return "<$:%@>(%@)".fmt(SC.guidFor(this),values.join(' , '));
|
1865
|
-
},
|
1866
|
-
|
1867
|
-
/**
|
1868
|
-
Returns YES if all member elements are visible. This is provided as a
|
1869
|
-
common test since CoreQuery does not support filtering by
|
1870
|
-
psuedo-selector.
|
1871
|
-
*/
|
1872
|
-
isVisible: function() {
|
1873
|
-
return Array.prototype.every.call(this, function(elem){
|
1874
|
-
return SC.$.isVisible(elem);
|
1875
|
-
});
|
1876
|
-
},
|
1877
|
-
|
1878
|
-
/** Returns a new CQ object with only the first item in the object. */
|
1879
|
-
first: function() {
|
1880
|
-
return this.pushStack([this[0]]);
|
1881
|
-
},
|
1882
|
-
|
1883
|
-
/** Returns a new CQ object with only the last item in the set. */
|
1884
|
-
last: function() {
|
1885
|
-
return this.pushStack([this[this.length-1]]);
|
1886
|
-
},
|
1887
|
-
|
1888
|
-
/**
|
1889
|
-
Attempts to find the views managing the passed DOM elements and returns
|
1890
|
-
them. This will start with the matched element and walk up the DOM until
|
1891
|
-
it finds an element managed by a view.
|
1892
|
-
|
1893
|
-
@returns {Array} array of views or null.
|
1894
|
-
*/
|
1895
|
-
view: function() {
|
1896
|
-
return this.map(function() {
|
1897
|
-
var ret=null, guidKey = SC.viewKey, dom = this, value;
|
1898
|
-
while(!ret && dom && (dom !== document)) {
|
1899
|
-
if (dom.nodeType===1 && (value = dom.getAttribute('id'))) ret = SC.View.views[value] ;
|
1900
|
-
dom = dom.parentNode;
|
1901
|
-
}
|
1902
|
-
dom = null;
|
1903
|
-
return ret ;
|
1904
|
-
});
|
1905
|
-
},
|
1906
|
-
|
1907
10
|
/**
|
1908
11
|
You can either pass a single class name and a boolean indicating whether
|
1909
12
|
the value should be added or removed, or you can pass a hash with all
|
1910
|
-
the class names you want to add or remove with a boolean indicating
|
13
|
+
the class names you want to add or remove with a boolean indicating
|
1911
14
|
whether they should be there or not.
|
1912
|
-
|
15
|
+
|
1913
16
|
This is far more efficient than using addClass/removeClass.
|
1914
|
-
|
17
|
+
|
1915
18
|
@param {String|Hash} className class name or hash of classNames + bools
|
1916
19
|
@param {Boolean} shouldAdd for class name if a string was passed
|
1917
20
|
@returns {SC.CoreQuery} receiver
|
1918
21
|
*/
|
1919
22
|
setClass: function(className, shouldAdd) {
|
1920
|
-
if (SC.none(className)) return this; //nothing to do
|
23
|
+
if (SC.none(className)) { return this; } //nothing to do
|
1921
24
|
var isHash = SC.typeOf(className) !== SC.T_STRING,
|
1922
25
|
fix = this._fixupClass, key;
|
26
|
+
|
1923
27
|
this.each(function() {
|
1924
|
-
if (this.nodeType !== 1) return; // nothing to do
|
1925
|
-
|
28
|
+
if (this.nodeType !== 1) { return; } // nothing to do
|
29
|
+
|
1926
30
|
// collect the class name from the element and build an array
|
1927
31
|
var classNames = this.className.split(/\s+/), didChange = NO;
|
1928
|
-
|
32
|
+
|
1929
33
|
// loop through hash or just fix single className
|
1930
34
|
if (isHash) {
|
1931
35
|
for(var key in className) {
|
1932
|
-
if (
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
36
|
+
if (className.hasOwnProperty(key)) {
|
37
|
+
didChange = fix(classNames, key, className[key]) || didChange;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
} else {
|
41
|
+
didChange = fix(classNames, className, shouldAdd);
|
42
|
+
}
|
1936
43
|
|
1937
44
|
// if classNames were changed, join them and set...
|
1938
|
-
if (didChange) this.className = classNames.join(' ');
|
45
|
+
if (didChange) { this.className = classNames.join(' '); }
|
1939
46
|
});
|
1940
47
|
return this ;
|
1941
48
|
},
|
@@ -1946,104 +53,11 @@ SC.mixin(SC.$.fn, /** @scope SC.CoreQuery.prototype */ {
|
|
1946
53
|
// if should add, add class...
|
1947
54
|
if (shouldAdd) {
|
1948
55
|
if (indexOf < 0) { classNames.push(name); return YES ; }
|
1949
|
-
|
56
|
+
|
1950
57
|
// otherwise, null out class name (this will leave some extra spaces)
|
1951
58
|
} else if (indexOf >= 0) { classNames[indexOf]=null; return YES; }
|
1952
59
|
return NO ;
|
1953
|
-
},
|
1954
|
-
|
1955
|
-
/**
|
1956
|
-
Returns YES if any of the matched elements have the passed element or CQ object as a child element.
|
1957
|
-
*/
|
1958
|
-
within: function(el) {
|
1959
|
-
el = SC.$(el); // make into CQ object
|
1960
|
-
var ret, elCur, myCur, idx, len = el.length,
|
1961
|
-
loc = this.length;
|
1962
|
-
while(!ret && (--loc >= 0)) {
|
1963
|
-
myCur = this[loc];
|
1964
|
-
for(idx=0; !ret && (idx<len); idx++) {
|
1965
|
-
elCur = el[idx];
|
1966
|
-
while(elCur && (elCur !== myCur)) elCur = elCur.parentNode;
|
1967
|
-
ret = elCur === myCur ;
|
1968
|
-
}
|
1969
|
-
}
|
1970
|
-
myCur = elCur = null ; // clear memory
|
1971
|
-
return ret ;
|
1972
|
-
}
|
1973
|
-
|
1974
|
-
});
|
1975
|
-
|
1976
|
-
/**
|
1977
|
-
Make CoreQuery enumerable. Since some methods need to be disambiguated,
|
1978
|
-
we will implement some wrapper functions here.
|
1979
|
-
|
1980
|
-
Note that SC.Enumerable is implemented on SC.Builder, which means the
|
1981
|
-
CoreQuery object inherits this automatically. jQuery does not extend from
|
1982
|
-
SC.Builder though, so we reapply SC.Enumerable just to be safe.
|
1983
|
-
*/
|
1984
|
-
(function() {
|
1985
|
-
var original = {},
|
1986
|
-
wrappers = {
|
1987
|
-
|
1988
|
-
// if you call find with a selector, then use the jQuery way. If you
|
1989
|
-
// call with a function/target, use Enumerable way
|
1990
|
-
find: function(callback,target) {
|
1991
|
-
return (target !== undefined) ? SC.Enumerable.find.call(this, callback, target) : original.find.call(this, callback) ;
|
1992
|
-
},
|
1993
|
-
|
1994
|
-
// ditto for filter - execute SC.Enumerable style if a target is passed.
|
1995
|
-
filter: function(callback,target) {
|
1996
|
-
return (target !== undefined) ?
|
1997
|
-
this.pushStack(SC.Enumerable.filter.call(this, callback, target)) :
|
1998
|
-
original.filter.call(this, callback) ;
|
1999
|
-
},
|
2000
|
-
|
2001
|
-
// filterProperty is an SC.Enumerable thing, but it needs to be wrapped
|
2002
|
-
// in a CoreQuery object.
|
2003
|
-
filterProperty: function(key, value) {
|
2004
|
-
return this.pushStack(
|
2005
|
-
SC.Enumerable.filterProperty.call(this,key,value));
|
2006
|
-
},
|
2007
|
-
|
2008
|
-
// indexOf() is best implemented using the jQuery index()
|
2009
|
-
indexOf: SC.$.index,
|
2010
|
-
|
2011
|
-
// map() is a little tricky because jQuery is non-standard. If you pass
|
2012
|
-
// a context object, we will treat it like SC.Enumerable. Otherwise use
|
2013
|
-
// jQuery.
|
2014
|
-
map: function(callback, target) {
|
2015
|
-
return (target !== undefined) ?
|
2016
|
-
SC.Enumerable.map.call(this, callback, target) :
|
2017
|
-
original.map.call(this, callback);
|
2018
|
-
}
|
2019
|
-
};
|
2020
|
-
|
2021
|
-
// loop through an update some enumerable methods. If this is CoreQuery,
|
2022
|
-
// we just need to patch up the wrapped methods. If this is jQuery, we
|
2023
|
-
// need to go through the entire set of SC.Enumerable.
|
2024
|
-
var isCoreQuery = SC.$.jquery === 'SC.CoreQuery',
|
2025
|
-
fn = SC.$.fn, enumerable = isCoreQuery ? wrappers : SC.Enumerable ,
|
2026
|
-
value;
|
2027
|
-
for(var key in enumerable) {
|
2028
|
-
if (!enumerable.hasOwnProperty(key)) continue ;
|
2029
|
-
value = enumerable[key];
|
2030
|
-
if (key in wrappers) {
|
2031
|
-
original[key] = fn[key]; value = wrappers[key];
|
2032
|
-
}
|
2033
|
-
fn[key] = value;
|
2034
60
|
}
|
2035
|
-
})();
|
2036
|
-
|
2037
|
-
// Add some global helper methods.
|
2038
|
-
SC.mixin(SC.$, {
|
2039
|
-
|
2040
|
-
/** @private helper method to determine if an element is visible. Exposed
|
2041
|
-
for use in testing. */
|
2042
|
-
isVisible: function(elem) {
|
2043
|
-
var CQ = SC.$;
|
2044
|
-
return ("hidden"!=elem.type) && (CQ.css(elem,"display")!="none") && (CQ.css(elem,"visibility")!="hidden");
|
2045
|
-
}
|
2046
|
-
|
2047
|
-
}) ;
|
2048
61
|
|
2049
62
|
|
63
|
+
});
|