sproutcore 1.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/DISTRIBUTION.yml +20 -0
- data/Gemfile +3 -0
- data/History.txt +54 -0
- data/README.txt +104 -0
- data/Rakefile +446 -0
- data/Todo.txt +1 -0
- data/VERSION.yml +7 -0
- data/bin/sc-build +18 -0
- data/bin/sc-build-number +18 -0
- data/bin/sc-docs +19 -0
- data/bin/sc-gen +18 -0
- data/bin/sc-init +18 -0
- data/bin/sc-manifest +18 -0
- data/bin/sc-server +18 -0
- data/bin/sproutcore +18 -0
- data/design/Technical Notes.graffle/QuickLook/Preview.pdf +0 -0
- data/design/Technical Notes.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/design/Technical Notes.graffle/data.plist +5534 -0
- data/design/Technical Notes.graffle/image8.png +0 -0
- data/lib/Buildfile +140 -0
- data/lib/buildtasks/build.rake +103 -0
- data/lib/buildtasks/entry.rake +68 -0
- data/lib/buildtasks/manifest.rake +615 -0
- data/lib/buildtasks/render.rake +21 -0
- data/lib/buildtasks/target.rake +65 -0
- data/lib/doc_templates/jsdoc/allclasses.tmpl +17 -0
- data/lib/doc_templates/jsdoc/allfiles.tmpl +56 -0
- data/lib/doc_templates/jsdoc/class.tmpl +487 -0
- data/lib/doc_templates/jsdoc/index.tmpl +38 -0
- data/lib/doc_templates/jsdoc/publish.js +170 -0
- data/lib/doc_templates/jsdoc/static/default.css +162 -0
- data/lib/doc_templates/jsdoc/static/header.html +2 -0
- data/lib/doc_templates/jsdoc/static/index.html +19 -0
- data/lib/doc_templates/jsdoc/symbol.tmpl +35 -0
- data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
- data/lib/doc_templates/sproutcore/allfiles.tmpl +56 -0
- data/lib/doc_templates/sproutcore/class.tmpl +674 -0
- data/lib/doc_templates/sproutcore/classes-json.tmpl +55 -0
- data/lib/doc_templates/sproutcore/index.tmpl +48 -0
- data/lib/doc_templates/sproutcore/publish.js +346 -0
- data/lib/doc_templates/sproutcore/static/default.css +258 -0
- data/lib/doc_templates/sproutcore/static/header.html +2 -0
- data/lib/doc_templates/sproutcore/static/index.html +19 -0
- data/lib/doc_templates/sproutcore/symbol.tmpl +35 -0
- data/lib/frameworks/sproutcore/Buildfile +101 -0
- data/lib/frameworks/sproutcore/CHANGELOG.md +170 -0
- data/lib/frameworks/sproutcore/HISTORY +697 -0
- data/lib/frameworks/sproutcore/README.md +68 -0
- data/lib/frameworks/sproutcore/apps/docs/core.js +27 -0
- 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 +14378 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.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/image8.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 +9 -0
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/main_page.js +22 -0
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/apps/docs/main.js +30 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/README +25 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/TODO +72 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/beautify.js +1058 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/design.js +20 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/file.js +75 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/files.js +40 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/layout.js +53 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/library.js +201 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/page.js +18 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/property.js +19 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/property_editor.js +17 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/target.js +20 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/targets.js +43 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/view_configs.js +100 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/core.js +67 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/core_file.js +124 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/data_source.js +250 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +377 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +111 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/button.css +310 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/dock.css +85 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/general.css +52 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +120 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/menu.css +52 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/modal.css +40 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/picker.css +188 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/search.css +60 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/tabbed.css +68 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +67 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/dialogs.js +302 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/inspectors.js +365 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/main_page.js +95 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +87 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/fixtures/file.js +35 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/main.js +28 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/mixins/drop_down.js +97 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/design.js +22 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/dir.js +92 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/file.js +51 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/target.js +82 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/view_config.js +49 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/resources/test_page.js +37 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/inspector.js +144 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/library.js +133 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/main.js +224 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/modals.js +291 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/ready.js +197 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/design.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/designs.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/file.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/files.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/models/file.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/models/view_config.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/views/list_item.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/anchor.js +277 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/application_list_item.js +19 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/event_blocker.js +32 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/label_designer.js +16 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/list_item.js +42 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/plist_item.js +39 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/simple_button.js +157 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/tear_off_picker.js +56 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/web.js +44 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/detail.js +25 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +29 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +86 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +33 -0
- data/lib/frameworks/sproutcore/apps/tests/core.js +133 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/main.js +27 -0
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +56 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +48 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +44 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +39 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/source.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/test.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +49 -0
- data/lib/frameworks/sproutcore/apps/welcome/core.js +30 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +7 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +77 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/apps/welcome/main.js +19 -0
- data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/design/CollectionView State Charts.graffle +4848 -0
- data/lib/frameworks/sproutcore/design/Design Charts.graffle +16845 -0
- data/lib/frameworks/sproutcore/design/Record State Table.numbers +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/data.plist +19588 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/data.plist +1452 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/data.plist +24187 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
- 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/image15.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
- data/lib/frameworks/sproutcore/design/greenhouse-statechart.graffle +9025 -0
- data/lib/frameworks/sproutcore/design/greenhouse-statechart.pdf +0 -0
- data/lib/frameworks/sproutcore/design/iphone-webapp-loading.psd +0 -0
- data/lib/frameworks/sproutcore/frameworks/animation/Buildfile +3 -0
- data/lib/frameworks/sproutcore/frameworks/animation/LICENSE +25 -0
- data/lib/frameworks/sproutcore/frameworks/animation/README.md +79 -0
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +1192 -0
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +147 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/README +9 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/core.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +340 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/json.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +1201 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +494 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +159 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +242 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +415 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +588 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +1600 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +651 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +2666 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +337 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/parentless.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +273 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +171 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +154 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +216 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +72 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +184 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/core.js +865 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/english.lproj/en-US.js +186 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/extras.js +332 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/license.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/parser.js +1116 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/spanish.lproj/es-CO.js +186 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/sugarpak.js +475 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/time.js +269 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/validators/datejs.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/designer/coders/design.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/designer/coders/localization.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/designer/coders/object.js +347 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/controllers.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/design.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/designs.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_design.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_files.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/designer/core.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_rule.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style_sheet.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/button.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/label.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/object_designer.js +296 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/tab.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/text_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/view_designer.js +1259 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/css/designer.css +96 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/design_page.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/high_light.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/selection_handles.css +58 -0
- data/lib/frameworks/sproutcore/frameworks/designer/ext/object.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/designer/ext/page.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/designer/ext/view.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/button.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/snap_lines.js +221 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/designer_drop_target.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/drawing.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/high_light.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/page_item_view.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/selection_handles.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +943 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +161 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +109 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +134 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +66 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/video.css +3 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +694 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +295 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +253 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +410 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +1115 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +696 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +849 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +175 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +923 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +135 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +240 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +127 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +288 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +287 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +232 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +226 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +216 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +231 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +619 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +3073 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +319 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +207 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +631 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +836 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +681 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +588 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +298 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +376 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +204 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1790 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +884 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +678 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +673 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +324 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +286 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +169 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +781 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +184 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/TESTING +46 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/array.js +518 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/controller.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/object.js +342 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +79 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/core.css +474 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +42 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +148 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/view.css +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/object.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +360 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +179 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +377 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +580 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/responder_context.js +269 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +543 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/main.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/pane.js +848 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +907 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/application.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +514 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/browser.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/builder.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +337 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +2049 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cursor.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/datetime.js +1129 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/device.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/event.js +894 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +432 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/json.js +515 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/locale.js +293 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/page.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/platform.js +297 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +197 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/render_context.js +988 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +599 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/responder.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +538 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +2060 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +420 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/time.js +473 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/timer.js +551 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +397 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +710 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/array_case.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/enum_case.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/null_case.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/selection_support.js +318 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/single_case.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/empty_case.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/multiple_case.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_case.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_enumerable_case.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/content.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/content.js +168 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +227 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/responder_context.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/string.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/builder.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_core.js +1334 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_dimensions.js +387 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_selector.js +405 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/within.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/datetime.js +348 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/json.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/locale.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/begin.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/element.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/get.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_attr.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_basic.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_className.js +179 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +101 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/init.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/push_text.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/tag.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/request.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeKeyPane.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMainPane.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMenuPane.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/root_responder.js +101 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/targetForAction.js +238 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/routes.js +352 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invalidate.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invokeLater.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/isPaused.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/performAction.js +69 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/schedule.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/user_defaults.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/normalizeURL.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/range.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/rect.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/credit_card.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/number.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/password.js +13 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/validator.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +115 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/main_pane.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/append_remove.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/firstResponder.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/keyPane.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendEvent.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/clippingFrame.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertFrames.js +246 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertLayouts.js +145 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createChildViews.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createLayer.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/destroyLayer.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/didAppendToDocument.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/findLayerInParentLayer.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/init.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/insertBefore.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/isVisible.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/isVisibleInWindow.js +116 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layer.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutChildViews.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutDidChange.js +127 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutStyle.js +531 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/nextValidKeyView.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/parentViewDidChange.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/prepareContext.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/removeChild.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/render.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/replaceChild.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayer.js +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayerLocation.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/viewDidResize.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +326 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +320 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +339 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +946 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/view.js +3313 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/controls.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +120 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +739 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +832 -0
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/README +12 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +1061 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +238 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +643 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/delegate_support.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1298 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1347 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +173 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/observable_protocol.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/sparse_array_delegate.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1000 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/cookie.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1199 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +452 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +888 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +271 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +295 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/selection_set.js +697 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +532 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/sparse_array.js +379 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/beget.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/console.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +27 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/keys.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/makeArray.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +622 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +667 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +395 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/cookie.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/error.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/logger.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +360 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/add.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/indexSetForSource.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/isEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/remove.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +292 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/sparse_array.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +336 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/basic.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/history.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/nested.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/transient.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table.js +439 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +158 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +196 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
- data/lib/frameworks/sproutcore/frameworks/testing/extras.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/testing/jquery.js +3559 -0
- data/lib/frameworks/sproutcore/frameworks/testing/qunit.js +827 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +695 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +209 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +228 -0
- data/lib/frameworks/sproutcore/frameworks/testing/utils.js +62 -0
- data/lib/frameworks/sproutcore/lib/index.rhtml +119 -0
- data/lib/frameworks/sproutcore/license.js +30 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/button.css +399 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/checkbox.css +78 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/collection.css +135 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/core.css +76 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/disclosure.css +57 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_222222.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_454545.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_888888.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-toolbar-view.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/label.css +11 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/list_item.css +82 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/menu.css +20 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/pane.css +18 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/panel.css +33 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/picker.css +17 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/radio.css +125 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/scroller.css +159 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/segmented.css +275 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/slider.css +94 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/split_view.css +11 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/tab.css +14 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/table.css +14 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/text_field.css +5 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/toolbar.css +7 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/well.css +36 -0
- data/lib/gen/Buildfile +16 -0
- data/lib/gen/app/Buildfile +36 -0
- data/lib/gen/app/README +1 -0
- data/lib/gen/app/USAGE +13 -0
- data/lib/gen/app/templates/apps/@target_name@/core.js +27 -0
- data/lib/gen/app/templates/apps/@target_name@/main.js +30 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/loading.rhtml +9 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +24 -0
- data/lib/gen/controller/Buildfile +18 -0
- data/lib/gen/controller/README +1 -0
- data/lib/gen/controller/USAGE +13 -0
- data/lib/gen/controller/templates/controllers/@filename@.js +18 -0
- data/lib/gen/controller/templates/tests/controllers/@filename@.js +15 -0
- data/lib/gen/data-source/Buildfile +18 -0
- data/lib/gen/data-source/README +1 -0
- data/lib/gen/data-source/USAGE +15 -0
- data/lib/gen/data-source/templates/data_sources/@filename@.js +64 -0
- data/lib/gen/design/Buildfile +23 -0
- data/lib/gen/design/README +1 -0
- data/lib/gen/design/USAGE +10 -0
- data/lib/gen/design/templates/resources/@filename@.js +16 -0
- data/lib/gen/framework/Buildfile +36 -0
- data/lib/gen/framework/README +1 -0
- data/lib/gen/framework/USAGE +13 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/core.js +21 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +15 -0
- data/lib/gen/language/Buildfile +26 -0
- data/lib/gen/language/README +1 -0
- data/lib/gen/language/USAGE +13 -0
- data/lib/gen/language/templates/@filename@/strings.js +14 -0
- data/lib/gen/model/Buildfile +16 -0
- data/lib/gen/model/README +1 -0
- data/lib/gen/model/USAGE +15 -0
- data/lib/gen/model/templates/fixtures/@filename@.js +35 -0
- data/lib/gen/model/templates/models/@filename@.js +19 -0
- data/lib/gen/model/templates/tests/models/@filename@.js +15 -0
- data/lib/gen/page/Buildfile +36 -0
- data/lib/gen/page/README +1 -0
- data/lib/gen/page/USAGE +15 -0
- data/lib/gen/page/templates/pages/@target_name@/Buildfile +16 -0
- data/lib/gen/page/templates/pages/@target_name@/core.js +22 -0
- data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +14 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.css +1 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.rhtml +7 -0
- data/lib/gen/project/Buildfile +45 -0
- data/lib/gen/project/INIT +3 -0
- data/lib/gen/project/README +1 -0
- data/lib/gen/project/USAGE +2 -0
- data/lib/gen/project/templates/@filename@/Buildfile +7 -0
- data/lib/gen/project/templates/@filename@/README +7 -0
- data/lib/gen/responder/Buildfile +18 -0
- data/lib/gen/responder/README +1 -0
- data/lib/gen/responder/USAGE +15 -0
- data/lib/gen/responder/templates/states/@filename@.js +39 -0
- data/lib/gen/test/Buildfile +25 -0
- data/lib/gen/test/README +1 -0
- data/lib/gen/test/USAGE +12 -0
- data/lib/gen/test/templates/tests/@filename@.js +15 -0
- data/lib/gen/theme/Buildfile +36 -0
- data/lib/gen/theme/README +1 -0
- data/lib/gen/theme/USAGE +13 -0
- data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +11 -0
- data/lib/gen/view/Buildfile +18 -0
- data/lib/gen/view/README +1 -0
- data/lib/gen/view/USAGE +13 -0
- data/lib/gen/view/templates/tests/views/@filename@.js +15 -0
- data/lib/gen/view/templates/views/@filename@.js +18 -0
- data/lib/sproutcore.rb +167 -0
- data/lib/sproutcore/builders.rb +13 -0
- data/lib/sproutcore/builders/base.rb +90 -0
- data/lib/sproutcore/builders/bundle.rb +63 -0
- data/lib/sproutcore/builders/combine.rb +60 -0
- data/lib/sproutcore/builders/html.rb +211 -0
- data/lib/sproutcore/builders/javascript.rb +101 -0
- data/lib/sproutcore/builders/less.rb +41 -0
- data/lib/sproutcore/builders/minify.rb +159 -0
- data/lib/sproutcore/builders/sass.rb +65 -0
- data/lib/sproutcore/builders/strings.rb +45 -0
- data/lib/sproutcore/builders/stylesheet.rb +56 -0
- data/lib/sproutcore/builders/test.rb +59 -0
- data/lib/sproutcore/builders/test_index.rb +26 -0
- data/lib/sproutcore/buildfile.rb +490 -0
- data/lib/sproutcore/buildfile/build_task.rb +33 -0
- data/lib/sproutcore/buildfile/buildfile_dsl.rb +169 -0
- data/lib/sproutcore/buildfile/cloneable.rb +34 -0
- data/lib/sproutcore/buildfile/early_time.rb +30 -0
- data/lib/sproutcore/buildfile/invocation_chain.rb +64 -0
- data/lib/sproutcore/buildfile/namespace.rb +33 -0
- data/lib/sproutcore/buildfile/string_ext.rb +202 -0
- data/lib/sproutcore/buildfile/task.rb +333 -0
- data/lib/sproutcore/buildfile/task_arguments.rb +106 -0
- data/lib/sproutcore/buildfile/task_manager.rb +195 -0
- data/lib/sproutcore/deprecated/view_helper.rb +662 -0
- data/lib/sproutcore/helpers.rb +11 -0
- data/lib/sproutcore/helpers/capture_helper.rb +30 -0
- data/lib/sproutcore/helpers/cssmin.rb +202 -0
- data/lib/sproutcore/helpers/dom_id_helper.rb +21 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +128 -0
- data/lib/sproutcore/helpers/html5_manifest.rb +88 -0
- data/lib/sproutcore/helpers/packed_optimizer.rb +102 -0
- data/lib/sproutcore/helpers/static_helper.rb +376 -0
- data/lib/sproutcore/helpers/tag_helper.rb +182 -0
- data/lib/sproutcore/helpers/text_helper.rb +303 -0
- data/lib/sproutcore/models.rb +8 -0
- data/lib/sproutcore/models/generator.rb +493 -0
- data/lib/sproutcore/models/hash_struct.rb +124 -0
- data/lib/sproutcore/models/manifest.rb +385 -0
- data/lib/sproutcore/models/manifest_entry.rb +355 -0
- data/lib/sproutcore/models/project.rb +267 -0
- data/lib/sproutcore/models/target.rb +758 -0
- data/lib/sproutcore/rack.rb +7 -0
- data/lib/sproutcore/rack/builder.rb +344 -0
- data/lib/sproutcore/rack/dev.rb +92 -0
- data/lib/sproutcore/rack/docs.rb +24 -0
- data/lib/sproutcore/rack/filesystem.rb +324 -0
- data/lib/sproutcore/rack/proxy.rb +149 -0
- data/lib/sproutcore/rack/service.rb +153 -0
- data/lib/sproutcore/rack/test_runner.rb +24 -0
- data/lib/sproutcore/render_engines/erubis.rb +55 -0
- data/lib/sproutcore/render_engines/haml.rb +39 -0
- data/lib/sproutcore/tools.rb +360 -0
- data/lib/sproutcore/tools/build.rb +106 -0
- data/lib/sproutcore/tools/build_number.rb +23 -0
- data/lib/sproutcore/tools/docs.rb +53 -0
- data/lib/sproutcore/tools/gen.rb +101 -0
- data/lib/sproutcore/tools/init.rb +40 -0
- data/lib/sproutcore/tools/manifest.rb +85 -0
- data/lib/sproutcore/tools/server.rb +48 -0
- data/lib/sproutcore/vendor/github_gem_lint.rb +22 -0
- data/lib/sproutcore/vendor/jsdoc/README.txt +151 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Chain.js +102 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Dumper.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Hash.js +47 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Link.js +142 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Namespace.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Opt.js +134 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Reflection.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/String.js +93 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Testrun.js +129 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/FOODOC.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC.js +98 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +162 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Symbol.js +681 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +226 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +332 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Walker.js +453 -0
- data/lib/sproutcore/vendor/jsdoc/app/main.js +74 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/functionCall.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/symbolLink.js +9 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/lib/sproutcore/vendor/jsdoc/app/run.js +346 -0
- data/lib/sproutcore/vendor/jsdoc/app/t/TestDoc.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/app/t/runner.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test.js +304 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/addon.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/anon_inner.js +14 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/augments.js +31 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/augments2.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/borrows.js +41 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/borrows2.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/config.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/constructs.js +18 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/encoding.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/encoding_other.js +12 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/functions_anon.js +39 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/functions_nested.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/global.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/globals.js +25 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/ignore.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/inner.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/jsdoc_test.js +477 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/lend.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/memberof.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/memberof_constructor.js +15 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/name.js +19 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/namespace_nested.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/nocode.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/oblit_anon.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/overview.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/param_inline.js +37 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/params_optional.js +8 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype.js +17 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype_nested.js +9 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype_oblit.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype_oblit_constructor.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/public.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/shared.js +42 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/shared2.js +2 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/shortcuts.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/static_this.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/synonyms.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/tosource.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/variable_redefine.js +14 -0
- data/lib/sproutcore/vendor/jsdoc/changes.txt +47 -0
- data/lib/sproutcore/vendor/jsdoc/conf/sample.conf +31 -0
- data/lib/sproutcore/vendor/jsdoc/java/build.xml +36 -0
- data/lib/sproutcore/vendor/jsdoc/java/build_1.4.xml +36 -0
- data/lib/sproutcore/vendor/jsdoc/java/classes/js.jar +0 -0
- data/lib/sproutcore/vendor/jsdoc/java/src/JsDebugRun.java +21 -0
- data/lib/sproutcore/vendor/jsdoc/java/src/JsRun.java +21 -0
- data/lib/sproutcore/vendor/jsdoc/jsdebug.jar +0 -0
- data/lib/sproutcore/vendor/jsdoc/jsrun.jar +0 -0
- data/lib/sproutcore/vendor/jsdoc/t/TestDoc.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/t/runner.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test.js +304 -0
- data/lib/sproutcore/vendor/jsdoc/test/addon.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/test/anon_inner.js +14 -0
- data/lib/sproutcore/vendor/jsdoc/test/augments.js +31 -0
- data/lib/sproutcore/vendor/jsdoc/test/augments2.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/test/borrows.js +41 -0
- data/lib/sproutcore/vendor/jsdoc/test/borrows2.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/config.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/test/constructs.js +18 -0
- data/lib/sproutcore/vendor/jsdoc/test/encoding.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/test/encoding_other.js +12 -0
- data/lib/sproutcore/vendor/jsdoc/test/functions_anon.js +39 -0
- data/lib/sproutcore/vendor/jsdoc/test/functions_nested.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/test/global.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/globals.js +25 -0
- data/lib/sproutcore/vendor/jsdoc/test/ignore.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/test/inner.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/test/jsdoc_test.js +477 -0
- data/lib/sproutcore/vendor/jsdoc/test/lend.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/test/memberof.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/test/memberof_constructor.js +15 -0
- data/lib/sproutcore/vendor/jsdoc/test/name.js +19 -0
- data/lib/sproutcore/vendor/jsdoc/test/namespace_nested.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/nocode.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/oblit_anon.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/test/overview.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/test/param_inline.js +37 -0
- data/lib/sproutcore/vendor/jsdoc/test/params_optional.js +8 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype.js +17 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype_nested.js +9 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype_oblit.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/test/public.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/test/shared.js +42 -0
- data/lib/sproutcore/vendor/jsdoc/test/shared2.js +2 -0
- data/lib/sproutcore/vendor/jsdoc/test/shortcuts.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/test/static_this.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/synonyms.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/tosource.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/variable_redefine.js +14 -0
- data/lib/sproutcore/vendor/yui-compressor/SCyuicompressor-2.4.2.jar +0 -0
- data/lib/sproutcore/vendor/yui-compressor/yuicompressor-2.4.2.jar +0 -0
- data/lib/sproutcore/version.rb +11 -0
- data/spec/buildtasks/build/copy_spec.rb +60 -0
- data/spec/buildtasks/build/spec_helper.rb +36 -0
- data/spec/buildtasks/manifest/catalog_spec.rb +48 -0
- data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +126 -0
- data/spec/buildtasks/manifest/localize_spec.rb +97 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/bundle_spec.rb +254 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +254 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +87 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +175 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +65 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +70 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +152 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +98 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +64 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +163 -0
- data/spec/buildtasks/manifest/prepare_spec.rb +43 -0
- data/spec/buildtasks/manifest/spec_helper.rb +35 -0
- data/spec/buildtasks/target_spec.rb +270 -0
- data/spec/fixtures/builder_tests/Buildfile +20 -0
- data/spec/fixtures/builder_tests/apps/bundle_test/bundle.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/a.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/b.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/c.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/a.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/b.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/c.css +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/bar1_sample.rhtml +2 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/erb_sample.html.erb +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/icons/image.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/image.jpg +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/rhtml_sample.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/style.css +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/french-icons/fr.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/lib/layout_template.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/scripts.js +0 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_static.js +15 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_super.js +4 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/strings.js +7 -0
- data/spec/fixtures/builder_tests/apps/less_test/sample.less +4 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +4 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.scss +4 -0
- data/spec/fixtures/builder_tests/apps/strings_test/lproj/strings.js +8 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/build_directives.css +9 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/sc_static.css +12 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/alt_layout.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/test_layout.rhtml +3 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test2.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/rhtml_test.rhtml +4 -0
- data/spec/fixtures/builder_tests/frameworks/debug/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/debug/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/javascript.js +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/themes/sample_theme/Buildfile +1 -0
- data/spec/fixtures/buildfiles/basic/Buildfile +11 -0
- data/spec/fixtures/buildfiles/basic/task_module.rake +6 -0
- data/spec/fixtures/buildfiles/installed/Buildfile +5 -0
- data/spec/fixtures/buildfiles/installed/Buildfile2 +5 -0
- data/spec/fixtures/buildfiles/project_test/Buildfile +4 -0
- data/spec/fixtures/buildfiles/project_test/not_project/Buildfile +2 -0
- data/spec/fixtures/buildfiles/project_test/not_project/child/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/Buildfile +1 -0
- data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
- data/spec/fixtures/entry_for_project/apps/test_app/frameworks/nested/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/unrelated/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/Buildfile +8 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/Buildfile +5 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/foos/not_foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/nested/Buildfile +8 -0
- data/spec/fixtures/find_targets/nested/apps/app1/Buildfile +1 -0
- data/spec/fixtures/find_targets/nested/apps/app1/apps/nested_app/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/clients/client1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme2/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/English.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/FreNCH.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/UnknOWN.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/english.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/french.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/german.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/italian.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/japanese.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/spanish.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/unknown.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/no_names/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/de.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-CA.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-GB.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-US.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/es.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/foo.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/fr.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/it.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/ja.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/1.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/B.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/b.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/b/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/c.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/core.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/B.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/b.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/b/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/c.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/strings.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/main.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/resources/main_page.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/t.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/utils.js +1 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/a.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/b.js +3 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/c.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/a.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/b.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/c.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/d.js +1 -0
- data/spec/fixtures/real_world/Buildfile +12 -0
- data/spec/fixtures/real_world/apps/account/README +1 -0
- data/spec/fixtures/real_world/apps/calendar/README +1 -0
- data/spec/fixtures/real_world/apps/contacts/README_BEFORE_EDITING +1 -0
- data/spec/fixtures/real_world/apps/files/README +1 -0
- data/spec/fixtures/real_world/apps/mail/README +1 -0
- data/spec/fixtures/real_world/apps/mobile_photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/README +1 -0
- data/spec/fixtures/real_world/apps/uploader/README +1 -0
- data/spec/fixtures/real_world/frameworks/core_files/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/core_photos/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +26 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/README +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/test_runner/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo2.sass +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo4.less +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.haml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.html.erb +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.rhtml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/fixtures/sample_fixtures-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/has_require.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_require.css +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_sc_resource.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/protocols/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.css +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.rhtml +3 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/tests/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample-json-fixture.json +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample_fixtures.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/application/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/costello/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/data_store/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/debug/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/desktop/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/empty_theme/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/foundation/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/mobile/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/qunit/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/uploader/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/french-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/german-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/strings.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/has_require.js +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/lib/index.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/no_require.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/protocols/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/boo.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/sc_resource.js +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample1.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/themes/standard_theme/README +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/views/view.js +1 -0
- data/spec/fixtures/real_world/generators/sample_custom/Buildfile +0 -0
- data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
- data/spec/fixtures/recursive_project/Buildfile +8 -0
- data/spec/fixtures/recursive_project/frameworks/sproutcore/frameworks/costello/PLACEHOLDER +0 -0
- data/spec/lib/builders/bundle_spec.rb +295 -0
- data/spec/lib/builders/combine_spec.rb +67 -0
- data/spec/lib/builders/html_spec.rb +580 -0
- data/spec/lib/builders/javascript_spec.rb +82 -0
- data/spec/lib/builders/less_spec.rb +51 -0
- data/spec/lib/builders/sass_spec.rb +72 -0
- data/spec/lib/builders/spec_helper.rb +30 -0
- data/spec/lib/builders/strings_spec.rb +55 -0
- data/spec/lib/builders/stylesheet_spec.rb +64 -0
- data/spec/lib/builders/test_index_spec.rb +45 -0
- data/spec/lib/builders/test_spec.rb +137 -0
- data/spec/lib/buildfile/config_for_spec.rb +81 -0
- data/spec/lib/buildfile/define_spec.rb +59 -0
- data/spec/lib/buildfile/dup_spec.rb +65 -0
- data/spec/lib/buildfile/invoke_spec.rb +135 -0
- data/spec/lib/buildfile/load_spec.rb +51 -0
- data/spec/lib/buildfile/task/dup_spec.rb +55 -0
- data/spec/lib/buildfile/task_defined_spec.rb +17 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +19 -0
- data/spec/lib/buildfile_commands/config_spec.rb +97 -0
- data/spec/lib/buildfile_commands/import_spec.rb +17 -0
- data/spec/lib/buildfile_commands/namespace_spec.rb +18 -0
- data/spec/lib/buildfile_commands/proxies_spec.rb +38 -0
- data/spec/lib/buildfile_commands/replace_task_spec.rb +29 -0
- data/spec/lib/buildfile_commands/task_spec.rb +36 -0
- data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +26 -0
- data/spec/lib/models/hash_struct/deep_clone_spec.rb +27 -0
- data/spec/lib/models/hash_struct/has_options_spec.rb +32 -0
- data/spec/lib/models/hash_struct/hash_spec.rb +29 -0
- data/spec/lib/models/hash_struct/merge_spec.rb +19 -0
- data/spec/lib/models/hash_struct/method_missing.rb +41 -0
- data/spec/lib/models/manifest/add_entry_spec.rb +36 -0
- data/spec/lib/models/manifest/add_transform_spec.rb +93 -0
- data/spec/lib/models/manifest/build_spec.rb +78 -0
- data/spec/lib/models/manifest/entry_for_spec.rb +94 -0
- data/spec/lib/models/manifest/find_entry.rb +109 -0
- data/spec/lib/models/manifest/prepare_spec.rb +62 -0
- data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +31 -0
- data/spec/lib/models/manifest_entry/hyperdomain_prefix.rb +34 -0
- data/spec/lib/models/manifest_entry/prepare_spec.rb +54 -0
- data/spec/lib/models/project/add_target_spec.rb +44 -0
- data/spec/lib/models/project/buildfile_spec.rb +35 -0
- data/spec/lib/models/project/find_targets_for_spec.rb +78 -0
- data/spec/lib/models/project/load_nearest_project_spec.rb +23 -0
- data/spec/lib/models/project/target_for_spec.rb +33 -0
- data/spec/lib/models/project/targets_spec.rb +62 -0
- data/spec/lib/models/target/compute_build_number_spec.rb +126 -0
- data/spec/lib/models/target/config_spec.rb +30 -0
- data/spec/lib/models/target/expand_required_targets_spec.rb +48 -0
- data/spec/lib/models/target/installed_languages_spec.rb +47 -0
- data/spec/lib/models/target/lproj_for_spec.rb +38 -0
- data/spec/lib/models/target/manifest_for_spec.rb +42 -0
- data/spec/lib/models/target/parent_target_spec.rb +21 -0
- data/spec/lib/models/target/prepare_spec.rb +53 -0
- data/spec/lib/models/target/required_targets_spec.rb +129 -0
- data/spec/lib/models/target/target_for_spec.rb +56 -0
- data/spec/lib/tools/build_number_spec.rb +35 -0
- data/spec/lib/tools/gen_spec.rb +209 -0
- data/spec/lib/tools/tools_spec.rb +96 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +138 -0
- data/sproutcore.gemspec +51 -0
- metadata +1897 -0
Binary file
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Copyright (C) 2009 Alex Iskander and TPSi. All Rights Reserved.
|
2
|
+
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
4
|
+
modification, are permitted provided that the following conditions
|
5
|
+
are met:
|
6
|
+
1. Redistributions of source code must retain the above copyright
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
10
|
+
documentation and/or other materials provided with the distribution.
|
11
|
+
3. Neither the name of Technical Programming Services, Inc. ("TPSi") nor the
|
12
|
+
names of its contributors may be used to endorse or promote products
|
13
|
+
derived from this software without specific prior written permission.
|
14
|
+
|
15
|
+
THIS SOFTWARE IS PROVIDED BY TPSi ``AS IS'' AND ANY
|
16
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
18
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TPSi OR
|
19
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
20
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
21
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
23
|
+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
24
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
25
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,79 @@
|
|
1
|
+
SC.ANIMATABLE
|
2
|
+
=============
|
3
|
+
|
4
|
+
A simple mixin called SC.Animatable is provided. What does it do?
|
5
|
+
It makes CSS transitions for you, and if they aren't available,
|
6
|
+
implements them in JavaScript.
|
7
|
+
|
8
|
+
Current good things:
|
9
|
+
* Animates 300 SC.LabelViews acceptably with only JavaScript. Animates >500
|
10
|
+
just as well (if not better) with CSS transitions.
|
11
|
+
* Automatically detects if CSS transitions are available.
|
12
|
+
|
13
|
+
Current flaws:
|
14
|
+
* Supports only a limited subset of properties. For instance, no support for
|
15
|
+
animating background colors.
|
16
|
+
|
17
|
+
Example Usage:
|
18
|
+
|
19
|
+
aView: SC.LabelView.design(SC.Animatable, {
|
20
|
+
transitions: {
|
21
|
+
left: .25,
|
22
|
+
top: {duration: .25}
|
23
|
+
width: { duration: .25, timing: SC.Animatable.TIMING_EASE_IN_OUT }, // with timing curve
|
24
|
+
height: { duration: .5, timing: [0, 0, 0.58, 1.0] } // with custom timing curve
|
25
|
+
}
|
26
|
+
})
|
27
|
+
|
28
|
+
|
29
|
+
Including in your Project
|
30
|
+
===============================================================================
|
31
|
+
In your project-level Buildfile, there is a line like this:
|
32
|
+
config :all, :required => :sproutcore
|
33
|
+
|
34
|
+
Add the animate framework to it by changing it to this:
|
35
|
+
config :all, :required => [:sproutcore, 'sproutcore/animation']
|
36
|
+
|
37
|
+
Now, you should be able to use it in any view, as demonstrated above!
|
38
|
+
|
39
|
+
|
40
|
+
Reference
|
41
|
+
===============================================================================
|
42
|
+
The API is simple. You set up transitions in the "transitions" property, and can
|
43
|
+
supply them with a few parameters:
|
44
|
+
* duration: The amount of time in seconds that the animation should last.
|
45
|
+
* timing: The timing curve to use. Defaults to SC.Animatable.defaultTimingFunction. See "Timing"
|
46
|
+
|
47
|
+
|
48
|
+
Timing
|
49
|
+
------
|
50
|
+
Timing is handled using beziér curves (like in CSS transitions).
|
51
|
+
|
52
|
+
The variable SC.Animatable.defaultTimingFunction can be used to globally set the timing
|
53
|
+
curve; any transition that has "null" as its timing curve will use this default
|
54
|
+
timing curve.
|
55
|
+
|
56
|
+
For example, you could include this line in one of your JavaScript files:
|
57
|
+
SC.Animatable.defaultTimingFunction = SC.Animatable.TRANSITION_EASE_IN_OUT;
|
58
|
+
|
59
|
+
There are a few built-in timing curves (shown here with their values). The curves
|
60
|
+
with CSS in their name are CSS-only versions; JavaScript-based animations will use
|
61
|
+
linear. The big benefit of CSS-only timing functions is that JavaScript performance
|
62
|
+
is not impacted; to handle timing curves, JavaScript has to do some semi-heavy calculations
|
63
|
+
**each frame**. Using CSS-only transitions gives a graceful degradation of sorts.
|
64
|
+
|
65
|
+
* SC.Animatable.TRANSITION_NONE: "linear"
|
66
|
+
* SC.Animatable.TRANSITION_CSS_EASE: "ease"
|
67
|
+
* SC.Animatable.TRANSITION_CSS_EASE_IN: "ease-in"
|
68
|
+
* SC.Animatable.TRANSITION_CSS_EASE_OUT: "ease-out"
|
69
|
+
* SC.Animatable.TRANSITION_CSS_EASE_OUT: "ease-in-out"
|
70
|
+
* SC.Animatable.TRANSITION_EASE: [0.25, 0.1, 0.25, 1.0]
|
71
|
+
* SC.Animatable.TRANSITION_LINEAR: [0.0, 0.0, 1.0, 1.0]
|
72
|
+
* SC.Animatable.TRANSITION_EASE_IN: [0.42, 0.0, 1.0, 1.0]
|
73
|
+
* SC.Animatable.TRANSITION_EASE_OUT: [0, 0, 0.58, 1.0]
|
74
|
+
* SC.Animatable.TRANSITION_EASE_IN_OUT: [0.42, 0, 0.58, 1.0]
|
75
|
+
|
76
|
+
|
77
|
+
**Note**: The TRANSITION_NONE value is technically a CSS-only "linear" curve; as CSS-only
|
78
|
+
curves make JavaScript use linear, it all works out.
|
79
|
+
|
@@ -0,0 +1,1192 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Project: SproutCore Animation
|
3
|
+
// Copyright: ©2010 TPSi
|
4
|
+
// Copyright: ©2010 Alex Iskander
|
5
|
+
// Portions © Apple Inc under BSD License:
|
6
|
+
// See: http://trac.webkit.org/browser/trunk/WebCore/platform/graphics/UnitBezier.h
|
7
|
+
// ==========================================================================
|
8
|
+
/*globals */
|
9
|
+
|
10
|
+
/** @namespace
|
11
|
+
A simple mixin called Animatable is provided. What does it do?
|
12
|
+
It makes CSS transitions for you, and if they aren't available,
|
13
|
+
implements them in JavaScript.
|
14
|
+
|
15
|
+
Animatable things:
|
16
|
+
- layout. You can animate any layout property, even centerX and centerY
|
17
|
+
- opacity.
|
18
|
+
- display, in a way. All animating display does is delay setting display:none
|
19
|
+
until <em>after</em> the transition duration has passed. This allows you
|
20
|
+
to set display:none after fading out. If mixing with CSS transitions, you will
|
21
|
+
need to set the delay a tad longer to accomodate any delays in beginning the
|
22
|
+
transition.
|
23
|
+
|
24
|
+
@class SC.Animatable
|
25
|
+
@example Example Usage:
|
26
|
+
{{{
|
27
|
+
aView: SC.LabelView.design(SC.Animatable, {
|
28
|
+
transitions: {
|
29
|
+
left: {duration: .25},
|
30
|
+
top: .25, // only possible during design; otherwise you must use long form.
|
31
|
+
width: {duration: .25, timing: SC.Animatable.TRANSITION_EASE_IN_OUT }
|
32
|
+
}
|
33
|
+
})
|
34
|
+
}}}
|
35
|
+
@extends SC.Object
|
36
|
+
*/
|
37
|
+
SC.Animatable = {
|
38
|
+
/** @scope SC.Animatable.prototype */
|
39
|
+
|
40
|
+
/**
|
41
|
+
Walks like a duck.
|
42
|
+
*/
|
43
|
+
isAnimatable: YES,
|
44
|
+
|
45
|
+
transitions: {},
|
46
|
+
concatenatedProperties: ["transitions"],
|
47
|
+
|
48
|
+
/**
|
49
|
+
The style properties. Works somewhat similarly to layout properties, though
|
50
|
+
is a tad bit simpler, as it does not involve parent views at all.
|
51
|
+
*/
|
52
|
+
style: { },
|
53
|
+
|
54
|
+
// collections of CSS transitions we have available
|
55
|
+
_cssTransitionFor: {
|
56
|
+
"left": "left", "top": "top",
|
57
|
+
"right": "right", "bottom": "bottom",
|
58
|
+
"width": "width", "height": "height",
|
59
|
+
"opacity": "opacity",
|
60
|
+
"transform": (SC.platform.supportsCSSTransforms ? '-'+SC.platform.cssPrefix+'-transform' : "transform")
|
61
|
+
},
|
62
|
+
|
63
|
+
// properties that adjust should relay to style
|
64
|
+
_styleProperties: [ "opacity", "display", "transform" ],
|
65
|
+
_layoutStyles: 'width height top bottom marginLeft marginTop left right zIndex minWidth maxWidth minHeight maxHeight centerX centerY'.w(),
|
66
|
+
|
67
|
+
// we cache this dictionary so we don't generate a new one each time we make
|
68
|
+
// a new animation. It is used so we can start the animations in order—
|
69
|
+
// for instance, centerX and centerY need to be animated _after_ width and height.
|
70
|
+
_animationsToStart: {},
|
71
|
+
|
72
|
+
// and, said animation order
|
73
|
+
_animationOrder: ["top", "left", "bottom", "right", "width", "height", "centerX", "centerY", "opacity", "display", "transform"],
|
74
|
+
|
75
|
+
|
76
|
+
initMixin: function()
|
77
|
+
{
|
78
|
+
this._animatable_original_didCreateLayer = this.didCreateLayer || function(){};
|
79
|
+
this.didCreateLayer = this._animatable_didCreateLayer;
|
80
|
+
|
81
|
+
this._animatable_original_willDestroyLayer = this.willDestroyLayer || function(){};
|
82
|
+
this.willDestroyLayer = this._animatable_willDestroyLayer;
|
83
|
+
|
84
|
+
this._animatable_original_willRemoveFromParent = this.willRemoveFromParent || function(){};
|
85
|
+
this.willRemoveFromParent = this._animatable_will_remove_from_parent;
|
86
|
+
|
87
|
+
// auto observers do not work when mixed in live, so make sure we do a manual observer
|
88
|
+
this.addObserver("style", this, "styleDidChange");
|
89
|
+
|
90
|
+
// for debugging
|
91
|
+
this._animateTickPixel.displayName = "animate-tick";
|
92
|
+
|
93
|
+
// if transitions was concatenated...
|
94
|
+
var i;
|
95
|
+
if (SC.isArray(this.transitions))
|
96
|
+
{
|
97
|
+
var tl = {}; // prepare a new one mixed in
|
98
|
+
for (i = 0; i < this.transitions.length; i++)
|
99
|
+
{
|
100
|
+
SC.mixin(tl, this.transitions[i]);
|
101
|
+
}
|
102
|
+
this.transitions = tl;
|
103
|
+
}
|
104
|
+
|
105
|
+
// go through transitions and make duration-only ones follow normal pattern
|
106
|
+
for (i in this.transitions)
|
107
|
+
{
|
108
|
+
if (typeof this.transitions[i] == "number")
|
109
|
+
{
|
110
|
+
this.transitions[i] = { duration: this.transitions[i] };
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
// live animators
|
115
|
+
this._animatableCurrentStyle = null;
|
116
|
+
this._animators = {}; // keyAnimated => object describing it.
|
117
|
+
this._animatableSetCSS = "";
|
118
|
+
this._last_transition_css = ""; // to keep from re-setting unnecessarily
|
119
|
+
this._disableAnimation = 0; // calls to disableAnimation add one; enableAnimation remove one.
|
120
|
+
this._transitionCallbacks = {}; // define callback set
|
121
|
+
|
122
|
+
// alert if layer already created
|
123
|
+
if (!SC.none(this.get("layer"))) {
|
124
|
+
var o = this._animatable_original_didCreateLayer;
|
125
|
+
this._animatable_original_didCreateLayer = function(){};
|
126
|
+
this.didCreateLayer();
|
127
|
+
this._animatable_original_didCreateLayer = o;
|
128
|
+
|
129
|
+
}
|
130
|
+
},
|
131
|
+
|
132
|
+
_animatable_didCreateLayer: function(){
|
133
|
+
this.resetAnimation();
|
134
|
+
SC.Event.add(this.get('layer'), SC.platform.cssPrefix+"TransitionEnd", this, this.transitionEnd);
|
135
|
+
SC.Event.add(this.get('layer'), "transitionEnd", this, this.transitionEnd);
|
136
|
+
return this._animatable_original_didCreateLayer();
|
137
|
+
},
|
138
|
+
|
139
|
+
_animatable_willDestroyLayer: function(){
|
140
|
+
SC.Event.remove(this.get('layer'), SC.platform.cssPrefix+"TransitionEnd", this, this.transitionEnd);
|
141
|
+
SC.Event.remove(this.get('layer'), "transitionEnd", this, this.transitionEnd);
|
142
|
+
return this._animatable_original_willDestroyLayer();
|
143
|
+
},
|
144
|
+
|
145
|
+
/**
|
146
|
+
Stops all animations on the layer when this occurs by calling resetAnimation.
|
147
|
+
*/
|
148
|
+
_animatable_will_remove_from_parent: function() {
|
149
|
+
this.resetAnimation();
|
150
|
+
},
|
151
|
+
|
152
|
+
/**
|
153
|
+
Disables animation.
|
154
|
+
|
155
|
+
It is like parenthesis. Each "disable" must be matched by an "enable".
|
156
|
+
If you call disable twice, you need two enables to start it. Three times, you need
|
157
|
+
three enables.
|
158
|
+
*/
|
159
|
+
disableAnimation: function() {
|
160
|
+
this._disableAnimation++;
|
161
|
+
},
|
162
|
+
|
163
|
+
/**
|
164
|
+
Enables animation if it was disabled (or moves towards that direction, at least).
|
165
|
+
*/
|
166
|
+
enableAnimation: function() {
|
167
|
+
this._disableAnimation--;
|
168
|
+
if (this._disableAnimation < 0) this._disableAnimation = 0;
|
169
|
+
},
|
170
|
+
|
171
|
+
/**
|
172
|
+
Adds support for some style properties to adjust.
|
173
|
+
|
174
|
+
These added properties are currently:
|
175
|
+
- opacity.
|
176
|
+
- display.
|
177
|
+
|
178
|
+
This is a complete rewrite of adjust. Its performance can probably be boosted. Do it!
|
179
|
+
*/
|
180
|
+
adjust: function(dictionary, value)
|
181
|
+
{
|
182
|
+
if (!SC.none(value)) {
|
183
|
+
var key = dictionary;
|
184
|
+
dictionary = { };
|
185
|
+
dictionary[key] = value;
|
186
|
+
}
|
187
|
+
else {
|
188
|
+
dictionary = SC.clone(dictionary);
|
189
|
+
}
|
190
|
+
|
191
|
+
var style = SC.clone(this.get("style")), didChangeStyle = NO, layout = SC.clone(this.get("layout")), didChangeLayout = NO;
|
192
|
+
var sprops = this._styleProperties;
|
193
|
+
for (var i in dictionary)
|
194
|
+
{
|
195
|
+
var didChange = NO;
|
196
|
+
|
197
|
+
var current = (sprops.indexOf(i) >= 0) ? style : layout;
|
198
|
+
var cval = current[i], nval = dictionary[i];
|
199
|
+
|
200
|
+
if (nval !== undefined && cval !== nval)
|
201
|
+
{
|
202
|
+
if (nval === null)
|
203
|
+
{
|
204
|
+
if (cval !== undefined) didChange = YES;
|
205
|
+
delete current[i];
|
206
|
+
}
|
207
|
+
else
|
208
|
+
{
|
209
|
+
current[i] = nval;
|
210
|
+
didChange = YES;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
if (didChange) {
|
215
|
+
if (current === style) didChangeStyle = YES; else didChangeLayout = YES;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
if (didChangeStyle) this.set("style", style);
|
220
|
+
if (didChangeLayout) this.set("layout", layout);
|
221
|
+
|
222
|
+
// call base with whatever is leftover
|
223
|
+
return this;
|
224
|
+
},
|
225
|
+
|
226
|
+
|
227
|
+
transitionEnd: function(evt){
|
228
|
+
SC.run(function() {
|
229
|
+
var propertyName = evt.originalEvent.propertyName,
|
230
|
+
callback = this._transitionCallbacks[propertyName];
|
231
|
+
|
232
|
+
if(callback) SC.Animatable.runCallback(callback);
|
233
|
+
}, this);
|
234
|
+
},
|
235
|
+
|
236
|
+
|
237
|
+
/**
|
238
|
+
Returns the current set of styles and layout according to JavaScript transitions.
|
239
|
+
|
240
|
+
That is, for transitions managed by JavaScript (rather than CSS), the current position
|
241
|
+
(even mid-transition) will be returned. For CSS-based transitions, the target position
|
242
|
+
will be returned. This function is mostly useful for testing.
|
243
|
+
|
244
|
+
It will return null if there is no such style.
|
245
|
+
*/
|
246
|
+
getCurrentJavaScriptStyles: function() {
|
247
|
+
return this._animatableCurrentStyle;
|
248
|
+
},
|
249
|
+
|
250
|
+
/**
|
251
|
+
Resets animation, stopping all existing animations.
|
252
|
+
*/
|
253
|
+
resetAnimation: function() {
|
254
|
+
this._animatableCurrentStyle = null;
|
255
|
+
this._stopJavaScriptAnimations();
|
256
|
+
this.disableAnimation();
|
257
|
+
this.updateStyle();
|
258
|
+
this.enableAnimation();
|
259
|
+
this.updateStyle();
|
260
|
+
},
|
261
|
+
|
262
|
+
/**
|
263
|
+
Stops all JavaScript animations on the object. In their tracks. Hah hah.
|
264
|
+
@private
|
265
|
+
*/
|
266
|
+
_stopJavaScriptAnimations: function() {
|
267
|
+
for (var i in this._animators) {
|
268
|
+
if (this._animators[i] && this._animators[i].isQueued) {
|
269
|
+
SC.Animatable.removeTimer(this._animators[i]);
|
270
|
+
}
|
271
|
+
}
|
272
|
+
},
|
273
|
+
|
274
|
+
_getStartStyleHash: function(start, target)
|
275
|
+
{
|
276
|
+
// temporarily set layout to "start", in the fastest way possible;
|
277
|
+
// note that start is an entire style structure—get("frame") doesn't care! HAH!
|
278
|
+
var original_layout = this.layout;
|
279
|
+
this.layout = start;
|
280
|
+
|
281
|
+
// get our frame and parent's frame
|
282
|
+
var p = this.computeParentDimensions();
|
283
|
+
var f = this.computeFrameWithParentFrame(p);
|
284
|
+
|
285
|
+
// set back to target
|
286
|
+
this.layout = original_layout;
|
287
|
+
|
288
|
+
// prepare a new style set, empty.
|
289
|
+
var l = {};
|
290
|
+
|
291
|
+
// loop through properties in target
|
292
|
+
for (var i in target)
|
293
|
+
{
|
294
|
+
if (f)
|
295
|
+
{
|
296
|
+
if (i == "left") { l[i] = f.x; continue; }
|
297
|
+
else if (i == "top") { l[i] = f.y; continue; }
|
298
|
+
else if (i == "right") { l[i] = p.width - f.x - f.width; continue; }
|
299
|
+
else if (i == "bottom") { l[i] = p.height - f.y - f.height; continue; }
|
300
|
+
else if (i == "width") { l[i] = f.width; continue; }
|
301
|
+
else if (i == "height") { l[i] = f.height; continue; }
|
302
|
+
else if (i == "centerX") { l[i] = f.x + (f.width / 2) - (p.width / 2); continue; }
|
303
|
+
else if (i == "centerY") { l[i] = f.y + (f.height / 2) - (p.height / 2); continue; }
|
304
|
+
}
|
305
|
+
|
306
|
+
if (SC.none(l[i])) {
|
307
|
+
if (!SC.none(start[i])) l[i] = start[i];
|
308
|
+
else l[i] = target[i];
|
309
|
+
}
|
310
|
+
}
|
311
|
+
return l;
|
312
|
+
},
|
313
|
+
|
314
|
+
_TMP_CSS_TRANSITIONS: [],
|
315
|
+
|
316
|
+
/**
|
317
|
+
@private
|
318
|
+
Returns a string with CSS for the timing portion of a transition.
|
319
|
+
*/
|
320
|
+
cssTimingStringFor: function(transition) {
|
321
|
+
var timing_function = "linear";
|
322
|
+
if (transition.timing || SC.Animatable.defaultTimingFunction) {
|
323
|
+
var timing = transition.timing || SC.Animatable.defaultTimingFunction;
|
324
|
+
if (SC.typeOf(timing) != SC.T_STRING) {
|
325
|
+
timing_function = "cubic-bezier(" + timing[0] + ", " + timing[1] + ", " + timing[2] + ", " + timing[3] + ")";
|
326
|
+
} else {
|
327
|
+
timing_function = timing;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
return timing_function;
|
331
|
+
},
|
332
|
+
|
333
|
+
/**
|
334
|
+
@private
|
335
|
+
Triggers updateStyle at end of run loop.
|
336
|
+
*/
|
337
|
+
styleDidChange: function() {
|
338
|
+
this.invokeLast("updateStyle");
|
339
|
+
}, // observer set up manually in initMixin to allow live mixins
|
340
|
+
|
341
|
+
|
342
|
+
/**
|
343
|
+
Since transforms can only be animated singly, we don't accelerate the layer unless
|
344
|
+
top and left transitions have the same duration.
|
345
|
+
Not cacheable since transitions may be updated without using a setter.
|
346
|
+
*/
|
347
|
+
hasAcceleratedLayer: function(){
|
348
|
+
var leftDuration = this.transitions['left'] && this.transitions['left'].duration,
|
349
|
+
topDuration = this.transitions['top'] && this.transitions['top'].duration;
|
350
|
+
|
351
|
+
if (leftDuration !== topDuration) {
|
352
|
+
return NO;
|
353
|
+
} else if ((topDuration || leftDuration) && !SC.platform.supportsCSSTransitions) {
|
354
|
+
return NO;
|
355
|
+
} else {
|
356
|
+
return sc_super();
|
357
|
+
}
|
358
|
+
}.property('wantsAcceleratedLayer', 'transitions'),
|
359
|
+
|
360
|
+
/**
|
361
|
+
Immediately applies styles to elements, and starts any needed transitions.
|
362
|
+
|
363
|
+
Called automatically when style changes, but if you need styles to be adjusted
|
364
|
+
immediately (for instance, if you have temporarily disabled animation to set a
|
365
|
+
start state), you may want to call manually too.
|
366
|
+
*/
|
367
|
+
updateStyle: function()
|
368
|
+
{
|
369
|
+
// get the layer. We need it for a great many things.
|
370
|
+
var layer = this.get("layer");
|
371
|
+
|
372
|
+
// cont. with other stuff
|
373
|
+
var newStyle = this.get("style");
|
374
|
+
|
375
|
+
/* SPECIAL CASES (done now because they need to happen whether or not animation will take place) */
|
376
|
+
////**SPECIAL TRANSFORM CASE**////
|
377
|
+
var specialTransform = NO, specialTransformValue = "";
|
378
|
+
if (this.get('hasAcceleratedLayer')) {
|
379
|
+
|
380
|
+
var nT = newStyle['top'],
|
381
|
+
nB = newStyle['bottom'],
|
382
|
+
nL = newStyle['left'],
|
383
|
+
nR = newStyle['right'];
|
384
|
+
|
385
|
+
// NOTE: This needs to match exactly the conditions in layoutStyles
|
386
|
+
if (
|
387
|
+
(SC.empty(nT) || (!SC.isPercentage(nT) && SC.empty(nB))) &&
|
388
|
+
(SC.empty(nL) || (!SC.isPercentage(nL) && SC.empty(nR)))
|
389
|
+
) {
|
390
|
+
specialTransform = YES;
|
391
|
+
this._useSpecialCaseTransform = YES;
|
392
|
+
} else {
|
393
|
+
this._useSpecialCaseTransform = NO;
|
394
|
+
}
|
395
|
+
}
|
396
|
+
////**/SPECIAL TRANSFORM CASE**////
|
397
|
+
|
398
|
+
// make sure there _is_ a previous style to animate from. Otherwise,
|
399
|
+
// we don't animate—and this is sometimes used to temporarily disable animation.
|
400
|
+
var i;
|
401
|
+
if (!this._animatableCurrentStyle || this._disableAnimation > 0 || !layer)
|
402
|
+
{
|
403
|
+
// clone it to be a nice starting point next time.
|
404
|
+
this._animatableSetCSS = "";
|
405
|
+
this._animatableCurrentStyle = {};
|
406
|
+
for (i in newStyle)
|
407
|
+
{
|
408
|
+
if (i[0] != "_") this._animatableCurrentStyle[i] = newStyle[i];
|
409
|
+
}
|
410
|
+
|
411
|
+
if (layer) this._animatableApplyStyles(layer, newStyle);
|
412
|
+
return this;
|
413
|
+
}
|
414
|
+
|
415
|
+
// no use doing anything else if no layer.
|
416
|
+
if (!layer) return;
|
417
|
+
|
418
|
+
// compare new style to old style. Manually, to skip guid stuff that can
|
419
|
+
// mess things up a bit.
|
420
|
+
var equal = true;
|
421
|
+
for (i in newStyle)
|
422
|
+
{
|
423
|
+
if (i[0] == "_") continue;
|
424
|
+
if (newStyle[i] != this._animatableCurrentStyle[i])
|
425
|
+
{
|
426
|
+
equal = false;
|
427
|
+
break;
|
428
|
+
}
|
429
|
+
}
|
430
|
+
if (equal) return this;
|
431
|
+
|
432
|
+
// get a normalized starting point based off of our style
|
433
|
+
var startingPoint = this._getStartStyleHash(this._animatableCurrentStyle, newStyle);
|
434
|
+
var endingPoint = {};
|
435
|
+
|
436
|
+
// prepare stuff for timing function calc
|
437
|
+
var timing;
|
438
|
+
|
439
|
+
// also prepare an array of CSS transitions to set up. Do this always so we get (and keep) all transitions.
|
440
|
+
var cssTransitions = this._TMP_CSS_TRANSITIONS;
|
441
|
+
if (SC.platform.supportsCSSTransitions) {
|
442
|
+
// first, handle special cases
|
443
|
+
var timing_function;
|
444
|
+
|
445
|
+
////**SPECIAL TRANSFORM CASE**////
|
446
|
+
// this is a VERY special case. If right or bottom are supplied, can't do it. If left+top need
|
447
|
+
// animation at different speeds: can't do it.
|
448
|
+
if (specialTransform) {
|
449
|
+
var transitionForTiming = this.transitions['left'] || this.transitions['top'];
|
450
|
+
timing_function = this.cssTimingStringFor(transitionForTiming);
|
451
|
+
cssTransitions.push("-"+SC.platform.cssPrefix+"-transform " + transitionForTiming.duration + "s " + timing_function);
|
452
|
+
}
|
453
|
+
////**END SPECIAL TRANSFORM CASE**////
|
454
|
+
|
455
|
+
// loop
|
456
|
+
for (i in this.transitions) {
|
457
|
+
if (!this._cssTransitionFor[i]) continue;
|
458
|
+
|
459
|
+
////**SPECIAL TRANSFORM CASE**////
|
460
|
+
if (specialTransform && (i == "left" || i == "top")) {
|
461
|
+
if (this.transitions["left"].action){
|
462
|
+
this._transitionCallbacks["-"+SC.platform.cssPrefix+"-transform"] = {
|
463
|
+
source: this,
|
464
|
+
target: (this.transitions["left"].target || this),
|
465
|
+
action: this.transitions["left"].action
|
466
|
+
};
|
467
|
+
}
|
468
|
+
|
469
|
+
if (this.transitions["top"].action){
|
470
|
+
this._transitionCallbacks["-"+SC.platform.cssPrefix+"-transform"] = {
|
471
|
+
source: this,
|
472
|
+
target: (this.transitions["top"].target || this),
|
473
|
+
action: this.transitions["top"].action
|
474
|
+
};
|
475
|
+
}
|
476
|
+
continue;
|
477
|
+
}
|
478
|
+
////**END SPECIAL TRANSFORM CASE**////
|
479
|
+
|
480
|
+
// get timing function
|
481
|
+
timing_function = this.cssTimingStringFor(this.transitions[i]);
|
482
|
+
|
483
|
+
// sanitize name
|
484
|
+
cssTransitions.push(this._cssTransitionFor[i] + " " + this.transitions[i].duration + "s " + timing_function);
|
485
|
+
}
|
486
|
+
}
|
487
|
+
|
488
|
+
for (i in newStyle)
|
489
|
+
{
|
490
|
+
if (i[0] == "_") continue; // guid (or something else we can't deal with anyway)
|
491
|
+
|
492
|
+
|
493
|
+
// if it needs to be set right away since it is not animatable, _getStartStyleHash
|
494
|
+
// will have done that. But if we aren't supposed to animate it, we need to know, now.
|
495
|
+
var shouldSetImmediately = !this.transitions[i] || newStyle[i] == startingPoint[i];
|
496
|
+
if (i == "display" && newStyle[i] != "none") shouldSetImmediately = true;
|
497
|
+
|
498
|
+
if (shouldSetImmediately)
|
499
|
+
{
|
500
|
+
// set
|
501
|
+
startingPoint[i] = newStyle[i];
|
502
|
+
|
503
|
+
// you can't easily stop the animator. So just set its endpoint and make it end soon.
|
504
|
+
var animator = this._animators[i];
|
505
|
+
if (animator)
|
506
|
+
{
|
507
|
+
animator.endValue = newStyle[i];
|
508
|
+
animator.end = 0;
|
509
|
+
}
|
510
|
+
continue;
|
511
|
+
}
|
512
|
+
|
513
|
+
// If there is an available CSS transition, use that.
|
514
|
+
if (SC.platform.supportsCSSTransitions && this._cssTransitionFor[i])
|
515
|
+
{
|
516
|
+
// the transition is already set up.
|
517
|
+
// we can just set it as part of the starting point
|
518
|
+
endingPoint[i] = newStyle[i];
|
519
|
+
|
520
|
+
if (this.transitions[i].action){
|
521
|
+
this._transitionCallbacks[this._cssTransitionFor[i]] = {
|
522
|
+
source: this,
|
523
|
+
target: (this.transitions[i].target || this),
|
524
|
+
action: this.transitions[i].action
|
525
|
+
};
|
526
|
+
}
|
527
|
+
|
528
|
+
continue;
|
529
|
+
}
|
530
|
+
|
531
|
+
// well well well... looks like we need to animate. Prepare an animation structure.
|
532
|
+
// (WHY ARE WE ALWAYS PREPARING?)
|
533
|
+
var applier = this._animateTickPixel,
|
534
|
+
property = i,
|
535
|
+
startValue = startingPoint[i],
|
536
|
+
endValue = newStyle[i];
|
537
|
+
|
538
|
+
// special property stuff
|
539
|
+
if (property == "centerX" || property == "centerY")
|
540
|
+
{
|
541
|
+
// uh... need a special applier; it needs to update currentlayout differently than actual
|
542
|
+
// layout, since one gets "layout," and the other gets styles.
|
543
|
+
applier = this._animateTickCenter;
|
544
|
+
}
|
545
|
+
else if (property == "opacity")
|
546
|
+
{
|
547
|
+
applier = this._animateTickNumber;
|
548
|
+
}
|
549
|
+
else if (property == "display")
|
550
|
+
{
|
551
|
+
applier = this._animateTickDisplay;
|
552
|
+
}
|
553
|
+
|
554
|
+
// cache animator objects, not for memory, but so we can modify them.
|
555
|
+
if (!this._animators[i]) this._animators[i] = {};
|
556
|
+
|
557
|
+
// used to mixin a struct. But I think that would create a new struct.
|
558
|
+
// also, why waste cycles on a SC.mixin()? So I go the direct approach.
|
559
|
+
var a = this._animators[i];
|
560
|
+
|
561
|
+
// set settings...
|
562
|
+
// start: Date.now(), // you could put this here. But it is better to wait. The animation is smoother
|
563
|
+
// if its beginning time is whenever the first frame fires.
|
564
|
+
// otherwise, if there is a big delay before the first frame (perhaps we are animating other elements)
|
565
|
+
// the items will "jump" unattractively
|
566
|
+
a.start = null;
|
567
|
+
a.duration = Math.floor(this.transitions[i].duration * 1000);
|
568
|
+
a.startValue = startValue;
|
569
|
+
a.endValue = endValue;
|
570
|
+
a.layer = layer;
|
571
|
+
a.property = property;
|
572
|
+
a.action = applier;
|
573
|
+
a.style = layer.style;
|
574
|
+
a.holder = this;
|
575
|
+
|
576
|
+
if (this.transitions[i].action){
|
577
|
+
a.callback = {
|
578
|
+
source: this,
|
579
|
+
target: (this.transitions[i].target || this),
|
580
|
+
action: this.transitions[i].action
|
581
|
+
};
|
582
|
+
}
|
583
|
+
|
584
|
+
timing = this.transitions[i].timing || SC.Animatable.defaultTimingFunction;
|
585
|
+
if (timing && SC.typeOf(timing) != SC.T_STRING) a.timingFunction = timing;
|
586
|
+
|
587
|
+
// add timer
|
588
|
+
if (!a.going) this._animationsToStart[i] = a;
|
589
|
+
}
|
590
|
+
|
591
|
+
// start animations, in order
|
592
|
+
var ao = this._animationOrder, l = this._animationOrder.length;
|
593
|
+
for (i = 0; i < l; i++)
|
594
|
+
{
|
595
|
+
var nextAnimation = ao[i];
|
596
|
+
if (this._animationsToStart[nextAnimation])
|
597
|
+
{
|
598
|
+
SC.Animatable.addTimer(this._animationsToStart[nextAnimation]);
|
599
|
+
delete this._animationsToStart[nextAnimation];
|
600
|
+
}
|
601
|
+
}
|
602
|
+
|
603
|
+
// and update layout to the normalized start.
|
604
|
+
var css = cssTransitions.join(",");
|
605
|
+
cssTransitions.length = "";
|
606
|
+
this._animatableSetCSS = css;
|
607
|
+
|
608
|
+
// apply starting styles directly to layer
|
609
|
+
this._animatableApplyStyles(layer, startingPoint, endingPoint);
|
610
|
+
|
611
|
+
// all our timers are scheduled, we should be good to go. YAY.
|
612
|
+
return this;
|
613
|
+
|
614
|
+
},
|
615
|
+
|
616
|
+
_style_opacity_helper: function(style, key, props)
|
617
|
+
{
|
618
|
+
style["opacity"] = props["opacity"];
|
619
|
+
style["mozOpacity"] = props["opacity"]; // older Firefox?
|
620
|
+
style["filter"] = "alpha(opacity=" + props["opacity"] * 100 + ")";
|
621
|
+
},
|
622
|
+
|
623
|
+
/**
|
624
|
+
@private
|
625
|
+
Adjusts display and queues a change for the other properties.
|
626
|
+
|
627
|
+
layer: the layer to modify
|
628
|
+
styles: the styles to set
|
629
|
+
delayed: styles to set after a brief delay (if any)
|
630
|
+
*/
|
631
|
+
_animatableApplyStyles: function(layer, styles, delayed)
|
632
|
+
{
|
633
|
+
if (!layer) return;
|
634
|
+
|
635
|
+
// handle a specific style first: display. There is a special case because it disrupts transitions.
|
636
|
+
var needsRender = NO;
|
637
|
+
if (styles["display"] && layer.style["display"] !== styles["display"]) {
|
638
|
+
layer.style["display"] = styles["display"];
|
639
|
+
needsRender = YES;
|
640
|
+
}
|
641
|
+
|
642
|
+
// set CSS transitions very first thing
|
643
|
+
if (this._animatableSetCSS != this._last_transition_css) {
|
644
|
+
layer.style[SC.platform.domCSSPrefix+"Transition"] = this._animatableSetCSS;
|
645
|
+
this._last_transition_css = this._animatableSetCSS;
|
646
|
+
needsRender = YES;
|
647
|
+
}
|
648
|
+
|
649
|
+
if (!this._animators["display-styles"]) this._animators["display-styles"] = {};
|
650
|
+
|
651
|
+
// get timer
|
652
|
+
var timer = this._animators["display-styles"];
|
653
|
+
|
654
|
+
// set settings
|
655
|
+
timer.holder = this;
|
656
|
+
timer.action = this._animatableApplyNonDisplayStylesFromTimer;
|
657
|
+
timer.inLoopAction = this._animatableApplyNonDisplayStyles;
|
658
|
+
timer.layer = layer;
|
659
|
+
timer.styles = styles;
|
660
|
+
timer.delayed = delayed;
|
661
|
+
this._animatableCurrentStyle = styles;
|
662
|
+
|
663
|
+
// schedule.
|
664
|
+
if (this._disableAnimation > 0) {
|
665
|
+
timer.inLoopAction();
|
666
|
+
} else {
|
667
|
+
// after setting transition or display, we must wait a moment;
|
668
|
+
// otherwise, no animation will happen.
|
669
|
+
SC.Animatable.addTimer(timer);
|
670
|
+
}
|
671
|
+
},
|
672
|
+
|
673
|
+
_animatableApplyNonDisplayStylesFromTimer: function() {
|
674
|
+
SC.run(function() {
|
675
|
+
this.inLoopAction();
|
676
|
+
}, this);
|
677
|
+
},
|
678
|
+
|
679
|
+
_animatableApplyNonDisplayStyles: function(){
|
680
|
+
var layer = this.layer, styles = this.holder._animatableCurrentStyle; // this == timer
|
681
|
+
var styleHelpers = {
|
682
|
+
opacity: this.holder._style_opacity_helper
|
683
|
+
// more to be added here...
|
684
|
+
};
|
685
|
+
|
686
|
+
var newLayout = {}, updateLayout = NO, style = layer.style;
|
687
|
+
|
688
|
+
// we extract the layout portion so SproutCore can do its own thing...
|
689
|
+
var transform = "";
|
690
|
+
for (var i in styles)
|
691
|
+
{
|
692
|
+
if (i == "display") continue;
|
693
|
+
if (this.holder._layoutStyles.indexOf(i) >= 0)
|
694
|
+
{
|
695
|
+
// otherwise, normal layout
|
696
|
+
newLayout[i] = styles[i];
|
697
|
+
updateLayout = YES;
|
698
|
+
continue;
|
699
|
+
}
|
700
|
+
else if (i == "transform") transform += " " + styles[i];
|
701
|
+
else if (styleHelpers[i]) styleHelpers[i](style, i, styles);
|
702
|
+
else style[i] = styles[i];
|
703
|
+
}
|
704
|
+
|
705
|
+
// don't want to set because we don't want updateLayout... again.
|
706
|
+
if (updateLayout) {
|
707
|
+
var prev = this.holder.layout;
|
708
|
+
this.holder.layout = newLayout;
|
709
|
+
|
710
|
+
// set layout
|
711
|
+
this.holder.notifyPropertyChange("layoutStyle");
|
712
|
+
|
713
|
+
// apply the styles (but we have to mix it in, because we still have transitions, etc. that we set)
|
714
|
+
var ls = this.holder.get("layoutStyle");
|
715
|
+
for (var key in ls) {
|
716
|
+
if (SC.none(ls[key])) style[key] = ""; // because IE is stupid and can't handle delete or null
|
717
|
+
else if (style[key] != ls[key]) style[key] = ls[key];
|
718
|
+
}
|
719
|
+
|
720
|
+
// go back to previous
|
721
|
+
this.holder.layout = prev;
|
722
|
+
}
|
723
|
+
|
724
|
+
// queue up any delayed styles
|
725
|
+
if (this.delayed) {
|
726
|
+
// set settings
|
727
|
+
SC.mixin(this.holder._animatableCurrentStyle, this.delayed);
|
728
|
+
this.styles = this.delayed;
|
729
|
+
this.delayed = undefined;
|
730
|
+
|
731
|
+
// schedule.
|
732
|
+
if (this._disableAnimation > 0) {
|
733
|
+
this.inLoopAction();
|
734
|
+
} else {
|
735
|
+
// after setting transition or display, we must wait a moment;
|
736
|
+
// otherwise, no animation will happen.
|
737
|
+
SC.Animatable.addTimer(this);
|
738
|
+
}
|
739
|
+
}
|
740
|
+
},
|
741
|
+
|
742
|
+
/**
|
743
|
+
Overriden to support animation.
|
744
|
+
|
745
|
+
Works by copying the styles to the object's "style" property.
|
746
|
+
*/
|
747
|
+
updateLayout: function(context, firstTime)
|
748
|
+
{
|
749
|
+
var style = SC.clone(this.get("style"));
|
750
|
+
var newLayout = this.get("layout");
|
751
|
+
var i = 0, ls = this._layoutStyles, lsl = ls.length, didChange = NO;
|
752
|
+
for (i = 0; i < lsl; i++)
|
753
|
+
{
|
754
|
+
var key = ls[i];
|
755
|
+
if (style[key] !== newLayout[key])
|
756
|
+
{
|
757
|
+
if (SC.none(newLayout[key])) style[key] = undefined; // because IE is stupid and can't handle delete or debug.
|
758
|
+
else style[key] = newLayout[key];
|
759
|
+
didChange = YES;
|
760
|
+
}
|
761
|
+
}
|
762
|
+
|
763
|
+
if (didChange) {
|
764
|
+
this.style = style;
|
765
|
+
this.updateStyle(); // updateLayout is already called late, so why delay longer?
|
766
|
+
}
|
767
|
+
|
768
|
+
return this;
|
769
|
+
},
|
770
|
+
|
771
|
+
/**
|
772
|
+
@private
|
773
|
+
Solves cubic bezier curves. Basically, returns the Y for the supplied X.
|
774
|
+
|
775
|
+
I have only a vague idea of how this works. But I do have a vague idea. It is originally
|
776
|
+
from WebKit's source code:
|
777
|
+
http://trac.webkit.org/browser/trunk/WebCore/platform/graphics/UnitBezier.h?rev=31808
|
778
|
+
*/
|
779
|
+
_solveBezierForT: function(ax, ay, bx, by, cx, cy, x, duration) {
|
780
|
+
// determines accuracy. Which means animation is slower for longer duration animations.
|
781
|
+
// that seems ironic, for some reason, but I don't know why.
|
782
|
+
|
783
|
+
// SOME OPTIMIZATIONS COULD BE DONE, LIKE MOVING THIS INTO ITS OWN BIT AT BEGINNING OF ANIMATION.
|
784
|
+
var epsilon = 1.0 / (200.0 * duration);
|
785
|
+
|
786
|
+
// a method I have NO idea about... Newton's method
|
787
|
+
var t0, t1, t2, x2, d2, i;
|
788
|
+
for (t2 = x, i = 0; i < 8; i++) {
|
789
|
+
x2 = ((ax * t2 + bx) * t2 + cx) * t2 - x; // sample curve x for t2, - x
|
790
|
+
if (Math.abs(x2) < epsilon) return t2; // obviously, this is determining the accuracy
|
791
|
+
d2 = (3.0 * ax * t2 + 2.0 * bx) * t2 + cx;
|
792
|
+
if (Math.abs(d2) < Math.pow(10, -6)) break;
|
793
|
+
t2 = t2 - x2 / d2;
|
794
|
+
}
|
795
|
+
|
796
|
+
// fall back to bisection
|
797
|
+
t0 = 0.0;
|
798
|
+
t1 = 1.0;
|
799
|
+
t2 = x;
|
800
|
+
if (t2 < t0) return t0;
|
801
|
+
if (t2 > t1) return t1;
|
802
|
+
while (t0 < t1) {
|
803
|
+
x2 = ((ax * t2 + bx) * t2 + cx) * t2;
|
804
|
+
if (Math.abs(x2 - x) < epsilon) return t2;
|
805
|
+
|
806
|
+
if (x > x2) t0 = t2;
|
807
|
+
else t1 = t2;
|
808
|
+
|
809
|
+
t2 = (t1 - t0) * 0.5 + t0;
|
810
|
+
}
|
811
|
+
|
812
|
+
return t2; // on failure
|
813
|
+
},
|
814
|
+
|
815
|
+
_solveBezier: function(p1x, p1y, p2x, p2y, x, duration) {
|
816
|
+
// calculate coefficients
|
817
|
+
var cx = 3.0 * p1x;
|
818
|
+
var bx = 3.0 * (p2x - p1x) - cx;
|
819
|
+
var ax = 1.0 - cx - bx;
|
820
|
+
|
821
|
+
var cy = 3.0 * p1y;
|
822
|
+
var by = 3.0 * (p2y - p1y) - cy;
|
823
|
+
var ay = 1.0 - cy - by;
|
824
|
+
|
825
|
+
var t = this._solveBezierForT(ax, ay, bx, by, cx, cy, x, duration);
|
826
|
+
|
827
|
+
// now calculate Y
|
828
|
+
return ((ay * t + by) * t + cy) * t;
|
829
|
+
},
|
830
|
+
|
831
|
+
/**
|
832
|
+
@private
|
833
|
+
Manages a single step in a single animation.
|
834
|
+
NOTE: this=>an animator hash
|
835
|
+
*/
|
836
|
+
_animateTickPixel: function(t)
|
837
|
+
{
|
838
|
+
// prepare timing stuff
|
839
|
+
// first, setup this.start if needed (it is lazy, after all)
|
840
|
+
if (SC.none(this.start))
|
841
|
+
{
|
842
|
+
this.start = t;
|
843
|
+
this.end = this.start + this.duration;
|
844
|
+
}
|
845
|
+
|
846
|
+
// the differences
|
847
|
+
var s = this.start, e = this.end;
|
848
|
+
var sv = this.startValue, ev = this.endValue;
|
849
|
+
var d = e - s;
|
850
|
+
var dv = ev - sv;
|
851
|
+
|
852
|
+
// get current percent of animation completed
|
853
|
+
var c = t - s;
|
854
|
+
var percent = Math.min(c / d, 1);
|
855
|
+
|
856
|
+
// call interpolator (if any)
|
857
|
+
if (this.timingFunction) {
|
858
|
+
// this may be slow, but...
|
859
|
+
var timing = this.timingFunction;
|
860
|
+
percent = this.holder._solveBezier(timing[0], timing[1], timing[2], timing[3], percent, d);
|
861
|
+
}
|
862
|
+
|
863
|
+
// calculate new position
|
864
|
+
var value = Math.floor(sv + (dv * percent));
|
865
|
+
this.holder._animatableCurrentStyle[this.property] = value;
|
866
|
+
|
867
|
+
// note: the following tested faster than directly setting this.layer.style.cssText
|
868
|
+
this.style[this.property] = value + "px";
|
869
|
+
|
870
|
+
if (t < e) SC.Animatable.addTimer(this);
|
871
|
+
else {
|
872
|
+
this.going = false;
|
873
|
+
if(this.callback) SC.Animatable.runCallback(this.callback);
|
874
|
+
this.styles = null;
|
875
|
+
this.layer = null;
|
876
|
+
}
|
877
|
+
},
|
878
|
+
|
879
|
+
_animateTickDisplay: function(t)
|
880
|
+
{
|
881
|
+
// prepare timing stuff
|
882
|
+
// first, setup this.start if needed (it is lazy, after all)
|
883
|
+
if (SC.none(this.start))
|
884
|
+
{
|
885
|
+
this.start = t;
|
886
|
+
this.end = this.start + this.duration;
|
887
|
+
}
|
888
|
+
|
889
|
+
// check if we should keep going (we only set display none, and only at end)
|
890
|
+
var e = this.end;
|
891
|
+
if (t < e)
|
892
|
+
{
|
893
|
+
SC.Animatable.addTimer(this);
|
894
|
+
return;
|
895
|
+
}
|
896
|
+
|
897
|
+
this.holder._animatableCurrentStyle[this.property] = this.endValue;
|
898
|
+
this.style[this.property] = this.endValue;
|
899
|
+
|
900
|
+
this.going = false;
|
901
|
+
if(this.callback) SC.Animatable.runCallback(this.callback);
|
902
|
+
this.styles = null;
|
903
|
+
this.layer = null;
|
904
|
+
},
|
905
|
+
|
906
|
+
/**
|
907
|
+
@private
|
908
|
+
Manages a single step in a single animation.
|
909
|
+
NOTE: this=>an animator hash
|
910
|
+
*/
|
911
|
+
_animateTickNumber: function(t)
|
912
|
+
{
|
913
|
+
// prepare timing stuff
|
914
|
+
// first, setup this.start if needed (it is lazy, after all)
|
915
|
+
if (SC.none(this.start))
|
916
|
+
{
|
917
|
+
this.start = t;
|
918
|
+
this.end = this.start + this.duration;
|
919
|
+
}
|
920
|
+
|
921
|
+
// the differences
|
922
|
+
var s = this.start, e = this.end;
|
923
|
+
var sv = this.startValue, ev = this.endValue;
|
924
|
+
var d = e - s;
|
925
|
+
var dv = ev - sv;
|
926
|
+
|
927
|
+
// get current percent of animation completed
|
928
|
+
var c = t - s;
|
929
|
+
var percent = Math.min(c / d, 1);
|
930
|
+
|
931
|
+
// call interpolator (if any)
|
932
|
+
if (this.timingFunction) {
|
933
|
+
// this may be slow, but...
|
934
|
+
var timing = this.timingFunction;
|
935
|
+
percent = this.holder._solveBezier(timing[0], timing[1], timing[2], timing[3], percent, d);
|
936
|
+
}
|
937
|
+
|
938
|
+
// calculate new position
|
939
|
+
var value = Math.round((sv + (dv * percent)) * 100) / 100;
|
940
|
+
this.holder._animatableCurrentStyle[this.property] = value;
|
941
|
+
|
942
|
+
// note: the following tested faster than directly setting this.layer.style.cssText
|
943
|
+
this.style[this.property] = value;
|
944
|
+
if (this.property == "opacity")
|
945
|
+
{
|
946
|
+
this.style["zoom"] = 1;
|
947
|
+
this.style["filter"] = "alpha(opacity=" + Math.round(value * 20) * 5 + ")";
|
948
|
+
}
|
949
|
+
|
950
|
+
if (t < e) SC.Animatable.addTimer(this);
|
951
|
+
else {
|
952
|
+
this.going = false;
|
953
|
+
if(this.callback) SC.Animatable.runCallback(this.callback);
|
954
|
+
this.styles = null;
|
955
|
+
this.layer = null;
|
956
|
+
}
|
957
|
+
},
|
958
|
+
|
959
|
+
// NOTE: I tested this with two separate functions (one for each X and Y)
|
960
|
+
// no definite performance difference on Safari, at least.
|
961
|
+
_animateTickCenter: function(t)
|
962
|
+
{
|
963
|
+
// prepare timing stuff
|
964
|
+
// first, setup this.start if needed (it is lazy, after all)
|
965
|
+
if (SC.none(this.start))
|
966
|
+
{
|
967
|
+
this.start = t;
|
968
|
+
this.end = this.start + this.duration;
|
969
|
+
}
|
970
|
+
|
971
|
+
// the differences
|
972
|
+
var s = this.start, e = this.end;
|
973
|
+
var sv = this.startValue, ev = this.endValue;
|
974
|
+
var d = e - s;
|
975
|
+
var dv = ev - sv;
|
976
|
+
|
977
|
+
// get current percent of animation completed
|
978
|
+
var c = t - s;
|
979
|
+
var percent = Math.min(c / d, 1);
|
980
|
+
|
981
|
+
// call interpolator (if any)
|
982
|
+
if (this.timingFunction) {
|
983
|
+
// this may be slow, but...
|
984
|
+
var timing = this.timingFunction;
|
985
|
+
percent = this.holder._solveBezier(timing[0], timing[1], timing[2], timing[3], percent, d);
|
986
|
+
}
|
987
|
+
|
988
|
+
// calculate new position
|
989
|
+
var value = sv + (dv * percent);
|
990
|
+
this.holder._animatableCurrentStyle[this.property] = value;
|
991
|
+
|
992
|
+
// calculate style, which needs to subtract half of width/height
|
993
|
+
var widthOrHeight, style;
|
994
|
+
if (this.property == "centerX")
|
995
|
+
{
|
996
|
+
widthOrHeight = "width"; style = "marginLeft";
|
997
|
+
}
|
998
|
+
else
|
999
|
+
{
|
1000
|
+
widthOrHeight = "height"; style = "marginTop";
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
this.style[style] = Math.round(value - (this.holder._animatableCurrentStyle[widthOrHeight] / 2)) + "px";
|
1004
|
+
|
1005
|
+
if (t < e) SC.Animatable.addTimer(this);
|
1006
|
+
else {
|
1007
|
+
this.going = false;
|
1008
|
+
if(this.callback) SC.Animatable.runCallback(this.callback);
|
1009
|
+
this.styles = null;
|
1010
|
+
this.layer = null;
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
};
|
1014
|
+
|
1015
|
+
/*
|
1016
|
+
Add Singleton Portion
|
1017
|
+
*/
|
1018
|
+
SC.mixin(SC.Animatable, {
|
1019
|
+
/** @scope SC.Animatable */
|
1020
|
+
NAMESPACE: 'SC.Animatable',
|
1021
|
+
VERSION: '0.1.0',
|
1022
|
+
|
1023
|
+
/** Linear transition **/
|
1024
|
+
TRANSITION_NONE: "linear",
|
1025
|
+
|
1026
|
+
/** 'ease' transition if using CSS transitions; otherwise linear. **/
|
1027
|
+
TRANSITION_CSS_EASE: "ease",
|
1028
|
+
|
1029
|
+
/** 'ease-in' transition if using CSS transitions; otherwise linear. **/
|
1030
|
+
TRANSITION_CSS_EASE_IN: "ease-in",
|
1031
|
+
|
1032
|
+
/** 'ease-out' transition if using CSS transitions; otherwise linear. **/
|
1033
|
+
TRANSITION_CSS_EASE_OUT: "ease-out",
|
1034
|
+
|
1035
|
+
/** 'ease-in-out' transition if using CSS transitions; otherwise linear. **/
|
1036
|
+
TRANSITION_CSS_EASE_IN_OUT: "ease-in-out",
|
1037
|
+
|
1038
|
+
/** 'ease' transition. **/
|
1039
|
+
TRANSITION_EASE: [0.25, 0.1, 0.25, 1.0],
|
1040
|
+
|
1041
|
+
TRANSITION_LINEAR: [0.0, 0.0, 1.0, 1.0],
|
1042
|
+
|
1043
|
+
/** 'ease-in' transition. **/
|
1044
|
+
TRANSITION_EASE_IN: [0.42, 0.0, 1.0, 1.0],
|
1045
|
+
|
1046
|
+
/** 'ease-out' transition. **/
|
1047
|
+
TRANSITION_EASE_OUT: [0, 0, 0.58, 1.0],
|
1048
|
+
|
1049
|
+
/** 'ease-in-out' transition if using CSS transitions; otherwise linear. **/
|
1050
|
+
TRANSITION_EASE_IN_OUT: [0.42, 0, 0.58, 1.0],
|
1051
|
+
|
1052
|
+
/**
|
1053
|
+
The timing function which all SC.Animatables should default to.
|
1054
|
+
*/
|
1055
|
+
defaultTimingFunction: null, // you can change to TRANSITION_EASE, etc., but that may impact performance.
|
1056
|
+
|
1057
|
+
// For performance, use a custom linked-list timer
|
1058
|
+
baseTimer: {
|
1059
|
+
next: null
|
1060
|
+
},
|
1061
|
+
|
1062
|
+
// keep track of whether the timer is running
|
1063
|
+
going: false,
|
1064
|
+
|
1065
|
+
// ticks and tocs
|
1066
|
+
_ticks: 0,
|
1067
|
+
_timer_start_time: null,
|
1068
|
+
|
1069
|
+
// the global tiemr interval
|
1070
|
+
interval: 10,
|
1071
|
+
|
1072
|
+
// the current time (a placeholder, really)
|
1073
|
+
currentTime: new Date().getTime(),
|
1074
|
+
|
1075
|
+
/**
|
1076
|
+
A hash of stats for any currently running animations. Currently has property
|
1077
|
+
lastFPS, which is the FPS for the last JavaScript-based animation.
|
1078
|
+
*/
|
1079
|
+
stats: SC.Object.create({
|
1080
|
+
lastFPS: 0
|
1081
|
+
}),
|
1082
|
+
|
1083
|
+
/**
|
1084
|
+
Adds a timer.
|
1085
|
+
@private
|
1086
|
+
*/
|
1087
|
+
addTimer: function(animator) {
|
1088
|
+
if (animator.isQueued) return;
|
1089
|
+
animator.prev = SC.Animatable.baseTimer;
|
1090
|
+
animator.next = SC.Animatable.baseTimer.next;
|
1091
|
+
if (SC.Animatable.baseTimer.next) SC.Animatable.baseTimer.next.prev = animator; // adjust next prev.
|
1092
|
+
SC.Animatable.baseTimer.next = animator; // switcheroo.
|
1093
|
+
animator.isQueued = true;
|
1094
|
+
if (!SC.Animatable.going) SC.Animatable.start();
|
1095
|
+
},
|
1096
|
+
|
1097
|
+
/**
|
1098
|
+
Removes a timer.
|
1099
|
+
@private
|
1100
|
+
*/
|
1101
|
+
removeTimer: function(animator) {
|
1102
|
+
if (!animator.isQueued) return;
|
1103
|
+
if (animator.next) animator.next.prev = animator.prev; // splice ;)
|
1104
|
+
animator.prev.next = animator.next; // it should always have a prev.
|
1105
|
+
animator.isQueued = false;
|
1106
|
+
},
|
1107
|
+
|
1108
|
+
start: function()
|
1109
|
+
{
|
1110
|
+
SC.Animatable._ticks = 0;
|
1111
|
+
SC.Animatable._timer_start_time = new Date().getTime();
|
1112
|
+
SC.Animatable.going = true;
|
1113
|
+
|
1114
|
+
// set a timeout so tick only runs AFTER any pending animation timers are set.
|
1115
|
+
setTimeout(function(){ SC.Animatable.timeout(); }, SC.Animatable.interval);
|
1116
|
+
},
|
1117
|
+
|
1118
|
+
timeout: function()
|
1119
|
+
{
|
1120
|
+
SC.Animatable.currentTime = new Date().getTime();
|
1121
|
+
var start = SC.Animatable.currentTime;
|
1122
|
+
|
1123
|
+
var next = SC.Animatable.baseTimer.next;
|
1124
|
+
SC.Animatable.baseTimer.next = null;
|
1125
|
+
var i = 0;
|
1126
|
+
while (next)
|
1127
|
+
{
|
1128
|
+
var t = next.next;
|
1129
|
+
next.isQueued = false;
|
1130
|
+
next.next = null;
|
1131
|
+
next.prev = null;
|
1132
|
+
next.action.call(next, start);
|
1133
|
+
next = t;
|
1134
|
+
i++;
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
// built-in FPS counter, so that FPS is only counted DURING animation.
|
1138
|
+
// is there a way to make the minifier get rid of this? Because that would be lovely.
|
1139
|
+
// still, only called once per frame, so should _very_ minimally impact performance and memory.
|
1140
|
+
if (SC.Animatable._ticks < 1000000) SC.Animatable._ticks++; // okay, put _some_ limit on it
|
1141
|
+
|
1142
|
+
// now see about doing next bit...
|
1143
|
+
var end = new Date().getTime();
|
1144
|
+
var elapsed = end - start;
|
1145
|
+
if (SC.Animatable.baseTimer.next)
|
1146
|
+
{
|
1147
|
+
setTimeout(function(){ SC.Animatable.timeout(); }, Math.max(0, SC.Animatable.interval - elapsed));
|
1148
|
+
}
|
1149
|
+
else
|
1150
|
+
{
|
1151
|
+
// we're done... so calculate FPS
|
1152
|
+
SC.Animatable.going = false;
|
1153
|
+
|
1154
|
+
// get diff
|
1155
|
+
var time_diff = end - SC.Animatable._timer_start_time;
|
1156
|
+
SC.run(function() {
|
1157
|
+
SC.Animatable.stats.set("lastFPS", SC.Animatable._ticks / (time_diff / 1000));
|
1158
|
+
});
|
1159
|
+
}
|
1160
|
+
},
|
1161
|
+
|
1162
|
+
runCallback: function(callback){
|
1163
|
+
var typeOfAction = SC.typeOf(callback.action);
|
1164
|
+
|
1165
|
+
// if the action is a function, just try to call it.
|
1166
|
+
if (typeOfAction == SC.T_FUNCTION) {
|
1167
|
+
callback.action.call(callback.target, callback.source);
|
1168
|
+
|
1169
|
+
// otherwise, action should be a string. If it has a period, treat it
|
1170
|
+
// like a property path.
|
1171
|
+
} else if (typeOfAction === SC.T_STRING) {
|
1172
|
+
if (callback.action.indexOf('.') >= 0) {
|
1173
|
+
var path = callback.action.split('.') ;
|
1174
|
+
var property = path.pop() ;
|
1175
|
+
|
1176
|
+
var target = SC.objectForPropertyPath(path, window) ;
|
1177
|
+
var action = target.get ? target.get(property) : target[property];
|
1178
|
+
if (action && SC.typeOf(action) == SC.T_FUNCTION) {
|
1179
|
+
action.call(target, callback.source);
|
1180
|
+
} else {
|
1181
|
+
throw 'SC.Animator could not find a function at %@'.fmt(callback.action) ;
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
// otherwise, try to execute action direction on target or send down
|
1185
|
+
// responder chain.
|
1186
|
+
} else {
|
1187
|
+
SC.RootResponder.responder.sendAction(callback.action, callback.target, callback.source, callback.source.get("pane"), null, callback.source);
|
1188
|
+
}
|
1189
|
+
}
|
1190
|
+
}
|
1191
|
+
|
1192
|
+
});
|