spade 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +0 -9
- data/Gemfile +1 -17
- data/Gemfile.lock +16 -11
- data/lib/spade.rb +1 -0
- data/lib/spade/cli/base.rb +18 -0
- data/lib/spade/package.rb +21 -13
- data/lib/spade/remote.rb +7 -0
- data/lib/spade/version.rb +1 -1
- data/spade.gemspec +14 -1
- data/spec/cli/build_spec.rb +7 -7
- data/spec/cli/install_spec.rb +14 -0
- data/spec/cli/yank_spec.rb +68 -0
- data/spec/fixtures/core-test/bin/cot +1 -0
- data/spec/fixtures/core-test/lib/main.js +1 -0
- data/spec/fixtures/{coffee/bin/cake → core-test/resources/runner.css} +0 -0
- data/spec/fixtures/core-test/tests/test.js +1 -0
- data/spec/fixtures/package.json +28 -23
- data/spec/gauntlet_spec.rb +0 -3
- data/spec/package_spec.rb +32 -22
- data/spec/support/core_test.rb +19 -12
- data/spec/support/fake.rb +3 -1
- data/spec/support/fake_gem_server.rb +27 -11
- data/spec/support/fake_gemcutter.rb +8 -0
- metadata +101 -1650
- data/packages/core-test/.gitignore +0 -2
- data/packages/core-test/Buildfile +0 -15
- data/packages/core-test/CHANGELOG.md +0 -24
- data/packages/core-test/__preamble__.js +0 -34
- data/packages/core-test/bin/cot +0 -3
- data/packages/core-test/lib/assert.js +0 -306
- data/packages/core-test/lib/cli.js +0 -258
- data/packages/core-test/lib/core.js +0 -311
- data/packages/core-test/lib/loggers/browser.js +0 -390
- data/packages/core-test/lib/loggers/console.js +0 -235
- data/packages/core-test/lib/loggers/default.js +0 -272
- data/packages/core-test/lib/loggers/dummy.js +0 -168
- data/packages/core-test/lib/main.js +0 -22
- data/packages/core-test/lib/private/jquery.js +0 -6079
- data/packages/core-test/lib/qunit.js +0 -159
- data/packages/core-test/lib/runner.js +0 -65
- data/packages/core-test/lib/spec.js +0 -302
- data/packages/core-test/lib/sync.js +0 -64
- data/packages/core-test/lib/system/dump.js +0 -208
- data/packages/core-test/lib/system/equiv.js +0 -199
- data/packages/core-test/lib/system/ext.js +0 -62
- data/packages/core-test/lib/system/module.js +0 -162
- data/packages/core-test/lib/system/plan.js +0 -223
- data/packages/core-test/lib/system/stub.js +0 -98
- data/packages/core-test/lib/system/test.js +0 -373
- data/packages/core-test/lib/test.js +0 -69
- data/packages/core-test/lib/utils.js +0 -256
- data/packages/core-test/package.json +0 -10
- data/packages/core-test/resources/additions.css +0 -8
- data/packages/core-test/resources/runner.css +0 -177
- data/packages/core-test/tests/apis/commonjs-test.js +0 -102
- data/packages/core-test/tests/apis/core-test.js +0 -154
- data/packages/core-test/tests/apis/qunit-test.js +0 -244
- data/packages/core-test/tests/apis/spec-test.js +0 -344
- data/packages/core-test/tests/system/equiv/qunit-test.js +0 -1400
- data/packages/core-test/tests/system/test/assert-test.js +0 -86
- data/packages/core-test/tests/system/test/error-test.js +0 -62
- data/packages/core-test/tests/system/test/schedule-test.js +0 -210
- data/packages/core-test/tests/utils/fmt-test.js +0 -24
- data/packages/handlebars/Gemfile +0 -4
- data/packages/handlebars/README.markdown +0 -205
- data/packages/handlebars/Rakefile +0 -65
- data/packages/handlebars/lib/handlebars.js +0 -19
- data/packages/handlebars/lib/handlebars/ast.js +0 -88
- data/packages/handlebars/lib/handlebars/compiler.js +0 -116
- data/packages/handlebars/lib/handlebars/debug.js +0 -25
- data/packages/handlebars/lib/handlebars/printer.js +0 -114
- data/packages/handlebars/lib/handlebars/runtime.js +0 -280
- data/packages/handlebars/lib/handlebars/utils.js +0 -61
- data/packages/handlebars/lib/handlebars/visitor.js +0 -14
- data/packages/handlebars/lib/handlebars/vm.js +0 -634
- data/packages/handlebars/spec/acceptance_spec.rb +0 -100
- data/packages/handlebars/spec/parser_spec.rb +0 -181
- data/packages/handlebars/spec/qunit_spec.js +0 -497
- data/packages/handlebars/spec/spec_helper.rb +0 -107
- data/packages/handlebars/spec/tokenizer_spec.rb +0 -145
- data/packages/handlebars/src/handlebars.l +0 -27
- data/packages/handlebars/src/handlebars.yy +0 -79
- data/packages/handlebars/test.js +0 -56
- data/packages/jquery-core/lib/main.js +0 -897
- data/packages/jquery-core/package.json +0 -9
- data/packages/sproutcore-bootstrap/lib/main.js +0 -11
- data/packages/sproutcore-bootstrap/package.json +0 -15
- data/packages/sproutcore-corefoundation/lib/main.js +0 -66
- data/packages/sproutcore-corefoundation/lib/tests.js +0 -74
- data/packages/sproutcore-corefoundation/package.json +0 -27
- data/packages/sproutcore-corefoundation/tests.html +0 -12
- data/packages/sproutcore-datastore/lib/main.js +0 -23
- data/packages/sproutcore-datastore/package.json +0 -16
- data/packages/sproutcore-datetime/lib/main.js +0 -6
- data/packages/sproutcore-datetime/package.json +0 -16
- data/packages/sproutcore-handlebars/lib/handlebars.js +0 -5
- data/packages/sproutcore-handlebars/lib/main.js +0 -15
- data/packages/sproutcore-handlebars/package.json +0 -17
- data/packages/sproutcore-jquery/lib/main.js +0 -10
- data/packages/sproutcore-jquery/package.json +0 -12
- data/packages/sproutcore-preprocessor/bin/chance +0 -64
- data/packages/sproutcore-preprocessor/lib/css.js +0 -21
- data/packages/sproutcore-preprocessor/lib/main.js +0 -1
- data/packages/sproutcore-preprocessor/lib/preprocessor.js +0 -12
- data/packages/sproutcore-preprocessor/lib/sc_static.js +0 -9
- data/packages/sproutcore-preprocessor/package.json +0 -18
- data/packages/sproutcore-runtime/lib/main.js +0 -37
- data/packages/sproutcore-runtime/package.json +0 -21
- data/spec/fixtures/coffee/bin/coffee +0 -0
- data/spec/fixtures/coffee/lib/coffee.js +0 -0
- data/spec/fixtures/coffee/lib/coffee.png +0 -0
- data/spec/fixtures/coffee/lib/coffee/base.js +0 -0
- data/spec/fixtures/coffee/lib/coffee/mocha/chai.js +0 -0
- data/spec/fixtures/coffee/qunit/coffee/test.js +0 -0
- data/spec/fixtures/coffee/qunit/test.js +0 -0
- data/spec/fixtures/coffee/qunit/test.log +0 -0
- data/sproutcore/.gitignore +0 -13
- data/sproutcore/Buildfile +0 -112
- data/sproutcore/CHANGELOG.md +0 -232
- data/sproutcore/README.md +0 -68
- data/sproutcore/apps/docs/core.js +0 -27
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +0 -14378
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image8.png +0 -0
- data/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
- data/sproutcore/apps/docs/english.lproj/loading.rhtml +0 -9
- data/sproutcore/apps/docs/english.lproj/main_page.js +0 -22
- data/sproutcore/apps/docs/english.lproj/strings.js +0 -15
- data/sproutcore/apps/docs/main.js +0 -30
- data/sproutcore/apps/greenhouse/README +0 -18
- data/sproutcore/apps/greenhouse/TODO +0 -56
- data/sproutcore/apps/greenhouse/beautify.js +0 -1058
- data/sproutcore/apps/greenhouse/controllers/design.js +0 -20
- data/sproutcore/apps/greenhouse/controllers/file.js +0 -35
- data/sproutcore/apps/greenhouse/controllers/files.js +0 -40
- data/sproutcore/apps/greenhouse/controllers/layout.js +0 -53
- data/sproutcore/apps/greenhouse/controllers/library.js +0 -194
- data/sproutcore/apps/greenhouse/controllers/page.js +0 -18
- data/sproutcore/apps/greenhouse/controllers/property.js +0 -19
- data/sproutcore/apps/greenhouse/controllers/property_editor.js +0 -17
- data/sproutcore/apps/greenhouse/controllers/target.js +0 -20
- data/sproutcore/apps/greenhouse/controllers/targets.js +0 -43
- data/sproutcore/apps/greenhouse/controllers/view_configs.js +0 -100
- data/sproutcore/apps/greenhouse/core.js +0 -65
- data/sproutcore/apps/greenhouse/core_file.js +0 -124
- data/sproutcore/apps/greenhouse/data_source.js +0 -250
- data/sproutcore/apps/greenhouse/english.lproj/app_page.js +0 -399
- data/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +0 -107
- data/sproutcore/apps/greenhouse/english.lproj/css/button.css +0 -314
- data/sproutcore/apps/greenhouse/english.lproj/css/dock.css +0 -90
- data/sproutcore/apps/greenhouse/english.lproj/css/general.css +0 -51
- data/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +0 -93
- data/sproutcore/apps/greenhouse/english.lproj/css/menu.css +0 -49
- data/sproutcore/apps/greenhouse/english.lproj/css/modal.css +0 -41
- data/sproutcore/apps/greenhouse/english.lproj/css/picker.css +0 -195
- data/sproutcore/apps/greenhouse/english.lproj/css/search.css +0 -60
- data/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +0 -67
- data/sproutcore/apps/greenhouse/english.lproj/dialogs.js +0 -303
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/sproutcore/apps/greenhouse/english.lproj/inspectors.js +0 -365
- data/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +0 -9
- data/sproutcore/apps/greenhouse/english.lproj/main_page.js +0 -95
- data/sproutcore/apps/greenhouse/english.lproj/strings.js +0 -93
- data/sproutcore/apps/greenhouse/fixtures/file.js +0 -35
- data/sproutcore/apps/greenhouse/main.js +0 -28
- data/sproutcore/apps/greenhouse/mixins/drop_down.js +0 -97
- data/sproutcore/apps/greenhouse/models/design.js +0 -26
- data/sproutcore/apps/greenhouse/models/dir.js +0 -93
- data/sproutcore/apps/greenhouse/models/file.js +0 -51
- data/sproutcore/apps/greenhouse/models/target.js +0 -82
- data/sproutcore/apps/greenhouse/models/view_config.js +0 -49
- data/sproutcore/apps/greenhouse/resources/test_page.js +0 -37
- data/sproutcore/apps/greenhouse/states/inspector.js +0 -152
- data/sproutcore/apps/greenhouse/states/library.js +0 -142
- data/sproutcore/apps/greenhouse/states/main.js +0 -283
- data/sproutcore/apps/greenhouse/states/modals.js +0 -299
- data/sproutcore/apps/greenhouse/states/ready.js +0 -235
- data/sproutcore/apps/greenhouse/tests/controllers/design.js +0 -15
- data/sproutcore/apps/greenhouse/tests/controllers/designs.js +0 -15
- data/sproutcore/apps/greenhouse/tests/controllers/file.js +0 -15
- data/sproutcore/apps/greenhouse/tests/controllers/files.js +0 -15
- data/sproutcore/apps/greenhouse/tests/models/file.js +0 -15
- data/sproutcore/apps/greenhouse/tests/models/view_config.js +0 -15
- data/sproutcore/apps/greenhouse/tests/views/list_item.js +0 -16
- data/sproutcore/apps/greenhouse/tests/views/plist_item.js +0 -20
- data/sproutcore/apps/greenhouse/theme.js +0 -25
- data/sproutcore/apps/greenhouse/views/anchor.js +0 -277
- data/sproutcore/apps/greenhouse/views/application_list_item.js +0 -19
- data/sproutcore/apps/greenhouse/views/event_blocker.js +0 -32
- data/sproutcore/apps/greenhouse/views/label_designer.js +0 -16
- data/sproutcore/apps/greenhouse/views/list_item.js +0 -42
- data/sproutcore/apps/greenhouse/views/plist_item.js +0 -178
- data/sproutcore/apps/greenhouse/views/simple_button.js +0 -157
- data/sproutcore/apps/greenhouse/views/tear_off_picker.js +0 -56
- data/sproutcore/apps/greenhouse/views/web.js +0 -44
- data/sproutcore/apps/test_controls/Buildfile +0 -0
- data/sproutcore/apps/test_controls/controllers/buttons.js +0 -21
- data/sproutcore/apps/test_controls/controllers/categories.js +0 -108
- data/sproutcore/apps/test_controls/controllers/category.js +0 -36
- data/sproutcore/apps/test_controls/core.js +0 -29
- data/sproutcore/apps/test_controls/main.js +0 -14
- data/sproutcore/apps/test_controls/resources/buttons_page.js +0 -142
- data/sproutcore/apps/test_controls/resources/checkboxes_page.js +0 -45
- data/sproutcore/apps/test_controls/resources/flow_layout_page.js +0 -84
- data/sproutcore/apps/test_controls/resources/list_page.js +0 -40
- data/sproutcore/apps/test_controls/resources/loading.rhtml +0 -9
- data/sproutcore/apps/test_controls/resources/main_page.css +0 -60
- data/sproutcore/apps/test_controls/resources/main_page.js +0 -145
- data/sproutcore/apps/test_controls/resources/progress_page.js +0 -32
- data/sproutcore/apps/test_controls/resources/radio_page.js +0 -48
- data/sproutcore/apps/test_controls/resources/scroll_page.js +0 -76
- data/sproutcore/apps/test_controls/resources/segmented_page.js +0 -98
- data/sproutcore/apps/test_controls/resources/select_page.js +0 -60
- data/sproutcore/apps/test_controls/resources/sliders_page.js +0 -53
- data/sproutcore/apps/test_controls/resources/strings.js +0 -50
- data/sproutcore/apps/test_controls/resources/tab_page.js +0 -44
- data/sproutcore/apps/test_controls/resources/text_field_page.js +0 -41
- data/sproutcore/apps/test_controls/theme.js +0 -34
- data/sproutcore/apps/tests/controllers/detail.js +0 -25
- data/sproutcore/apps/tests/controllers/source.js +0 -29
- data/sproutcore/apps/tests/controllers/target.js +0 -26
- data/sproutcore/apps/tests/controllers/targets.js +0 -86
- data/sproutcore/apps/tests/controllers/tests.js +0 -33
- data/sproutcore/apps/tests/core.js +0 -133
- data/sproutcore/apps/tests/english.lproj/loading.rhtml +0 -9
- data/sproutcore/apps/tests/english.lproj/main_page.css +0 -48
- data/sproutcore/apps/tests/english.lproj/main_page.js +0 -233
- data/sproutcore/apps/tests/english.lproj/strings.js +0 -26
- data/sproutcore/apps/tests/main.js +0 -27
- data/sproutcore/apps/tests/states/no_targets.js +0 -26
- data/sproutcore/apps/tests/states/ready.js +0 -56
- data/sproutcore/apps/tests/states/ready_detail.js +0 -41
- data/sproutcore/apps/tests/states/ready_empty.js +0 -48
- data/sproutcore/apps/tests/states/ready_list.js +0 -41
- data/sproutcore/apps/tests/states/ready_loading.js +0 -44
- data/sproutcore/apps/tests/states/ready_no_tests.js +0 -31
- data/sproutcore/apps/tests/states/start.js +0 -39
- data/sproutcore/apps/tests/tests/controllers/detail.js +0 -15
- data/sproutcore/apps/tests/tests/controllers/source.js +0 -15
- data/sproutcore/apps/tests/tests/controllers/target.js +0 -15
- data/sproutcore/apps/tests/tests/controllers/targets.js +0 -15
- data/sproutcore/apps/tests/tests/controllers/tests.js +0 -15
- data/sproutcore/apps/tests/tests/models/target.js +0 -15
- data/sproutcore/apps/tests/tests/models/test.js +0 -15
- data/sproutcore/apps/tests/tests/views/offset_checkbox.js +0 -15
- data/sproutcore/apps/tests/views/offset_checkbox.js +0 -26
- data/sproutcore/apps/welcome/controllers/targets.js +0 -56
- data/sproutcore/apps/welcome/core.js +0 -30
- data/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/sproutcore/apps/welcome/english.lproj/loading.rhtml +0 -10
- data/sproutcore/apps/welcome/english.lproj/main_page.css +0 -25
- data/sproutcore/apps/welcome/english.lproj/main_page.js +0 -67
- data/sproutcore/apps/welcome/english.lproj/strings.js +0 -15
- data/sproutcore/apps/welcome/main.js +0 -19
- data/sproutcore/apps/welcome/tests/controllers/targets.js +0 -15
- data/sproutcore/design/CollectionView State Charts.graffle +0 -4848
- data/sproutcore/design/Design Charts.graffle +0 -16845
- data/sproutcore/design/Record State Table.numbers +0 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/design/SproutCore Datastore Design.graffle/data.plist +0 -19588
- data/sproutcore/design/SproutCore Datastore Design.graffle/image8.png +0 -0
- data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/design/SproutCore Design Template.graffle/data.plist +0 -1452
- data/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
- data/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/sproutcore/design/TestRunner Design.graffle/data.plist +0 -24187
- data/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image15.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
- data/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
- data/sproutcore/design/greenhouse-statechart.graffle +0 -9025
- data/sproutcore/design/greenhouse-statechart.pdf +0 -0
- data/sproutcore/design/iphone-webapp-loading.psd +0 -0
- data/sproutcore/frameworks/animation/Buildfile +0 -3
- data/sproutcore/frameworks/animation/LICENSE +0 -25
- data/sproutcore/frameworks/animation/README.md +0 -79
- data/sproutcore/frameworks/animation/core.js +0 -1206
- data/sproutcore/frameworks/animation/tests/core.js +0 -152
- data/sproutcore/frameworks/bootstrap/README +0 -9
- data/sproutcore/frameworks/bootstrap/core.js +0 -7
- data/sproutcore/frameworks/bootstrap/setup_body_class_names.js +0 -10
- data/sproutcore/frameworks/bootstrap/system/bench.js +0 -14
- data/sproutcore/frameworks/bootstrap/system/browser.js +0 -65
- data/sproutcore/frameworks/bootstrap/system/loader.js +0 -50
- data/sproutcore/frameworks/bootstrap/tests/system/browser.js +0 -187
- data/sproutcore/frameworks/core_foundation/.greenhouseconf +0 -33
- data/sproutcore/frameworks/core_foundation/controllers/array.js +0 -498
- data/sproutcore/frameworks/core_foundation/controllers/controller.js +0 -44
- data/sproutcore/frameworks/core_foundation/controllers/object.js +0 -342
- data/sproutcore/frameworks/core_foundation/core.js +0 -201
- data/sproutcore/frameworks/core_foundation/ext/object.js +0 -83
- data/sproutcore/frameworks/core_foundation/ext/run_loop.js +0 -163
- data/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +0 -110
- data/sproutcore/frameworks/core_foundation/mixins/responder_context.js +0 -269
- data/sproutcore/frameworks/core_foundation/mixins/selection_support.js +0 -250
- data/sproutcore/frameworks/core_foundation/mixins/string.js +0 -163
- data/sproutcore/frameworks/core_foundation/panes/keyboard.js +0 -68
- data/sproutcore/frameworks/core_foundation/panes/layout.js +0 -108
- data/sproutcore/frameworks/core_foundation/panes/main.js +0 -52
- data/sproutcore/frameworks/core_foundation/panes/manipulation.js +0 -27
- data/sproutcore/frameworks/core_foundation/panes/pane.js +0 -672
- data/sproutcore/frameworks/core_foundation/panes/template.js +0 -24
- data/sproutcore/frameworks/core_foundation/panes/visibility.js +0 -11
- data/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +0 -40
- data/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +0 -131
- data/sproutcore/frameworks/core_foundation/resources/core.css +0 -371
- data/sproutcore/frameworks/core_foundation/resources/view.css +0 -57
- data/sproutcore/frameworks/core_foundation/system/application.js +0 -35
- data/sproutcore/frameworks/core_foundation/system/browser.js +0 -36
- data/sproutcore/frameworks/core_foundation/system/builder.js +0 -210
- data/sproutcore/frameworks/core_foundation/system/core_query.js +0 -141
- data/sproutcore/frameworks/core_foundation/system/cursor.js +0 -131
- data/sproutcore/frameworks/core_foundation/system/device.js +0 -210
- data/sproutcore/frameworks/core_foundation/system/event.js +0 -914
- data/sproutcore/frameworks/core_foundation/system/json.js +0 -515
- data/sproutcore/frameworks/core_foundation/system/locale.js +0 -293
- data/sproutcore/frameworks/core_foundation/system/page.js +0 -108
- data/sproutcore/frameworks/core_foundation/system/platform.js +0 -399
- data/sproutcore/frameworks/core_foundation/system/ready.js +0 -77
- data/sproutcore/frameworks/core_foundation/system/render_context.js +0 -1063
- data/sproutcore/frameworks/core_foundation/system/responder.js +0 -124
- data/sproutcore/frameworks/core_foundation/system/root_responder.js +0 -2173
- data/sproutcore/frameworks/core_foundation/system/selection_set.js +0 -695
- data/sproutcore/frameworks/core_foundation/system/sparse_array.js +0 -393
- data/sproutcore/frameworks/core_foundation/system/theme.js +0 -316
- data/sproutcore/frameworks/core_foundation/system/timer.js +0 -553
- data/sproutcore/frameworks/core_foundation/system/utils.js +0 -151
- data/sproutcore/frameworks/core_foundation/system/utils/rect.js +0 -98
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +0 -218
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +0 -206
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +0 -64
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +0 -344
- data/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +0 -136
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +0 -82
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +0 -111
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +0 -193
- data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +0 -265
- data/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +0 -75
- data/sproutcore/frameworks/core_foundation/tests/mixins/string.js +0 -55
- data/sproutcore/frameworks/core_foundation/tests/panes/template.js +0 -14
- data/sproutcore/frameworks/core_foundation/tests/system/builder.js +0 -42
- data/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +0 -65
- data/sproutcore/frameworks/core_foundation/tests/system/json.js +0 -14
- data/sproutcore/frameworks/core_foundation/tests/system/locale.js +0 -134
- data/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +0 -32
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +0 -47
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +0 -44
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +0 -124
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +0 -51
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +0 -50
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +0 -28
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +0 -177
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +0 -109
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +0 -55
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +0 -28
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +0 -74
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +0 -46
- data/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +0 -218
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +0 -124
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +0 -68
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +0 -48
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +0 -101
- data/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +0 -288
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +0 -92
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +0 -17
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +0 -98
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +0 -60
- data/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +0 -111
- data/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +0 -194
- data/sproutcore/frameworks/core_foundation/tests/system/theme.js +0 -77
- data/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +0 -38
- data/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +0 -203
- data/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +0 -71
- data/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +0 -69
- data/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +0 -170
- data/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +0 -18
- data/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +0 -271
- data/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +0 -99
- data/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +0 -43
- data/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +0 -218
- data/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +0 -20
- data/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +0 -148
- data/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +0 -133
- data/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +0 -31
- data/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +0 -206
- data/sproutcore/frameworks/core_foundation/tests/views/template/checkbox_support.js +0 -32
- data/sproutcore/frameworks/core_foundation/tests/views/template/text_field_support.js +0 -73
- data/sproutcore/frameworks/core_foundation/tests/views/template_view/collection.js +0 -111
- data/sproutcore/frameworks/core_foundation/tests/views/template_view/core.js +0 -100
- data/sproutcore/frameworks/core_foundation/tests/views/template_view/handlebars.js +0 -580
- data/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +0 -376
- data/sproutcore/frameworks/core_foundation/tests/views/view/build.js +0 -85
- data/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +0 -89
- data/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +0 -117
- data/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +0 -248
- data/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +0 -145
- data/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +0 -132
- data/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +0 -97
- data/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +0 -83
- data/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +0 -51
- data/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +0 -50
- data/sproutcore/frameworks/core_foundation/tests/views/view/init.js +0 -50
- data/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +0 -217
- data/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +0 -79
- data/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +0 -116
- data/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +0 -22
- data/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +0 -150
- data/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +0 -162
- data/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +0 -180
- data/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +0 -735
- data/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +0 -67
- data/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +0 -203
- data/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +0 -189
- data/sproutcore/frameworks/core_foundation/tests/views/view/render.js +0 -125
- data/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +0 -163
- data/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +0 -29
- data/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +0 -21
- data/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +0 -43
- data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +0 -148
- data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +0 -213
- data/sproutcore/frameworks/core_foundation/tests/views/view/view.js +0 -64
- data/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +0 -202
- data/sproutcore/frameworks/core_foundation/views/template.js +0 -77
- data/sproutcore/frameworks/core_foundation/views/template/checkbox_support.js +0 -20
- data/sproutcore/frameworks/core_foundation/views/template/collection.js +0 -106
- data/sproutcore/frameworks/core_foundation/views/template/text_field_support.js +0 -35
- data/sproutcore/frameworks/core_foundation/views/view.js +0 -1458
- data/sproutcore/frameworks/core_foundation/views/view/animation.js +0 -181
- data/sproutcore/frameworks/core_foundation/views/view/base.js +0 -1
- data/sproutcore/frameworks/core_foundation/views/view/cursor.js +0 -48
- data/sproutcore/frameworks/core_foundation/views/view/enabled.js +0 -57
- data/sproutcore/frameworks/core_foundation/views/view/keyboard.js +0 -223
- data/sproutcore/frameworks/core_foundation/views/view/layout.js +0 -1087
- data/sproutcore/frameworks/core_foundation/views/view/layout_style.js +0 -618
- data/sproutcore/frameworks/core_foundation/views/view/manipulation.js +0 -426
- data/sproutcore/frameworks/core_foundation/views/view/theming.js +0 -362
- data/sproutcore/frameworks/core_foundation/views/view/touch.js +0 -67
- data/sproutcore/frameworks/core_foundation/views/view/visibility.js +0 -118
- data/sproutcore/frameworks/core_tools/core.js +0 -20
- data/sproutcore/frameworks/core_tools/data_source.js +0 -99
- data/sproutcore/frameworks/core_tools/english.lproj/strings.js +0 -15
- data/sproutcore/frameworks/core_tools/fixtures/target.js +0 -87
- data/sproutcore/frameworks/core_tools/fixtures/test.js +0 -44
- data/sproutcore/frameworks/core_tools/models/target.js +0 -108
- data/sproutcore/frameworks/core_tools/models/test.js +0 -48
- data/sproutcore/frameworks/datastore/core.js +0 -8
- data/sproutcore/frameworks/datastore/data_sources/cascade.js +0 -180
- data/sproutcore/frameworks/datastore/data_sources/data_source.js +0 -583
- data/sproutcore/frameworks/datastore/data_sources/fixtures.js +0 -393
- data/sproutcore/frameworks/datastore/debug/json.js +0 -71
- data/sproutcore/frameworks/datastore/debug/standard_setup.js +0 -96
- data/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +0 -2503
- data/sproutcore/frameworks/datastore/fixtures/sample.js +0 -17
- data/sproutcore/frameworks/datastore/models/child_attribute.js +0 -96
- data/sproutcore/frameworks/datastore/models/children_attribute.js +0 -75
- data/sproutcore/frameworks/datastore/models/fetched_attribute.js +0 -100
- data/sproutcore/frameworks/datastore/models/many_attribute.js +0 -154
- data/sproutcore/frameworks/datastore/models/record.js +0 -1318
- data/sproutcore/frameworks/datastore/models/record_attribute.js +0 -567
- data/sproutcore/frameworks/datastore/models/single_attribute.js +0 -159
- data/sproutcore/frameworks/datastore/system/child_array.js +0 -222
- data/sproutcore/frameworks/datastore/system/many_array.js +0 -418
- data/sproutcore/frameworks/datastore/system/nested_store.js +0 -609
- data/sproutcore/frameworks/datastore/system/query.js +0 -1599
- data/sproutcore/frameworks/datastore/system/record_array.js +0 -710
- data/sproutcore/frameworks/datastore/system/store.js +0 -2860
- data/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +0 -133
- data/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +0 -122
- data/sproutcore/frameworks/datastore/tests/integration/contact_model.js +0 -131
- data/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +0 -119
- data/sproutcore/frameworks/datastore/tests/integration/mail_model.js +0 -91
- data/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +0 -56
- data/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +0 -73
- data/sproutcore/frameworks/datastore/tests/models/many_attribute.js +0 -423
- data/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +0 -180
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +0 -309
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +0 -363
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +0 -421
- data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +0 -304
- data/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +0 -55
- data/sproutcore/frameworks/datastore/tests/models/record/destroy.js +0 -92
- data/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +0 -56
- data/sproutcore/frameworks/datastore/tests/models/record/normalize.js +0 -336
- data/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +0 -53
- data/sproutcore/frameworks/datastore/tests/models/record/refresh.js +0 -48
- data/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +0 -170
- data/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +0 -66
- data/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +0 -112
- data/sproutcore/frameworks/datastore/tests/models/record_attribute.js +0 -252
- data/sproutcore/frameworks/datastore/tests/models/single_attribute.js +0 -284
- data/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +0 -204
- data/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +0 -180
- data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +0 -173
- data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +0 -158
- data/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +0 -70
- data/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +0 -113
- data/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +0 -102
- data/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +0 -180
- data/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +0 -126
- data/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +0 -163
- data/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +0 -166
- data/sproutcore/frameworks/datastore/tests/system/query/builders.js +0 -219
- data/sproutcore/frameworks/datastore/tests/system/query/compare.js +0 -144
- data/sproutcore/frameworks/datastore/tests/system/query/contains.js +0 -131
- data/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +0 -81
- data/sproutcore/frameworks/datastore/tests/system/query/copy.js +0 -30
- data/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +0 -197
- data/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +0 -92
- data/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +0 -64
- data/sproutcore/frameworks/datastore/tests/system/query/parse.js +0 -216
- data/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +0 -57
- data/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +0 -47
- data/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +0 -70
- data/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +0 -71
- data/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +0 -177
- data/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +0 -50
- data/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +0 -214
- data/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +0 -54
- data/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +0 -137
- data/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +0 -221
- data/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +0 -156
- data/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +0 -76
- data/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +0 -157
- data/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +0 -278
- data/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +0 -110
- data/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +0 -62
- data/sproutcore/frameworks/datastore/tests/system/store/find.js +0 -530
- data/sproutcore/frameworks/datastore/tests/system/store/init.js +0 -23
- data/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +0 -64
- data/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +0 -61
- data/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +0 -74
- data/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +0 -74
- data/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +0 -76
- data/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +0 -144
- data/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +0 -200
- data/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +0 -41
- data/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +0 -125
- data/sproutcore/frameworks/datetime/resources/strings.js +0 -14
- data/sproutcore/frameworks/datetime/system/datetime.js +0 -1111
- data/sproutcore/frameworks/datetime/tests/system/datetime.js +0 -383
- data/sproutcore/frameworks/debug/core.js +0 -114
- data/sproutcore/frameworks/debug/invoke_once_last_debugging.js +0 -259
- data/sproutcore/frameworks/designer/coders/design.js +0 -20
- data/sproutcore/frameworks/designer/coders/object.js +0 -347
- data/sproutcore/frameworks/designer/controllers/controllers.js +0 -16
- data/sproutcore/frameworks/designer/controllers/design.js +0 -37
- data/sproutcore/frameworks/designer/controllers/designs.js +0 -133
- data/sproutcore/frameworks/designer/controllers/page_design.js +0 -170
- data/sproutcore/frameworks/designer/controllers/page_files.js +0 -22
- data/sproutcore/frameworks/designer/core.js +0 -26
- data/sproutcore/frameworks/designer/css/css_rule.js +0 -22
- data/sproutcore/frameworks/designer/css/css_style.js +0 -29
- data/sproutcore/frameworks/designer/css/css_style_sheet.js +0 -201
- data/sproutcore/frameworks/designer/designers/button.js +0 -21
- data/sproutcore/frameworks/designer/designers/label.js +0 -16
- data/sproutcore/frameworks/designer/designers/object_designer.js +0 -296
- data/sproutcore/frameworks/designer/designers/tab.js +0 -18
- data/sproutcore/frameworks/designer/designers/text_field.js +0 -15
- data/sproutcore/frameworks/designer/designers/view_designer.js +0 -1267
- data/sproutcore/frameworks/designer/english.lproj/css/designer.css +0 -96
- data/sproutcore/frameworks/designer/english.lproj/design_page.js +0 -55
- data/sproutcore/frameworks/designer/english.lproj/high_light.css +0 -10
- data/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
- data/sproutcore/frameworks/designer/english.lproj/selection_handles.css +0 -58
- data/sproutcore/frameworks/designer/ext/binding.js +0 -33
- data/sproutcore/frameworks/designer/ext/object.js +0 -26
- data/sproutcore/frameworks/designer/ext/page.js +0 -58
- data/sproutcore/frameworks/designer/ext/view.js +0 -27
- data/sproutcore/frameworks/designer/mixins/button.js +0 -11
- data/sproutcore/frameworks/designer/mixins/snap_lines.js +0 -221
- data/sproutcore/frameworks/designer/tests/coders/page.js +0 -54
- data/sproutcore/frameworks/designer/tests/designers/view_designer.js +0 -47
- data/sproutcore/frameworks/designer/views/designer_drop_target.js +0 -144
- data/sproutcore/frameworks/designer/views/drawing.js +0 -219
- data/sproutcore/frameworks/designer/views/high_light.js +0 -66
- data/sproutcore/frameworks/designer/views/page_item_view.js +0 -130
- data/sproutcore/frameworks/designer/views/selection_handles.js +0 -78
- data/sproutcore/frameworks/desktop/.greenhouseconf +0 -218
- data/sproutcore/frameworks/desktop/core.js +0 -18
- data/sproutcore/frameworks/desktop/debug/drag.js +0 -41
- data/sproutcore/frameworks/desktop/english.lproj/alert.css +0 -56
- data/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +0 -23
- data/sproutcore/frameworks/desktop/english.lproj/disclosure.css +0 -74
- data/sproutcore/frameworks/desktop/english.lproj/drag.css +0 -7
- data/sproutcore/frameworks/desktop/english.lproj/icons.css +0 -943
- data/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/list_item.css +0 -185
- data/sproutcore/frameworks/desktop/english.lproj/menu.css +0 -12
- data/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +0 -109
- data/sproutcore/frameworks/desktop/english.lproj/modal.css +0 -9
- data/sproutcore/frameworks/desktop/english.lproj/panel.css +0 -91
- data/sproutcore/frameworks/desktop/english.lproj/picker.css +0 -35
- data/sproutcore/frameworks/desktop/english.lproj/progress.css +0 -33
- data/sproutcore/frameworks/desktop/english.lproj/radio.css +0 -10
- data/sproutcore/frameworks/desktop/english.lproj/segmented.css +0 -132
- data/sproutcore/frameworks/desktop/english.lproj/separator.css +0 -19
- data/sproutcore/frameworks/desktop/english.lproj/slider.css +0 -66
- data/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
- data/sproutcore/frameworks/desktop/english.lproj/split_divider.css +0 -6
- data/sproutcore/frameworks/desktop/english.lproj/strings.js +0 -14
- data/sproutcore/frameworks/desktop/english.lproj/tab.css +0 -7
- data/sproutcore/frameworks/desktop/english.lproj/toolbar.css +0 -5
- data/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +0 -196
- data/sproutcore/frameworks/desktop/english.lproj/well.css +0 -71
- data/sproutcore/frameworks/desktop/mixins/border.js +0 -151
- data/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +0 -694
- data/sproutcore/frameworks/desktop/mixins/collection_group.js +0 -22
- data/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +0 -95
- data/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +0 -295
- data/sproutcore/frameworks/desktop/mixins/navigation_builder.js +0 -130
- data/sproutcore/frameworks/desktop/mixins/scrollable.js +0 -253
- data/sproutcore/frameworks/desktop/panes/alert.js +0 -457
- data/sproutcore/frameworks/desktop/panes/menu.js +0 -1141
- data/sproutcore/frameworks/desktop/panes/modal.js +0 -71
- data/sproutcore/frameworks/desktop/panes/palette.js +0 -74
- data/sproutcore/frameworks/desktop/panes/panel.js +0 -207
- data/sproutcore/frameworks/desktop/panes/picker.js +0 -796
- data/sproutcore/frameworks/desktop/panes/select_button.js +0 -895
- data/sproutcore/frameworks/desktop/panes/sheet.js +0 -214
- data/sproutcore/frameworks/desktop/protocols/drag_data_source.js +0 -39
- data/sproutcore/frameworks/desktop/protocols/drag_source.js +0 -81
- data/sproutcore/frameworks/desktop/protocols/drop_target.js +0 -175
- data/sproutcore/frameworks/desktop/protocols/responder.js +0 -299
- data/sproutcore/frameworks/desktop/render_delegates/button.js +0 -105
- data/sproutcore/frameworks/desktop/render_delegates/checkbox.js +0 -100
- data/sproutcore/frameworks/desktop/render_delegates/collection.js +0 -24
- data/sproutcore/frameworks/desktop/render_delegates/disclosure.js +0 -69
- data/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +0 -34
- data/sproutcore/frameworks/desktop/render_delegates/image_button.js +0 -30
- data/sproutcore/frameworks/desktop/render_delegates/master_detail.js +0 -28
- data/sproutcore/frameworks/desktop/render_delegates/menu.js +0 -47
- data/sproutcore/frameworks/desktop/render_delegates/panel.js +0 -28
- data/sproutcore/frameworks/desktop/render_delegates/picker.js +0 -43
- data/sproutcore/frameworks/desktop/render_delegates/progress.js +0 -187
- data/sproutcore/frameworks/desktop/render_delegates/radio.js +0 -95
- data/sproutcore/frameworks/desktop/render_delegates/radio_group.js +0 -109
- data/sproutcore/frameworks/desktop/render_delegates/segment.js +0 -55
- data/sproutcore/frameworks/desktop/render_delegates/segmented.js +0 -77
- data/sproutcore/frameworks/desktop/render_delegates/slider.js +0 -58
- data/sproutcore/frameworks/desktop/render_delegates/source_list.js +0 -8
- data/sproutcore/frameworks/desktop/render_delegates/toolbar.js +0 -18
- data/sproutcore/frameworks/desktop/render_delegates/well.js +0 -27
- data/sproutcore/frameworks/desktop/render_delegates/workspace.js +0 -18
- data/sproutcore/frameworks/desktop/system/drag.js +0 -974
- data/sproutcore/frameworks/desktop/system/key_bindings.js +0 -40
- data/sproutcore/frameworks/desktop/system/undo_manager.js +0 -187
- data/sproutcore/frameworks/desktop/tests/integration/dialog.js +0 -48
- data/sproutcore/frameworks/desktop/tests/mixins/border.js +0 -97
- data/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +0 -158
- data/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +0 -135
- data/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +0 -258
- data/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +0 -35
- data/sproutcore/frameworks/desktop/tests/panes/pane_page.js +0 -41
- data/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +0 -83
- data/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +0 -92
- data/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +0 -194
- data/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +0 -220
- data/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +0 -44
- data/sproutcore/frameworks/desktop/tests/views/button/methods.js +0 -166
- data/sproutcore/frameworks/desktop/tests/views/button/ui.js +0 -236
- data/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +0 -126
- data/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +0 -124
- data/sproutcore/frameworks/desktop/tests/views/collection/content.js +0 -249
- data/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +0 -82
- data/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +0 -215
- data/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +0 -31
- data/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +0 -300
- data/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +0 -65
- data/sproutcore/frameworks/desktop/tests/views/collection/length.js +0 -88
- data/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +0 -240
- data/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +0 -121
- data/sproutcore/frameworks/desktop/tests/views/collection/reload.js +0 -177
- data/sproutcore/frameworks/desktop/tests/views/collection/select.js +0 -240
- data/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +0 -205
- data/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +0 -211
- data/sproutcore/frameworks/desktop/tests/views/collection/selection.js +0 -141
- data/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +0 -188
- data/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +0 -76
- data/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +0 -456
- data/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +0 -104
- data/sproutcore/frameworks/desktop/tests/views/grid/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/grid/ui.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +0 -25
- data/sproutcore/frameworks/desktop/tests/views/list/render.js +0 -92
- data/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +0 -183
- data/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +0 -133
- data/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +0 -131
- data/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +0 -130
- data/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +0 -56
- data/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +0 -205
- data/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +0 -127
- data/sproutcore/frameworks/desktop/tests/views/list_item.js +0 -396
- data/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +0 -46
- data/sproutcore/frameworks/desktop/tests/views/progress/methods.js +0 -128
- data/sproutcore/frameworks/desktop/tests/views/progress/ui.js +0 -421
- data/sproutcore/frameworks/desktop/tests/views/radio/methods.js +0 -119
- data/sproutcore/frameworks/desktop/tests/views/radio/ui.js +0 -349
- data/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +0 -143
- data/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +0 -162
- data/sproutcore/frameworks/desktop/tests/views/scroller.js +0 -118
- data/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +0 -108
- data/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +0 -457
- data/sproutcore/frameworks/desktop/tests/views/select/methods.js +0 -144
- data/sproutcore/frameworks/desktop/tests/views/select/ui.js +0 -224
- data/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +0 -163
- data/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +0 -117
- data/sproutcore/frameworks/desktop/tests/views/separator.js +0 -44
- data/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/split/methods.js +0 -60
- data/sproutcore/frameworks/desktop/tests/views/split/ui.js +0 -59
- data/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +0 -238
- data/sproutcore/frameworks/desktop/tests/views/static_content.js +0 -46
- data/sproutcore/frameworks/desktop/tests/views/tab/methods.js +0 -54
- data/sproutcore/frameworks/desktop/tests/views/tab/ui.js +0 -92
- data/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +0 -33
- data/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +0 -29
- data/sproutcore/frameworks/desktop/tests/views/web/methods.js +0 -10
- data/sproutcore/frameworks/desktop/tests/views/web/ui.js +0 -110
- data/sproutcore/frameworks/desktop/tests/views/well/ui.js +0 -54
- data/sproutcore/frameworks/desktop/views/button.js +0 -564
- data/sproutcore/frameworks/desktop/views/checkbox.js +0 -110
- data/sproutcore/frameworks/desktop/views/collection.js +0 -3090
- data/sproutcore/frameworks/desktop/views/date_field.js +0 -319
- data/sproutcore/frameworks/desktop/views/disclosure.js +0 -68
- data/sproutcore/frameworks/desktop/views/file.js +0 -112
- data/sproutcore/frameworks/desktop/views/grid.js +0 -207
- data/sproutcore/frameworks/desktop/views/image_button.js +0 -74
- data/sproutcore/frameworks/desktop/views/list.js +0 -637
- data/sproutcore/frameworks/desktop/views/list_item.js +0 -923
- data/sproutcore/frameworks/desktop/views/master_detail.js +0 -257
- data/sproutcore/frameworks/desktop/views/menu_item.js +0 -704
- data/sproutcore/frameworks/desktop/views/menu_scroll.js +0 -615
- data/sproutcore/frameworks/desktop/views/navigation.js +0 -237
- data/sproutcore/frameworks/desktop/views/navigation_bar.js +0 -181
- data/sproutcore/frameworks/desktop/views/popup_button.js +0 -299
- data/sproutcore/frameworks/desktop/views/progress.js +0 -197
- data/sproutcore/frameworks/desktop/views/radio.js +0 -347
- data/sproutcore/frameworks/desktop/views/scene.js +0 -204
- data/sproutcore/frameworks/desktop/views/scroll.js +0 -1824
- data/sproutcore/frameworks/desktop/views/scroller.js +0 -917
- data/sproutcore/frameworks/desktop/views/segment.js +0 -104
- data/sproutcore/frameworks/desktop/views/segmented.js +0 -1002
- data/sproutcore/frameworks/desktop/views/select.js +0 -809
- data/sproutcore/frameworks/desktop/views/select_field.js +0 -344
- data/sproutcore/frameworks/desktop/views/separator.js +0 -36
- data/sproutcore/frameworks/desktop/views/slider.js +0 -291
- data/sproutcore/frameworks/desktop/views/source_list.js +0 -49
- data/sproutcore/frameworks/desktop/views/source_list_group.js +0 -169
- data/sproutcore/frameworks/desktop/views/split.js +0 -891
- data/sproutcore/frameworks/desktop/views/split_divider.js +0 -52
- data/sproutcore/frameworks/desktop/views/stacked.js +0 -110
- data/sproutcore/frameworks/desktop/views/static_content.js +0 -134
- data/sproutcore/frameworks/desktop/views/tab.js +0 -186
- data/sproutcore/frameworks/desktop/views/thumb.js +0 -53
- data/sproutcore/frameworks/desktop/views/toolbar.js +0 -88
- data/sproutcore/frameworks/desktop/views/web.js +0 -87
- data/sproutcore/frameworks/desktop/views/well.js +0 -65
- data/sproutcore/frameworks/desktop/views/workspace.js +0 -251
- data/sproutcore/frameworks/documentation/core.js +0 -0
- data/sproutcore/frameworks/experimental/README.md +0 -23
- data/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +0 -11
- data/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +0 -215
- data/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +0 -67
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +0 -34
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/polymorphic_single_attribute.js +0 -183
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +0 -23
- data/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphic/single.js +0 -124
- data/sproutcore/frameworks/forms/english.lproj/default_styles.css +0 -5
- data/sproutcore/frameworks/forms/english.lproj/strings.js +0 -15
- data/sproutcore/frameworks/forms/mixins/edit_mode.js +0 -43
- data/sproutcore/frameworks/forms/mixins/emptiness.js +0 -95
- data/sproutcore/frameworks/forms/renderer_delegates/form.js +0 -22
- data/sproutcore/frameworks/forms/renderer_delegates/form_row.js +0 -21
- data/sproutcore/frameworks/forms/tests/views/form.js +0 -15
- data/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +0 -15
- data/sproutcore/frameworks/forms/tests/views/form_field.js +0 -15
- data/sproutcore/frameworks/forms/tests/views/form_label.js +0 -15
- data/sproutcore/frameworks/forms/tests/views/form_radio_field.js +0 -15
- data/sproutcore/frameworks/forms/tests/views/form_row.js +0 -15
- data/sproutcore/frameworks/forms/tests/views/form_text_field.js +0 -15
- data/sproutcore/frameworks/forms/views/form.js +0 -282
- data/sproutcore/frameworks/forms/views/form_row.js +0 -183
- data/sproutcore/frameworks/foundation/.greenhouseconf +0 -35
- data/sproutcore/frameworks/foundation/TESTING +0 -46
- data/sproutcore/frameworks/foundation/controllers/tree.js +0 -127
- data/sproutcore/frameworks/foundation/core.js +0 -0
- data/sproutcore/frameworks/foundation/debug/control_test_pane.js +0 -191
- data/sproutcore/frameworks/foundation/english.lproj/benchmark.css +0 -146
- data/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +0 -67
- data/sproutcore/frameworks/foundation/english.lproj/button_view.css +0 -40
- data/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +0 -9
- data/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +0 -12
- data/sproutcore/frameworks/foundation/english.lproj/label.css +0 -47
- data/sproutcore/frameworks/foundation/english.lproj/static_layout.css +0 -5
- data/sproutcore/frameworks/foundation/english.lproj/text_field.css +0 -146
- data/sproutcore/frameworks/foundation/fixtures/file_exists.json +0 -1
- data/sproutcore/frameworks/foundation/fixtures/malformed.json +0 -11
- data/sproutcore/frameworks/foundation/gestures/pinch.js +0 -81
- data/sproutcore/frameworks/foundation/gestures/swipe.js +0 -144
- data/sproutcore/frameworks/foundation/gestures/tap.js +0 -113
- data/sproutcore/frameworks/foundation/license.js +0 -28
- data/sproutcore/frameworks/foundation/mixins/auto_mixin.js +0 -39
- data/sproutcore/frameworks/foundation/mixins/auto_resize.js +0 -233
- data/sproutcore/frameworks/foundation/mixins/button.js +0 -360
- data/sproutcore/frameworks/foundation/mixins/collection_content.js +0 -178
- data/sproutcore/frameworks/foundation/mixins/content_display.js +0 -114
- data/sproutcore/frameworks/foundation/mixins/control.js +0 -422
- data/sproutcore/frameworks/foundation/mixins/editable.js +0 -158
- data/sproutcore/frameworks/foundation/mixins/flowed_layout.js +0 -628
- data/sproutcore/frameworks/foundation/mixins/gestureable.js +0 -214
- data/sproutcore/frameworks/foundation/mixins/inline_editable.js +0 -89
- data/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +0 -139
- data/sproutcore/frameworks/foundation/mixins/inline_text_field.js +0 -589
- data/sproutcore/frameworks/foundation/mixins/inner_frame.js +0 -184
- data/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -77
- data/sproutcore/frameworks/foundation/mixins/string.js +0 -391
- data/sproutcore/frameworks/foundation/mixins/tree_item_content.js +0 -160
- data/sproutcore/frameworks/foundation/mixins/validatable.js +0 -189
- data/sproutcore/frameworks/foundation/private/tree_item_observer.js +0 -914
- data/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +0 -110
- data/sproutcore/frameworks/foundation/render_delegates/container.js +0 -18
- data/sproutcore/frameworks/foundation/render_delegates/image.js +0 -97
- data/sproutcore/frameworks/foundation/render_delegates/label.js +0 -139
- data/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +0 -17
- data/sproutcore/frameworks/foundation/system/benchmark.js +0 -718
- data/sproutcore/frameworks/foundation/system/chance.js +0 -64
- data/sproutcore/frameworks/foundation/system/cookie.js +0 -171
- data/sproutcore/frameworks/foundation/system/core_query.js +0 -56
- data/sproutcore/frameworks/foundation/system/exception_handler.js +0 -88
- data/sproutcore/frameworks/foundation/system/gesture.js +0 -363
- data/sproutcore/frameworks/foundation/system/image_queue.js +0 -433
- data/sproutcore/frameworks/foundation/system/math.js +0 -57
- data/sproutcore/frameworks/foundation/system/module.js +0 -583
- data/sproutcore/frameworks/foundation/system/request.js +0 -596
- data/sproutcore/frameworks/foundation/system/response.js +0 -550
- data/sproutcore/frameworks/foundation/system/routes.js +0 -519
- data/sproutcore/frameworks/foundation/system/staticqueue.js +0 -53
- data/sproutcore/frameworks/foundation/system/task_queue.js +0 -153
- data/sproutcore/frameworks/foundation/system/text_selection.js +0 -103
- data/sproutcore/frameworks/foundation/system/time.js +0 -473
- data/sproutcore/frameworks/foundation/system/user_defaults.js +0 -392
- data/sproutcore/frameworks/foundation/system/utils/colors.js +0 -80
- data/sproutcore/frameworks/foundation/system/utils/misc.js +0 -137
- data/sproutcore/frameworks/foundation/system/utils/range.js +0 -64
- data/sproutcore/frameworks/foundation/system/utils/string_measurement.js +0 -247
- data/sproutcore/frameworks/foundation/tasks/preload_bundle.js +0 -41
- data/sproutcore/frameworks/foundation/tasks/task.js +0 -17
- data/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +0 -108
- data/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +0 -340
- data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +0 -10
- data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +0 -113
- data/sproutcore/frameworks/foundation/tests/integration/creating_views.js +0 -118
- data/sproutcore/frameworks/foundation/tests/mixins/button/content.js +0 -195
- data/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +0 -89
- data/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +0 -57
- data/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +0 -69
- data/sproutcore/frameworks/foundation/tests/mixins/content_display.js +0 -51
- data/sproutcore/frameworks/foundation/tests/mixins/control/content.js +0 -168
- data/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +0 -89
- data/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +0 -44
- data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +0 -52
- data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +0 -238
- data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +0 -64
- data/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +0 -144
- data/sproutcore/frameworks/foundation/tests/mixins/string.js +0 -28
- data/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +0 -74
- data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +0 -325
- data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +0 -718
- data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +0 -484
- data/sproutcore/frameworks/foundation/tests/system/cookie.js +0 -179
- data/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +0 -59
- data/sproutcore/frameworks/foundation/tests/system/math.js +0 -39
- data/sproutcore/frameworks/foundation/tests/system/request.js +0 -273
- data/sproutcore/frameworks/foundation/tests/system/routes.js +0 -356
- data/sproutcore/frameworks/foundation/tests/system/task_queue.js +0 -43
- data/sproutcore/frameworks/foundation/tests/system/user_defaults.js +0 -24
- data/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +0 -235
- data/sproutcore/frameworks/foundation/tests/system/utils/range.js +0 -62
- data/sproutcore/frameworks/foundation/tests/validators/credit_card.js +0 -35
- data/sproutcore/frameworks/foundation/tests/validators/date.js +0 -26
- data/sproutcore/frameworks/foundation/tests/validators/not_empty.js +0 -56
- data/sproutcore/frameworks/foundation/tests/validators/number.js +0 -47
- data/sproutcore/frameworks/foundation/tests/validators/password.js +0 -13
- data/sproutcore/frameworks/foundation/tests/validators/validator.js +0 -20
- data/sproutcore/frameworks/foundation/tests/views/container/methods.js +0 -18
- data/sproutcore/frameworks/foundation/tests/views/container/ui.js +0 -145
- data/sproutcore/frameworks/foundation/tests/views/image/ui.js +0 -492
- data/sproutcore/frameworks/foundation/tests/views/label/ui.js +0 -179
- data/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +0 -87
- data/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +0 -110
- data/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +0 -577
- data/sproutcore/frameworks/foundation/validators/credit_card.js +0 -125
- data/sproutcore/frameworks/foundation/validators/date.js +0 -52
- data/sproutcore/frameworks/foundation/validators/date_time.js +0 -48
- data/sproutcore/frameworks/foundation/validators/email.js +0 -45
- data/sproutcore/frameworks/foundation/validators/not_empty.js +0 -37
- data/sproutcore/frameworks/foundation/validators/number.js +0 -99
- data/sproutcore/frameworks/foundation/validators/password.js +0 -86
- data/sproutcore/frameworks/foundation/validators/positive_integer.js +0 -84
- data/sproutcore/frameworks/foundation/validators/validator.js +0 -326
- data/sproutcore/frameworks/foundation/views/container.js +0 -140
- data/sproutcore/frameworks/foundation/views/field.js +0 -337
- data/sproutcore/frameworks/foundation/views/image.js +0 -381
- data/sproutcore/frameworks/foundation/views/label.js +0 -219
- data/sproutcore/frameworks/foundation/views/text_field.js +0 -1073
- data/sproutcore/frameworks/handlebars/extensions.js +0 -44
- data/sproutcore/frameworks/handlebars/extensions/bind.js +0 -156
- data/sproutcore/frameworks/handlebars/extensions/collection.js +0 -75
- data/sproutcore/frameworks/handlebars/extensions/localization.js +0 -5
- data/sproutcore/frameworks/handlebars/extensions/view.js +0 -115
- data/sproutcore/frameworks/handlebars/handlebars.js +0 -1401
- data/sproutcore/frameworks/jquery/jquery-buffer.js +0 -376
- data/sproutcore/frameworks/jquery/jquery-buffered.js +0 -205
- data/sproutcore/frameworks/jquery/jquery-sc.js +0 -7
- data/sproutcore/frameworks/jquery/jquery.js +0 -7179
- data/sproutcore/frameworks/media/.greenhouseconf +0 -29
- data/sproutcore/frameworks/media/resources/controls.png +0 -0
- data/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
- data/sproutcore/frameworks/media/resources/video.css +0 -124
- data/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
- data/sproutcore/frameworks/media/views/audio.js +0 -741
- data/sproutcore/frameworks/media/views/controls.js +0 -88
- data/sproutcore/frameworks/media/views/media_slider.js +0 -243
- data/sproutcore/frameworks/media/views/mini_controls.js +0 -63
- data/sproutcore/frameworks/media/views/simple_controls.js +0 -54
- data/sproutcore/frameworks/media/views/video.js +0 -832
- data/sproutcore/frameworks/mini/license.js +0 -29
- data/sproutcore/frameworks/runtime/README +0 -12
- data/sproutcore/frameworks/runtime/core.js +0 -1102
- data/sproutcore/frameworks/runtime/debug/test_suites/array.js +0 -14
- data/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +0 -397
- data/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +0 -33
- data/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +0 -121
- data/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +0 -34
- data/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +0 -50
- data/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +0 -46
- data/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +0 -371
- data/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +0 -100
- data/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +0 -49
- data/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +0 -94
- data/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +0 -50
- data/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +0 -47
- data/sproutcore/frameworks/runtime/license.js +0 -29
- data/sproutcore/frameworks/runtime/mixins/array.js +0 -658
- data/sproutcore/frameworks/runtime/mixins/comparable.js +0 -45
- data/sproutcore/frameworks/runtime/mixins/copyable.js +0 -72
- data/sproutcore/frameworks/runtime/mixins/enumerable.js +0 -1426
- data/sproutcore/frameworks/runtime/mixins/freezable.js +0 -110
- data/sproutcore/frameworks/runtime/mixins/observable.js +0 -1408
- data/sproutcore/frameworks/runtime/private/chain_observer.js +0 -178
- data/sproutcore/frameworks/runtime/private/observer_queue.js +0 -178
- data/sproutcore/frameworks/runtime/private/observer_set.js +0 -123
- data/sproutcore/frameworks/runtime/system/binding.js +0 -1000
- data/sproutcore/frameworks/runtime/system/enumerator.js +0 -107
- data/sproutcore/frameworks/runtime/system/error.js +0 -157
- data/sproutcore/frameworks/runtime/system/index_set.js +0 -1199
- data/sproutcore/frameworks/runtime/system/logger.js +0 -1582
- data/sproutcore/frameworks/runtime/system/object.js +0 -947
- data/sproutcore/frameworks/runtime/system/range_observer.js +0 -270
- data/sproutcore/frameworks/runtime/system/run_loop.js +0 -308
- data/sproutcore/frameworks/runtime/system/set.js +0 -536
- data/sproutcore/frameworks/runtime/tests/core/IsEqual.js +0 -30
- data/sproutcore/frameworks/runtime/tests/core/beget.js +0 -23
- data/sproutcore/frameworks/runtime/tests/core/clone.js +0 -108
- data/sproutcore/frameworks/runtime/tests/core/compare.js +0 -44
- data/sproutcore/frameworks/runtime/tests/core/console.js +0 -16
- data/sproutcore/frameworks/runtime/tests/core/guidFor.js +0 -109
- data/sproutcore/frameworks/runtime/tests/core/inspect.js +0 -27
- data/sproutcore/frameworks/runtime/tests/core/itemType.js +0 -71
- data/sproutcore/frameworks/runtime/tests/core/keys.js +0 -20
- data/sproutcore/frameworks/runtime/tests/core/makeArray.js +0 -44
- data/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +0 -19
- data/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +0 -37
- data/sproutcore/frameworks/runtime/tests/mixins/array.js +0 -59
- data/sproutcore/frameworks/runtime/tests/mixins/comparable.js +0 -44
- data/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +0 -658
- data/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +0 -37
- data/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +0 -733
- data/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +0 -155
- data/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +0 -79
- data/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +0 -81
- data/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +0 -55
- data/sproutcore/frameworks/runtime/tests/system/binding.js +0 -395
- data/sproutcore/frameworks/runtime/tests/system/error.js +0 -53
- data/sproutcore/frameworks/runtime/tests/system/index_set/add.js +0 -212
- data/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +0 -49
- data/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +0 -43
- data/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +0 -74
- data/sproutcore/frameworks/runtime/tests/system/index_set/create.js +0 -42
- data/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +0 -38
- data/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +0 -38
- data/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +0 -74
- data/sproutcore/frameworks/runtime/tests/system/index_set/max.js +0 -40
- data/sproutcore/frameworks/runtime/tests/system/index_set/min.js +0 -50
- data/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +0 -36
- data/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +0 -189
- data/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +0 -49
- data/sproutcore/frameworks/runtime/tests/system/index_set/without.js +0 -89
- data/sproutcore/frameworks/runtime/tests/system/logger.js +0 -260
- data/sproutcore/frameworks/runtime/tests/system/object/base.js +0 -195
- data/sproutcore/frameworks/runtime/tests/system/object/bindings.js +0 -374
- data/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +0 -71
- data/sproutcore/frameworks/runtime/tests/system/object/enhance.js +0 -177
- data/sproutcore/frameworks/runtime/tests/system/observer_set.js +0 -50
- data/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +0 -59
- data/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +0 -75
- data/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +0 -117
- data/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +0 -110
- data/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +0 -65
- data/sproutcore/frameworks/runtime/tests/system/run_loop.js +0 -120
- data/sproutcore/frameworks/runtime/tests/system/set.js +0 -318
- data/sproutcore/frameworks/statechart/core.js +0 -5
- data/sproutcore/frameworks/statechart/debug/monitor.js +0 -136
- data/sproutcore/frameworks/statechart/system/state.js +0 -713
- data/sproutcore/frameworks/statechart/system/statechart.js +0 -951
- data/sproutcore/frameworks/statechart/tests/async.js +0 -94
- data/sproutcore/frameworks/statechart/tests/event_handling/advanced_event_handling.js +0 -310
- data/sproutcore/frameworks/statechart/tests/namespace/access_substates.js +0 -252
- data/sproutcore/frameworks/statechart/tests/state/is_current_state.js +0 -64
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_history_state.js +0 -88
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_advanced.js +0 -234
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_async.js +0 -123
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_basic.js +0 -139
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_intermediate.js +0 -119
- data/sproutcore/frameworks/statechart/tests/with_concurrent_states/send_event.js +0 -183
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/default_responder.js +0 -90
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_history_state.js +0 -200
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state.js +0 -256
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state_async.js +0 -187
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/send_event.js +0 -122
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/state_plugin.js +0 -99
- data/sproutcore/frameworks/statechart/tests/without_concurrent_states/transient.js +0 -162
- data/sproutcore/frameworks/table/mixins/table_delegate.js +0 -41
- data/sproutcore/frameworks/table/system/table_column.js +0 -125
- data/sproutcore/frameworks/table/views/table.js +0 -440
- data/sproutcore/frameworks/table/views/table_cell.js +0 -63
- data/sproutcore/frameworks/table/views/table_head.js +0 -158
- data/sproutcore/frameworks/table/views/table_header.js +0 -214
- data/sproutcore/frameworks/table/views/table_row.js +0 -155
- data/sproutcore/frameworks/testing/core.js +0 -196
- data/sproutcore/frameworks/testing/english.lproj/additions.css +0 -8
- data/sproutcore/frameworks/testing/english.lproj/runner.css +0 -128
- data/sproutcore/frameworks/testing/english.lproj/testsuite.css +0 -136
- data/sproutcore/frameworks/testing/extras.js +0 -17
- data/sproutcore/frameworks/testing/jquery.js +0 -3559
- data/sproutcore/frameworks/testing/qunit.js +0 -827
- data/sproutcore/frameworks/testing/system/dump.js +0 -205
- data/sproutcore/frameworks/testing/system/equiv.js +0 -201
- data/sproutcore/frameworks/testing/system/plan.js +0 -703
- data/sproutcore/frameworks/testing/system/runner.js +0 -220
- data/sproutcore/frameworks/testing/system/suite.js +0 -228
- data/sproutcore/frameworks/testing/utils.js +0 -62
- data/sproutcore/lib/index.rhtml +0 -164
- data/sproutcore/license.js +0 -31
- data/sproutcore/themes/ace/designs/dark.png +0 -0
- data/sproutcore/themes/ace/designs/dark.psd +0 -0
- data/sproutcore/themes/ace/designs/light.png +0 -0
- data/sproutcore/themes/ace/designs/light.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/panel/pointers.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
- data/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
- data/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
- data/sproutcore/themes/ace/resources/body.css +0 -13
- data/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/button.css +0 -33
- data/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/button.css +0 -98
- data/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/button.css +0 -78
- data/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/button.css +0 -39
- data/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/ace/button.css +0 -36
- data/sproutcore/themes/ace/resources/button/button.js +0 -75
- data/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/button.css +0 -93
- data/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/button.css +0 -72
- data/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
- data/sproutcore/themes/ace/resources/button/dark/button.css +0 -17
- data/sproutcore/themes/ace/resources/button/dark/button.js +0 -3
- data/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
- data/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
- data/sproutcore/themes/ace/resources/button/popup/select.css +0 -20
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +0 -40
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +0 -40
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
- data/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +0 -7
- data/sproutcore/themes/ace/resources/collection/normal/list.css +0 -4
- data/sproutcore/themes/ace/resources/collection/normal/list_item.css +0 -17
- data/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
- data/sproutcore/themes/ace/resources/collection/source-list/source-list.js +0 -3
- data/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +0 -36
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +0 -24
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
- data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
- data/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +0 -11
- data/sproutcore/themes/ace/resources/loading.css +0 -50
- data/sproutcore/themes/ace/resources/master-detail/master-detail.css +0 -27
- data/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
- data/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
- data/sproutcore/themes/ace/resources/menu/down.png +0 -0
- data/sproutcore/themes/ace/resources/menu/menu.css +0 -75
- data/sproutcore/themes/ace/resources/menu/menu.png +0 -0
- data/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
- data/sproutcore/themes/ace/resources/menu/up.png +0 -0
- data/sproutcore/themes/ace/resources/pane/pane.css +0 -3
- data/sproutcore/themes/ace/resources/panel/panel.css +0 -13
- data/sproutcore/themes/ace/resources/panel/panel.js +0 -20
- data/sproutcore/themes/ace/resources/panel/panel.png +0 -0
- data/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
- data/sproutcore/themes/ace/resources/picker/ace/picker.css +0 -41
- data/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
- data/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/picker.js +0 -32
- data/sproutcore/themes/ace/resources/picker/popover/popover.css +0 -111
- data/sproutcore/themes/ace/resources/picker/popover/popover.js +0 -12
- data/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/sproutcore/themes/ace/resources/picker/popover/workspace.js +0 -28
- data/sproutcore/themes/ace/resources/progress/ace/progress.css +0 -27
- data/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
- data/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
- data/sproutcore/themes/ace/resources/progress/progress.js +0 -78
- data/sproutcore/themes/ace/resources/radio/radio.css +0 -63
- data/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +0 -78
- data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +0 -91
- data/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
- data/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +0 -80
- data/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +0 -92
- data/sproutcore/themes/ace/resources/segmented/18px/segmented.css +0 -91
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented.css +0 -91
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented.css +0 -91
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented.css +0 -95
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
- data/sproutcore/themes/ace/resources/segmented/segmented.css +0 -83
- data/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +0 -27
- data/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +0 -27
- data/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +0 -27
- data/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
- data/sproutcore/themes/ace/resources/slider/ace/slider.css +0 -7
- data/sproutcore/themes/ace/resources/slider/ace/slider.js +0 -56
- data/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
- data/sproutcore/themes/ace/resources/split/split.css +0 -5
- data/sproutcore/themes/ace/resources/tab/tab.css +0 -3
- data/sproutcore/themes/ace/resources/toolbar/toolbar.css +0 -8
- data/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
- data/sproutcore/themes/ace/resources/well/well.css +0 -7
- data/sproutcore/themes/ace/resources/well/well.js +0 -17
- data/sproutcore/themes/ace/theme.js +0 -14
- data/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +0 -69
- data/sproutcore/themes/empty_theme/theme.js +0 -16
- data/sproutcore/themes/iphone_theme/english.lproj/button.css +0 -41
- data/sproutcore/themes/iphone_theme/english.lproj/core.css +0 -8
- data/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
- data/sproutcore/themes/iphone_theme/english.lproj/strings.js +0 -15
- data/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
- data/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
- data/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/button.css +0 -399
- data/sproutcore/themes/standard_theme/english.lproj/checkbox.css +0 -78
- data/sproutcore/themes/standard_theme/english.lproj/collection.css +0 -135
- data/sproutcore/themes/standard_theme/english.lproj/core.css +0 -76
- data/sproutcore/themes/standard_theme/english.lproj/disclosure.css +0 -57
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_222222.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_454545.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_888888.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-x.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-y.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/images/sc-toolbar-view.png +0 -0
- data/sproutcore/themes/standard_theme/english.lproj/label.css +0 -11
- data/sproutcore/themes/standard_theme/english.lproj/list_item.css +0 -82
- data/sproutcore/themes/standard_theme/english.lproj/menu.css +0 -20
- data/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +0 -36
- data/sproutcore/themes/standard_theme/english.lproj/pane.css +0 -18
- data/sproutcore/themes/standard_theme/english.lproj/panel.css +0 -33
- data/sproutcore/themes/standard_theme/english.lproj/picker.css +0 -17
- data/sproutcore/themes/standard_theme/english.lproj/progress.css +0 -27
- data/sproutcore/themes/standard_theme/english.lproj/radio.css +0 -125
- data/sproutcore/themes/standard_theme/english.lproj/scroller.css +0 -159
- data/sproutcore/themes/standard_theme/english.lproj/segmented.css +0 -270
- data/sproutcore/themes/standard_theme/english.lproj/slider.css +0 -94
- data/sproutcore/themes/standard_theme/english.lproj/split_view.css +0 -11
- data/sproutcore/themes/standard_theme/english.lproj/tab.css +0 -14
- data/sproutcore/themes/standard_theme/english.lproj/table.css +0 -14
- data/sproutcore/themes/standard_theme/english.lproj/text_field.css +0 -5
- data/sproutcore/themes/standard_theme/english.lproj/toolbar.css +0 -7
- data/sproutcore/themes/standard_theme/english.lproj/well.css +0 -36
@@ -1,77 +0,0 @@
|
|
1
|
-
sc_require("views/view/base");
|
2
|
-
|
3
|
-
// Global hash of shared templates. This will automatically be populated
|
4
|
-
// by the build tools so that you can store your Handlebars templates in
|
5
|
-
// separate files that get loaded into JavaScript at buildtime.
|
6
|
-
SC.TEMPLATES = SC.Object.create();
|
7
|
-
|
8
|
-
/** @class
|
9
|
-
|
10
|
-
SC.TemplateView allows you to create a view that uses the Handlebars templating
|
11
|
-
engine to generate its HTML representation.
|
12
|
-
|
13
|
-
@extends SC.CoreView
|
14
|
-
@since SproutCore 1.5
|
15
|
-
*/
|
16
|
-
SC.TemplateView = SC.CoreView.extend(
|
17
|
-
/** @scope SC.TemplateView.prototype */ {
|
18
|
-
|
19
|
-
// This makes it easier to build custom views on top of TemplateView without
|
20
|
-
// gotchas, but may have tab navigation reprecussions. The tab navigation
|
21
|
-
// system should be revisited.
|
22
|
-
acceptsFirstResponder: YES,
|
23
|
-
|
24
|
-
templateName: null,
|
25
|
-
|
26
|
-
templates: SC.TEMPLATES,
|
27
|
-
|
28
|
-
template: function() {
|
29
|
-
var templateName = this.get('templateName');
|
30
|
-
var template = this.get('templates').get(templateName);
|
31
|
-
|
32
|
-
if (!template) {
|
33
|
-
//@if(debug)
|
34
|
-
if (templateName) {
|
35
|
-
SC.Logger.warn('%@ - Unable to find template "%@".'.fmt(this, templateName));
|
36
|
-
}
|
37
|
-
//@endif
|
38
|
-
|
39
|
-
return function() { return ''; };
|
40
|
-
}
|
41
|
-
|
42
|
-
return template;
|
43
|
-
}.property('templateName').cacheable(),
|
44
|
-
|
45
|
-
context: function() {
|
46
|
-
return this;
|
47
|
-
}.property().cacheable(),
|
48
|
-
|
49
|
-
/**
|
50
|
-
When the view is asked to render, we look for the appropriate
|
51
|
-
template and invoke it with this view as the context, as well
|
52
|
-
as a hash that contains a reference to the view.
|
53
|
-
|
54
|
-
@param {SC.RenderContext} context the render context
|
55
|
-
*/
|
56
|
-
render: function(context) {
|
57
|
-
var template = this.get('template');
|
58
|
-
|
59
|
-
this._didRenderChildViews = YES;
|
60
|
-
|
61
|
-
context.push(template(this.get('context'), null, null, { view: this, isRenderData: true }));
|
62
|
-
},
|
63
|
-
|
64
|
-
// in TemplateView, updating is handled by observers created by helpers in the
|
65
|
-
// template. As a result, we create an empty update method so that the old
|
66
|
-
// (pre-1.5) behavior which would force a full re-render does not get activated.
|
67
|
-
update: function() { },
|
68
|
-
|
69
|
-
/**
|
70
|
-
Since mouseUp events will not fire unless we return YES to mouseDown, the
|
71
|
-
default mouseDown implementation returns YES if a mouseDown method exists.
|
72
|
-
*/
|
73
|
-
mouseDown: function() {
|
74
|
-
if (this.mouseUp) { return YES; }
|
75
|
-
return NO;
|
76
|
-
}
|
77
|
-
});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
SC.CheckboxSupport = {
|
2
|
-
didCreateLayer: function() {
|
3
|
-
this.$('input').change(jQuery.proxy(function() {
|
4
|
-
SC.RunLoop.begin();
|
5
|
-
this.notifyPropertyChange('value');
|
6
|
-
SC.RunLoop.end();
|
7
|
-
}, this));
|
8
|
-
},
|
9
|
-
|
10
|
-
value: function(key, value) {
|
11
|
-
if (value !== undefined) {
|
12
|
-
this.$('input').attr('checked', value);
|
13
|
-
} else {
|
14
|
-
value = this.$('input').attr('checked');
|
15
|
-
}
|
16
|
-
|
17
|
-
return value;
|
18
|
-
}.property().idempotent()
|
19
|
-
};
|
20
|
-
|
@@ -1,106 +0,0 @@
|
|
1
|
-
sc_require('views/template');
|
2
|
-
|
3
|
-
SC.TemplateCollectionView = SC.TemplateView.extend({
|
4
|
-
tagName: 'ul',
|
5
|
-
content: null,
|
6
|
-
template: SC.Handlebars.compile(''),
|
7
|
-
emptyView: null,
|
8
|
-
|
9
|
-
// In case a default content was set, trigger the child view creation
|
10
|
-
// as soon as the empty layer was created
|
11
|
-
didCreateLayer: function() {
|
12
|
-
if(this.get('content')) {
|
13
|
-
var indexSet = SC.IndexSet.create(0, this.getPath('content.length'));
|
14
|
-
this.arrayContentDidChange(this.get('content'), null, '[]', indexSet);
|
15
|
-
}
|
16
|
-
},
|
17
|
-
|
18
|
-
itemView: "SC.TemplateView",
|
19
|
-
|
20
|
-
itemViewClass: function() {
|
21
|
-
var itemView = this.get('itemView');
|
22
|
-
// hash of properties to override in our
|
23
|
-
// item view class
|
24
|
-
var extensions = {};
|
25
|
-
|
26
|
-
if(SC.typeOf(itemView) === SC.T_STRING) {
|
27
|
-
itemView = SC.objectForPropertyPath(itemView);
|
28
|
-
}
|
29
|
-
|
30
|
-
if (this.get('itemViewTemplate')) {
|
31
|
-
extensions.template = this.get('itemViewTemplate');
|
32
|
-
}
|
33
|
-
|
34
|
-
if (this.get('tagName') === 'ul') {
|
35
|
-
extensions.tagname = 'li';
|
36
|
-
}
|
37
|
-
|
38
|
-
return itemView.extend(extensions);
|
39
|
-
}.property('itemView').cacheable(),
|
40
|
-
|
41
|
-
contentDidChange: function() {
|
42
|
-
this.removeAllChildren();
|
43
|
-
this.$().empty();
|
44
|
-
this.didCreateLayer();
|
45
|
-
|
46
|
-
this.get('content').addRangeObserver(null, this, this.arrayContentDidChange);
|
47
|
-
}.observes('content', '.content.[]'),
|
48
|
-
|
49
|
-
arrayContentDidChange: function(array, objects, key, indexes) {
|
50
|
-
var content = this.get('content'),
|
51
|
-
itemViewClass = this.get('itemViewClass'),
|
52
|
-
childViews = this.get('childViews'),
|
53
|
-
toDestroy = [], toReuse = [],
|
54
|
-
view, item, matchIndex, lastView, length, i;
|
55
|
-
|
56
|
-
emptyView = this.get('emptyView');
|
57
|
-
if(emptyView) { emptyView.$().remove(); emptyView.removeFromParent(); }
|
58
|
-
|
59
|
-
// Destroy unused views
|
60
|
-
for (i=0, length=childViews.get('length'); i < length; i++) {
|
61
|
-
view = childViews.objectAt(i);
|
62
|
-
if (content.contains(view.get('content'))) {
|
63
|
-
toReuse.push(view);
|
64
|
-
} else {
|
65
|
-
toDestroy.push(view);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
for (i=0, length=toDestroy.length; i < length; i++) { toDestroy[i].destroy(); }
|
70
|
-
|
71
|
-
childViews = [];
|
72
|
-
|
73
|
-
if(array.get('length') === 0 && this.get('inverseTemplate')) {
|
74
|
-
view = this.createChildView(SC.TemplateView.extend({
|
75
|
-
template: this.get('inverseTemplate'),
|
76
|
-
content: this
|
77
|
-
}));
|
78
|
-
this.set('emptyView', view);
|
79
|
-
view.createLayer().$().appendTo(this.$());
|
80
|
-
}
|
81
|
-
|
82
|
-
var itemOptions = this.itemViewOptions || {};
|
83
|
-
|
84
|
-
// Add items, using previous if possible
|
85
|
-
for (i=0, length=array.get('length'); i < length; i++) {
|
86
|
-
item = array.objectAt(i);
|
87
|
-
view = toReuse.find(function(v){ return v.get('content') === item; });
|
88
|
-
if (!view) {
|
89
|
-
view = this.createChildView(itemViewClass.extend({
|
90
|
-
content: item,
|
91
|
-
tagName: 'li',
|
92
|
-
|
93
|
-
render: function(context) {
|
94
|
-
sc_super();
|
95
|
-
SC.Handlebars.ViewHelper.applyAttributes(itemOptions, this, context);
|
96
|
-
}
|
97
|
-
}));
|
98
|
-
view.createLayer().$().appendTo(this.$());
|
99
|
-
}
|
100
|
-
childViews.push(view);
|
101
|
-
}
|
102
|
-
|
103
|
-
this.childViews = childViews;
|
104
|
-
}
|
105
|
-
});
|
106
|
-
|
@@ -1,35 +0,0 @@
|
|
1
|
-
SC.TextFieldSupport = {
|
2
|
-
value: function(key, value) {
|
3
|
-
if (value !== undefined) {
|
4
|
-
this.$('input').val(value);
|
5
|
-
} else {
|
6
|
-
value = this.$('input').val();
|
7
|
-
}
|
8
|
-
|
9
|
-
return value;
|
10
|
-
}.property().idempotent(),
|
11
|
-
|
12
|
-
didCreateLayer: function() {
|
13
|
-
SC.Event.add(this.$('input'), 'focus', this, this.focusIn);
|
14
|
-
SC.Event.add(this.$('input'), 'blur', this, this.focusOut);
|
15
|
-
},
|
16
|
-
|
17
|
-
focusIn: function(event) {
|
18
|
-
this.becomeFirstResponder();
|
19
|
-
this.tryToPerform('focus', event);
|
20
|
-
},
|
21
|
-
|
22
|
-
focusOut: function(event) {
|
23
|
-
this.resignFirstResponder();
|
24
|
-
this.tryToPerform('blur', event);
|
25
|
-
},
|
26
|
-
|
27
|
-
keyUp: function(event) {
|
28
|
-
if (event.keyCode === 13) {
|
29
|
-
return this.tryToPerform('insertNewline', event);
|
30
|
-
} else if (event.keyCode === 27) {
|
31
|
-
return this.tryToPerform('cancel', event);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
};
|
35
|
-
|
@@ -1,1458 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: SproutCore - JavaScript Application Framework
|
3
|
-
// Copyright: ©2006-2011 Strobe Inc. and contributors.
|
4
|
-
// Portions ©2008-2010 Apple Inc. All rights reserved.
|
5
|
-
// License: Licensed under MIT license (see license.js)
|
6
|
-
// ==========================================================================
|
7
|
-
|
8
|
-
sc_require('system/browser');
|
9
|
-
sc_require('system/event');
|
10
|
-
sc_require('system/cursor');
|
11
|
-
sc_require('system/responder') ;
|
12
|
-
sc_require('system/theme');
|
13
|
-
|
14
|
-
sc_require('mixins/string') ;
|
15
|
-
sc_require('views/view/base') ;
|
16
|
-
|
17
|
-
/**
|
18
|
-
Default property to disable or enable by default the contextMenu
|
19
|
-
*/
|
20
|
-
SC.CONTEXT_MENU_ENABLED = YES;
|
21
|
-
|
22
|
-
/**
|
23
|
-
Default property to disable or enable if the focus can jump to the address
|
24
|
-
bar or not.
|
25
|
-
*/
|
26
|
-
SC.TABBING_ONLY_INSIDE_DOCUMENT = YES;
|
27
|
-
|
28
|
-
/**
|
29
|
-
Tells the property (when fetched with themed()) to get its value from the renderer (if any).
|
30
|
-
*/
|
31
|
-
SC.FROM_THEME = "__FROM_THEME__"; // doesn't really matter what it is, so long as it is unique. Readability is a plus.
|
32
|
-
|
33
|
-
/** @private - custom array used for child views */
|
34
|
-
SC.EMPTY_CHILD_VIEWS_ARRAY = [];
|
35
|
-
SC.EMPTY_CHILD_VIEWS_ARRAY.needsClone = YES;
|
36
|
-
|
37
|
-
/**
|
38
|
-
@class
|
39
|
-
|
40
|
-
Base class for managing a view. Views provide two functions:
|
41
|
-
|
42
|
-
1. They translate state and events into drawing instructions for the
|
43
|
-
web browser and
|
44
|
-
|
45
|
-
2. They act as first responders for incoming keyboard, mouse, and
|
46
|
-
touch events.
|
47
|
-
|
48
|
-
h2. View Initialization
|
49
|
-
|
50
|
-
When a view is setup, there are several methods you can override that
|
51
|
-
will be called at different times depending on how your view is created.
|
52
|
-
Here is a guide to which method you want to override and when:
|
53
|
-
|
54
|
-
- *init:* override this method for any general object setup (such as
|
55
|
-
observers, starting timers and animations, etc) that you need to happen
|
56
|
-
everytime the view is created, regardless of whether or not its layer
|
57
|
-
exists yet.
|
58
|
-
|
59
|
-
- *render:* override this method to generate or update your HTML to reflect
|
60
|
-
the current state of your view. This method is called both when your view
|
61
|
-
is first created and later anytime it needs to be updated.
|
62
|
-
|
63
|
-
- *didCreateLayer:* the render() method is used to generate new HTML.
|
64
|
-
Override this method to perform any additional setup on the DOM you might
|
65
|
-
need to do after creating the view. For example, if you need to listen
|
66
|
-
for events.
|
67
|
-
|
68
|
-
- *willDestroyLayer:* if you implement didCreateLayer() to setup event
|
69
|
-
listeners, you should implement this method as well to remove the same
|
70
|
-
just before the DOM for your view is destroyed.
|
71
|
-
|
72
|
-
- *updateLayer:* Normally, when a view needs to update its content, it will
|
73
|
-
re-render the view using the render() method. If you would like to
|
74
|
-
override this behavior with your own custom updating code, you can
|
75
|
-
replace updateLayer() with your own implementation instead.
|
76
|
-
|
77
|
-
- *didAppendToDocument:* in theory all DOM setup could be done
|
78
|
-
in didCreateLayer() as you already have a DOM element instantiated.
|
79
|
-
However there is cases where the element has to be first appended to the
|
80
|
-
Document because there is either a bug on the browser or you are using
|
81
|
-
plugins which objects are not instantiated until you actually append the
|
82
|
-
element to the DOM. This will allow you to do things like registering
|
83
|
-
DOM events on flash or quicktime objects.
|
84
|
-
|
85
|
-
@extends SC.Responder
|
86
|
-
@extends SC.DelegateSupport
|
87
|
-
@since SproutCore 1.0
|
88
|
-
*/
|
89
|
-
SC.CoreView.reopen(
|
90
|
-
/** @scope SC.View.prototype */ {
|
91
|
-
|
92
|
-
concatenatedProperties: 'outlets displayProperties classNames renderMixin didCreateLayerMixin willDestroyLayerMixin'.w(),
|
93
|
-
|
94
|
-
/**
|
95
|
-
The current pane.
|
96
|
-
@property {SC.Pane}
|
97
|
-
*/
|
98
|
-
pane: function() {
|
99
|
-
var view = this ;
|
100
|
-
while (view && !view.isPane) { view = view.get('parentView') ; }
|
101
|
-
return view ;
|
102
|
-
}.property('parentView').cacheable(),
|
103
|
-
|
104
|
-
/**
|
105
|
-
The page this view was instantiated from. This is set by the page object
|
106
|
-
during instantiation.
|
107
|
-
|
108
|
-
@property {SC.Page}
|
109
|
-
*/
|
110
|
-
page: null,
|
111
|
-
|
112
|
-
/**
|
113
|
-
If the view is currently inserted into the DOM of a parent view, this
|
114
|
-
property will point to the parent of the view.
|
115
|
-
*/
|
116
|
-
parentView: null,
|
117
|
-
|
118
|
-
/**
|
119
|
-
The isVisible property determines if the view is shown in the view
|
120
|
-
hierarchy it is a part of. A view can have isVisible == YES and still have
|
121
|
-
isVisibleInWindow == NO. This occurs, for instance, when a parent view has
|
122
|
-
isVisible == NO. Default is YES.
|
123
|
-
|
124
|
-
The isVisible property is considered part of the layout and so changing it
|
125
|
-
will trigger a layout update.
|
126
|
-
|
127
|
-
@property {Boolean}
|
128
|
-
*/
|
129
|
-
isVisible: YES,
|
130
|
-
isVisibleBindingDefault: SC.Binding.bool(),
|
131
|
-
|
132
|
-
/**
|
133
|
-
Whether the view should be displayed. This is always YES,
|
134
|
-
unless the visibility module is added to SC.View.
|
135
|
-
|
136
|
-
If the visibility module is added, this property will be used to
|
137
|
-
optimize certain behaviors on the view. For example, updates to the
|
138
|
-
view layer will not be performed until the view becomes visible
|
139
|
-
in the window.
|
140
|
-
*/
|
141
|
-
isVisibleInWindow: YES,
|
142
|
-
|
143
|
-
// ..........................................................
|
144
|
-
// CHILD VIEW SUPPORT
|
145
|
-
//
|
146
|
-
|
147
|
-
/**
|
148
|
-
Array of child views. You should never edit this array directly unless
|
149
|
-
you are implementing createChildViews(). Most of the time, you should
|
150
|
-
use the accessor methods such as appendChild(), insertBefore() and
|
151
|
-
removeChild().
|
152
|
-
|
153
|
-
@property {Array}
|
154
|
-
*/
|
155
|
-
childViews: SC.EMPTY_CHILD_VIEWS_ARRAY,
|
156
|
-
|
157
|
-
// ..........................................................
|
158
|
-
// LAYER SUPPORT
|
159
|
-
//
|
160
|
-
|
161
|
-
/**
|
162
|
-
Returns the current layer for the view. The layer for a view is only
|
163
|
-
generated when the view first becomes visible in the window and even
|
164
|
-
then it will not be computed until you request this layer property.
|
165
|
-
|
166
|
-
If the layer is not actually set on the view itself, then the layer will
|
167
|
-
be found by calling this.findLayerInParentLayer().
|
168
|
-
|
169
|
-
You can also set the layer by calling set on this property.
|
170
|
-
|
171
|
-
@property {DOMElement} the layer
|
172
|
-
*/
|
173
|
-
layer: function(key, value) {
|
174
|
-
if (value !== undefined) {
|
175
|
-
this._view_layer = value ;
|
176
|
-
|
177
|
-
// no layer...attempt to discover it...
|
178
|
-
} else {
|
179
|
-
value = this._view_layer;
|
180
|
-
if (!value) {
|
181
|
-
var parent = this.get('parentView');
|
182
|
-
if (parent) { parent = parent.get('layer'); }
|
183
|
-
if (parent) { this._view_layer = value = this.findLayerInParentLayer(parent); }
|
184
|
-
}
|
185
|
-
}
|
186
|
-
return value ;
|
187
|
-
}.property('isVisibleInWindow').cacheable(),
|
188
|
-
|
189
|
-
/**
|
190
|
-
Get a CoreQuery object for this view's layer, or pass in a selector string
|
191
|
-
to get a CoreQuery object for a DOM node nested within this layer.
|
192
|
-
|
193
|
-
@param {String} sel a CoreQuery-compatible selector string
|
194
|
-
@returns {SC.CoreQuery} the CoreQuery object for the DOM node
|
195
|
-
*/
|
196
|
-
$: function(sel) {
|
197
|
-
var layer = this.get('layer') ;
|
198
|
-
|
199
|
-
if(!layer) { return SC.$(); }
|
200
|
-
else if(sel === undefined) { return SC.$(layer); }
|
201
|
-
else { return SC.$(sel, layer); }
|
202
|
-
},
|
203
|
-
|
204
|
-
/**
|
205
|
-
Returns the DOM element that should be used to hold child views when they
|
206
|
-
are added/remove via DOM manipulation. The default implementation simply
|
207
|
-
returns the layer itself. You can override this to return a DOM element
|
208
|
-
within the layer.
|
209
|
-
|
210
|
-
@property {DOMElement} the container layer
|
211
|
-
*/
|
212
|
-
containerLayer: function() {
|
213
|
-
return this.get('layer') ;
|
214
|
-
}.property('layer').cacheable(),
|
215
|
-
|
216
|
-
/**
|
217
|
-
The ID to use when trying to locate the layer in the DOM. If you do not
|
218
|
-
set the layerId explicitly, then the view's GUID will be used instead.
|
219
|
-
This ID must be set at the time the view is created.
|
220
|
-
|
221
|
-
@property {String}
|
222
|
-
@readOnly
|
223
|
-
*/
|
224
|
-
layerId: function(key, value) {
|
225
|
-
if (value) { this._layerId = value; }
|
226
|
-
if (this._layerId) { return this._layerId; }
|
227
|
-
return SC.guidFor(this) ;
|
228
|
-
}.property().cacheable(),
|
229
|
-
|
230
|
-
/**
|
231
|
-
Attempts to discover the layer in the parent layer. The default
|
232
|
-
implementation looks for an element with an ID of layerId (or the view's
|
233
|
-
guid if layerId is null). You can override this method to provide your
|
234
|
-
own form of lookup. For example, if you want to discover your layer using
|
235
|
-
a CSS class name instead of an ID.
|
236
|
-
|
237
|
-
@param {DOMElement} parentLayer the parent's DOM layer
|
238
|
-
@returns {DOMElement} the discovered layer
|
239
|
-
*/
|
240
|
-
findLayerInParentLayer: function(parentLayer) {
|
241
|
-
var id = "#" + this.get('layerId');
|
242
|
-
return jQuery(id)[0] || jQuery(id, parentLayer)[0] ;
|
243
|
-
},
|
244
|
-
|
245
|
-
/**
|
246
|
-
Returns YES if the receiver is a subview of a given view or if it's
|
247
|
-
identical to that view. Otherwise, it returns NO.
|
248
|
-
|
249
|
-
@property {SC.View} view
|
250
|
-
*/
|
251
|
-
isDescendantOf: function(view) {
|
252
|
-
var parentView = this.get('parentView');
|
253
|
-
|
254
|
-
if(this === view) { return YES; }
|
255
|
-
else if(parentView) { return parentView.isDescendantOf(view); }
|
256
|
-
else { return NO; }
|
257
|
-
},
|
258
|
-
|
259
|
-
/**
|
260
|
-
This method is invoked whenever a display property changes. It will set
|
261
|
-
the layerNeedsUpdate method to YES. If you need to perform additional
|
262
|
-
setup whenever the display changes, you can override this method as well.
|
263
|
-
|
264
|
-
@returns {SC.View} receiver
|
265
|
-
*/
|
266
|
-
displayDidChange: function() {
|
267
|
-
this.set('layerNeedsUpdate', YES) ;
|
268
|
-
return this;
|
269
|
-
},
|
270
|
-
|
271
|
-
/**
|
272
|
-
Marks the view as needing a display update if the isVisible property changes.
|
273
|
-
|
274
|
-
Note that this behavior is identical to a display property. It is broken out
|
275
|
-
into its own observer so that it can be overridden with additional
|
276
|
-
functionality if the visibility module is applied to SC.View.
|
277
|
-
*/
|
278
|
-
_sc_isVisibleDidChange: function() {
|
279
|
-
this.displayDidChange();
|
280
|
-
}.observes('isVisible'),
|
281
|
-
|
282
|
-
/**
|
283
|
-
Setting this property to YES will cause the updateLayerIfNeeded method to
|
284
|
-
be invoked at the end of the runloop. You can also force a view to update
|
285
|
-
sooner by calling updateLayerIfNeeded() directly. The method will update
|
286
|
-
the layer only if this property is YES.
|
287
|
-
|
288
|
-
@property {Boolean}
|
289
|
-
@test in updateLayer
|
290
|
-
*/
|
291
|
-
layerNeedsUpdate: NO,
|
292
|
-
|
293
|
-
/** @private
|
294
|
-
Schedules the updateLayerIfNeeded method to run at the end of the runloop
|
295
|
-
if layerNeedsUpdate is set to YES.
|
296
|
-
*/
|
297
|
-
_view_layerNeedsUpdateDidChange: function() {
|
298
|
-
if (this.get('layerNeedsUpdate')) {
|
299
|
-
this.invokeOnce(this.updateLayerIfNeeded) ;
|
300
|
-
}
|
301
|
-
}.observes('layerNeedsUpdate'),
|
302
|
-
|
303
|
-
/**
|
304
|
-
Updates the layer only if the view is visible onscreen and if
|
305
|
-
layerNeedsUpdate is set to YES. Normally you will not invoke this method
|
306
|
-
directly. Instead you set the layerNeedsUpdate property to YES and this
|
307
|
-
method will be called once at the end of the runloop.
|
308
|
-
|
309
|
-
If you need to update view's layer sooner than the end of the runloop, you
|
310
|
-
can call this method directly. If your view is not visible in the window
|
311
|
-
but you want it to update anyway, then call this method, passing YES for
|
312
|
-
the 'skipIsVisibleInWindowCheck' parameter.
|
313
|
-
|
314
|
-
You should not override this method. Instead override updateLayer() or
|
315
|
-
render().
|
316
|
-
|
317
|
-
@returns {SC.View} receiver
|
318
|
-
@test in updateLayer
|
319
|
-
*/
|
320
|
-
updateLayerIfNeeded: function(skipIsVisibleInWindowCheck) {
|
321
|
-
var needsUpdate = this.get('layerNeedsUpdate'),
|
322
|
-
shouldUpdate = needsUpdate && (skipIsVisibleInWindowCheck || this.get('isVisibleInWindow'));
|
323
|
-
if (shouldUpdate) {
|
324
|
-
// only update a layer if it already exists
|
325
|
-
if (this.get('layer')) {
|
326
|
-
this.beginPropertyChanges() ;
|
327
|
-
this.set('layerNeedsUpdate', NO) ;
|
328
|
-
this.updateLayer() ;
|
329
|
-
this.endPropertyChanges() ;
|
330
|
-
}
|
331
|
-
}
|
332
|
-
|
333
|
-
return this ;
|
334
|
-
},
|
335
|
-
|
336
|
-
/**
|
337
|
-
This is the core method invoked to update a view layer whenever it has
|
338
|
-
changed. This method simply creates a render context focused on the
|
339
|
-
layer element and then calls your render() method.
|
340
|
-
|
341
|
-
You will not usually call or override this method directly. Instead you
|
342
|
-
should set the layerNeedsUpdate property to YES to cause this method to
|
343
|
-
run at the end of the run loop, or you can call updateLayerIfNeeded()
|
344
|
-
to force the layer to update immediately.
|
345
|
-
|
346
|
-
Instead of overriding this method, consider overidding the render() method
|
347
|
-
instead, which is called both when creating and updating a layer. If you
|
348
|
-
do not want your render() method called when updating a layer, then you
|
349
|
-
should override this method instead.
|
350
|
-
|
351
|
-
@param optionalContext provided only for backwards-compatibility.
|
352
|
-
|
353
|
-
@returns {SC.View} receiver
|
354
|
-
*/
|
355
|
-
updateLayer: function(optionalContext) {
|
356
|
-
var mixins, idx, len, hasLegacyRenderMethod;
|
357
|
-
|
358
|
-
var context = optionalContext || this.renderContext(this.get('layer')) ;
|
359
|
-
this._renderLayerSettings(context, NO);
|
360
|
-
|
361
|
-
// If the render method takes two parameters, we assume that it is a
|
362
|
-
// legacy implementation that takes context and firstTime. If it has only
|
363
|
-
// one parameter, we assume it is the render delegates style that requires
|
364
|
-
// only context. Note that, for backwards compatibility, the default
|
365
|
-
// SC.View implementation of render uses the old style.
|
366
|
-
hasLegacyRenderMethod = !this.update;
|
367
|
-
// Call render with firstTime set to NO to indicate an update, rather than
|
368
|
-
// full re-render, should be performed.
|
369
|
-
if (hasLegacyRenderMethod) {
|
370
|
-
this.render(context, NO);
|
371
|
-
}
|
372
|
-
else {
|
373
|
-
this.update(context.$());
|
374
|
-
}
|
375
|
-
if (mixins = this.renderMixin) {
|
376
|
-
len = mixins.length;
|
377
|
-
for(idx=0; idx<len; ++idx) { mixins[idx].call(this, context, NO) ; }
|
378
|
-
}
|
379
|
-
|
380
|
-
context.update() ;
|
381
|
-
if (context._innerHTMLReplaced) {
|
382
|
-
var pane = this.get('pane');
|
383
|
-
if(pane && pane.get('isPaneAttached')) {
|
384
|
-
this._notifyDidAppendToDocument();
|
385
|
-
}
|
386
|
-
}
|
387
|
-
|
388
|
-
// If this view uses static layout, then notify that the frame (likely)
|
389
|
-
// changed.
|
390
|
-
if (this.useStaticLayout) { this.viewDidResize(); }
|
391
|
-
|
392
|
-
if (this.didUpdateLayer) { this.didUpdateLayer(); } // call to update DOM
|
393
|
-
if(this.designer && this.designer.viewDidUpdateLayer) {
|
394
|
-
this.designer.viewDidUpdateLayer(); //let the designer know
|
395
|
-
}
|
396
|
-
return this ;
|
397
|
-
},
|
398
|
-
|
399
|
-
parentViewDidResize: function() {
|
400
|
-
this.viewDidResize();
|
401
|
-
},
|
402
|
-
|
403
|
-
/**
|
404
|
-
Override this in a child class to define behavior that should be invoked
|
405
|
-
when a parent's view was resized.
|
406
|
-
*/
|
407
|
-
viewDidResize: function() {},
|
408
|
-
|
409
|
-
/**
|
410
|
-
Creates a new renderContext with the passed tagName or element. You
|
411
|
-
can override this method to provide further customization to the context
|
412
|
-
if needed. Normally you will not need to call or override this method.
|
413
|
-
|
414
|
-
@returns {SC.RenderContext}
|
415
|
-
*/
|
416
|
-
renderContext: function(tagNameOrElement) {
|
417
|
-
return SC.RenderContext(tagNameOrElement) ;
|
418
|
-
},
|
419
|
-
|
420
|
-
/**
|
421
|
-
Creates the layer by creating a renderContext and invoking the view's
|
422
|
-
render() method. This will only create the layer if the layer does not
|
423
|
-
already exist.
|
424
|
-
|
425
|
-
When you create a layer, it is expected that your render() method will
|
426
|
-
also render the HTML for all child views as well. This method will
|
427
|
-
notify the view along with any of its childViews that its layer has been
|
428
|
-
created.
|
429
|
-
|
430
|
-
@returns {SC.View} receiver
|
431
|
-
*/
|
432
|
-
createLayer: function() {
|
433
|
-
if (this.get('layer')) { return this ; } // nothing to do
|
434
|
-
|
435
|
-
var context = this.renderContext(this.get('tagName')) ;
|
436
|
-
|
437
|
-
// now prepare the content like normal.
|
438
|
-
this.renderToContext(context) ;
|
439
|
-
this.set('layer', context.element()) ;
|
440
|
-
|
441
|
-
// now notify the view and its child views..
|
442
|
-
this._notifyDidCreateLayer() ;
|
443
|
-
|
444
|
-
return this ;
|
445
|
-
},
|
446
|
-
|
447
|
-
/** @private -
|
448
|
-
Invokes the receivers didCreateLayer() method if it exists and then
|
449
|
-
invokes the same on all child views.
|
450
|
-
*/
|
451
|
-
_notifyDidCreateLayer: function() {
|
452
|
-
this.notifyPropertyChange("layer");
|
453
|
-
if (this.didCreateLayer) { this.didCreateLayer() ; }
|
454
|
-
|
455
|
-
// and notify others
|
456
|
-
var mixins = this.didCreateLayerMixin, len, idx,
|
457
|
-
childViews = this.get('childViews'),
|
458
|
-
childView;
|
459
|
-
if (mixins) {
|
460
|
-
len = mixins.length ;
|
461
|
-
for (idx=0; idx<len; ++idx) { mixins[idx].call(this) ; }
|
462
|
-
}
|
463
|
-
|
464
|
-
len = childViews.length ;
|
465
|
-
for (idx=0; idx<len; ++idx) {
|
466
|
-
childView = childViews[idx];
|
467
|
-
if (!childView) { continue; }
|
468
|
-
|
469
|
-
// A parent view creating a layer might result in the creation of a
|
470
|
-
// child view's DOM node being created via a render context without
|
471
|
-
// createLayer() being invoked on the child. In such cases, if anyone
|
472
|
-
// had requested 'layer' and it was cached as null, we need to
|
473
|
-
// invalidate it.
|
474
|
-
childView.notifyPropertyChange('layer');
|
475
|
-
|
476
|
-
childView._notifyDidCreateLayer() ;
|
477
|
-
}
|
478
|
-
},
|
479
|
-
|
480
|
-
/**
|
481
|
-
Destroys any existing layer along with the layer for any child views as
|
482
|
-
well. If the view does not currently have a layer, then this method will
|
483
|
-
do nothing.
|
484
|
-
|
485
|
-
If you implement willDestroyLayer() on your view or if any mixins
|
486
|
-
implement willDestroLayerMixin(), then this method will be invoked on your
|
487
|
-
view before your layer is destroyed to give you a chance to clean up any
|
488
|
-
event handlers, etc.
|
489
|
-
|
490
|
-
If you write a willDestroyLayer() handler, you can assume that your
|
491
|
-
didCreateLayer() handler was called earlier for the same layer.
|
492
|
-
|
493
|
-
Normally you will not call or override this method yourself, but you may
|
494
|
-
want to implement the above callbacks when it is run.
|
495
|
-
|
496
|
-
@returns {SC.View} receiver
|
497
|
-
*/
|
498
|
-
destroyLayer: function() {
|
499
|
-
var layer = this.get('layer') ;
|
500
|
-
if (layer) {
|
501
|
-
|
502
|
-
// Now notify the view and its child views. It will also set the
|
503
|
-
// layer property to null.
|
504
|
-
this._notifyWillDestroyLayer() ;
|
505
|
-
|
506
|
-
// do final cleanup
|
507
|
-
if (layer.parentNode) { layer.parentNode.removeChild(layer) ; }
|
508
|
-
layer = null ;
|
509
|
-
}
|
510
|
-
return this ;
|
511
|
-
},
|
512
|
-
|
513
|
-
/**
|
514
|
-
Destroys and recreates the current layer. This can be more efficient than
|
515
|
-
modifying individual child views.
|
516
|
-
|
517
|
-
@returns {SC.View} receiver
|
518
|
-
*/
|
519
|
-
replaceLayer: function() {
|
520
|
-
this.destroyLayer();
|
521
|
-
//this.set('layerLocationNeedsUpdate', YES) ;
|
522
|
-
this.invokeOnce(this.updateLayerLocation) ;
|
523
|
-
},
|
524
|
-
|
525
|
-
/**
|
526
|
-
If the parent view has changed, we need to insert this
|
527
|
-
view's layer into the layer of the new parent view.
|
528
|
-
*/
|
529
|
-
parentViewDidChange: function() {
|
530
|
-
this.updateLayerLocation();
|
531
|
-
},
|
532
|
-
|
533
|
-
/**
|
534
|
-
This method is called when a view changes its location in the view
|
535
|
-
hierarchy. This method will update the underlying DOM-location of the
|
536
|
-
layer so that it reflects the new location.
|
537
|
-
|
538
|
-
@returns {SC.View} receiver
|
539
|
-
*/
|
540
|
-
updateLayerLocation: function() {
|
541
|
-
// collect some useful value
|
542
|
-
// if there is no node for some reason, just exit
|
543
|
-
var node = this.get('layer'),
|
544
|
-
parentView = this.get('parentView'),
|
545
|
-
parentNode = parentView ? parentView.get('containerLayer') : null ;
|
546
|
-
|
547
|
-
// remove node from current parentNode if the node does not match the new
|
548
|
-
// parent node.
|
549
|
-
if (node && node.parentNode && node.parentNode !== parentNode) {
|
550
|
-
node.parentNode.removeChild(node);
|
551
|
-
}
|
552
|
-
|
553
|
-
// CASE 1: no new parentView. just remove from parent (above).
|
554
|
-
if (!parentView) {
|
555
|
-
if (node && node.parentNode) { node.parentNode.removeChild(node); }
|
556
|
-
|
557
|
-
// CASE 2: parentView has no layer, view has layer. destroy layer
|
558
|
-
// CASE 3: parentView has no layer, view has no layer, nothing to do
|
559
|
-
} else if (!parentNode) {
|
560
|
-
if (node) {
|
561
|
-
if (node.parentNode) { node.parentNode.removeChild(node); }
|
562
|
-
this.destroyLayer();
|
563
|
-
}
|
564
|
-
|
565
|
-
// CASE 4: parentView has layer, view has no layer. create layer & add
|
566
|
-
// CASE 5: parentView has layer, view has layer. move layer
|
567
|
-
} else {
|
568
|
-
if (!node) {
|
569
|
-
this.createLayer() ;
|
570
|
-
node = this.get('layer') ;
|
571
|
-
if (!node) { return; } // can't do anything without a node.
|
572
|
-
}
|
573
|
-
|
574
|
-
var siblings = parentView.get('childViews'),
|
575
|
-
nextView = siblings.objectAt(siblings.indexOf(this)+1),
|
576
|
-
nextNode = (nextView) ? nextView.get('layer') : null ;
|
577
|
-
|
578
|
-
// before we add to parent node, make sure that the nextNode exists...
|
579
|
-
if (nextView && (!nextNode || nextNode.parentNode!==parentNode)) {
|
580
|
-
nextView.updateLayerLocationIfNeeded() ;
|
581
|
-
nextNode = nextView.get('layer') ;
|
582
|
-
}
|
583
|
-
|
584
|
-
// add to parentNode if needed.
|
585
|
-
if ((node.parentNode!==parentNode) || (node.nextSibling!==nextNode)) {
|
586
|
-
parentNode.insertBefore(node, nextNode) ;
|
587
|
-
}
|
588
|
-
}
|
589
|
-
|
590
|
-
parentNode = parentView = node = nextNode = null ; // avoid memory leaks
|
591
|
-
|
592
|
-
this.set('layerLocationNeedsUpdate', NO) ;
|
593
|
-
|
594
|
-
return this ;
|
595
|
-
},
|
596
|
-
|
597
|
-
/** @private -
|
598
|
-
Invokes willDestroyLayer() on view and child views. Then sets layer to
|
599
|
-
null for receiver.
|
600
|
-
*/
|
601
|
-
_notifyWillDestroyLayer: function() {
|
602
|
-
if (this.willDestroyLayer) { this.willDestroyLayer() ; }
|
603
|
-
var mixins = this.willDestroyLayerMixin, len, idx,
|
604
|
-
childViews = this.get('childViews') ;
|
605
|
-
if (mixins) {
|
606
|
-
len = mixins.length ;
|
607
|
-
for (idx=0; idx<len; ++idx) { mixins[idx].call(this) ; }
|
608
|
-
}
|
609
|
-
|
610
|
-
len = childViews.length ;
|
611
|
-
for (idx=0; idx<len; ++idx) { childViews[idx]._notifyWillDestroyLayer() ; }
|
612
|
-
|
613
|
-
this.set('layer', null) ;
|
614
|
-
},
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
/**
|
619
|
-
@private
|
620
|
-
|
621
|
-
Renders to a context.
|
622
|
-
Rendering only happens for the initial rendering. Further updates happen in updateLayer,
|
623
|
-
and are not done to contexts, but to layers.
|
624
|
-
Note: You should not generally override nor directly call this method. This method is only
|
625
|
-
called by createLayer to set up the layer initially, and by renderChildViews, to write to
|
626
|
-
a context.
|
627
|
-
|
628
|
-
@param {SC.RenderContext} context the render context.
|
629
|
-
@param {Boolean} firstTime Provided for compatibility when rendering legacy views only.
|
630
|
-
*/
|
631
|
-
renderToContext: function(context, firstTime) {
|
632
|
-
var hasLegacyRenderMethod, mixins, idx, len;
|
633
|
-
|
634
|
-
this.beginPropertyChanges() ;
|
635
|
-
this.set('layerNeedsUpdate', NO) ;
|
636
|
-
|
637
|
-
if (SC.none(firstTime)) { firstTime = YES; }
|
638
|
-
|
639
|
-
this._renderLayerSettings(context, firstTime);
|
640
|
-
|
641
|
-
// If the render method takes two parameters, we assume that it is a
|
642
|
-
// legacy implementation that takes context and firstTime. If it has only
|
643
|
-
// one parameter, we assume it is the render delegates style that requires
|
644
|
-
// only context. Note that, for backwards compatibility, the default
|
645
|
-
// SC.View implementation of render uses the old style.
|
646
|
-
hasLegacyRenderMethod = !this.update;
|
647
|
-
|
648
|
-
// Let the render method handle rendering. If we have a render delegate
|
649
|
-
// object set, it will be used there.
|
650
|
-
if (hasLegacyRenderMethod) {
|
651
|
-
this.render(context, firstTime);
|
652
|
-
}
|
653
|
-
// This view implements the render delegate protocol.
|
654
|
-
else {
|
655
|
-
if (firstTime) {
|
656
|
-
this.render(context);
|
657
|
-
} else {
|
658
|
-
this.update(context.$());
|
659
|
-
}
|
660
|
-
}
|
661
|
-
|
662
|
-
if (firstTime && !this._didRenderChildViews) { this.renderChildViews(context, firstTime); }
|
663
|
-
|
664
|
-
if (mixins = this.renderMixin) {
|
665
|
-
len = mixins.length;
|
666
|
-
for(idx=0; idx<len; ++idx) { mixins[idx].call(this, context, firstTime) ; }
|
667
|
-
}
|
668
|
-
|
669
|
-
this.endPropertyChanges() ;
|
670
|
-
},
|
671
|
-
|
672
|
-
_renderLayerSettings: function(context, firstTime) {
|
673
|
-
context.resetClassNames();
|
674
|
-
context.resetStyles();
|
675
|
-
|
676
|
-
this.applyAttributesToContext(context);
|
677
|
-
},
|
678
|
-
|
679
|
-
applyAttributesToContext: function(context) {
|
680
|
-
context.addClass(this.get('classNames'));
|
681
|
-
|
682
|
-
if (this.get('isTextSelectable')) { context.addClass('allow-select'); }
|
683
|
-
if (!this.get('isVisible')) { context.addClass('hidden'); }
|
684
|
-
if (this.get('isFirstResponder')) { context.addClass('focus'); }
|
685
|
-
|
686
|
-
context.id(this.get('layerId'));
|
687
|
-
context.attr('role', this.get('ariaRole'));
|
688
|
-
},
|
689
|
-
|
690
|
-
/**
|
691
|
-
@private
|
692
|
-
|
693
|
-
Invoked by createLayer() and updateLayer() to actually render a context.
|
694
|
-
This method calls the render() method on your view along with any
|
695
|
-
renderMixin() methods supplied by mixins you might have added.
|
696
|
-
|
697
|
-
You should not override this method directly. Nor should you call it. It is OLD.
|
698
|
-
|
699
|
-
@param {SC.RenderContext} context the render context
|
700
|
-
@param {Boolean} firstTime YES if this is creating a layer
|
701
|
-
@returns {void}
|
702
|
-
*/
|
703
|
-
prepareContext: function(context, firstTime) {
|
704
|
-
// eventually, firstTime will be removed because it is ugly.
|
705
|
-
// for now, we will sense whether we are doing things the ugly way or not.
|
706
|
-
// if ugly, we will allow updates through.
|
707
|
-
if (firstTime !== false) { firstTime = YES; } // the GOOD code path :)
|
708
|
-
|
709
|
-
if (firstTime) {
|
710
|
-
this.renderToContext(context);
|
711
|
-
} else {
|
712
|
-
this.updateLayer(context);
|
713
|
-
}
|
714
|
-
},
|
715
|
-
|
716
|
-
/**
|
717
|
-
Your render method should invoke this method to render any child views,
|
718
|
-
especially if this is the first time the view will be rendered. This will
|
719
|
-
walk down the childView chain, rendering all of the children in a nested
|
720
|
-
way.
|
721
|
-
|
722
|
-
@param {SC.RenderContext} context the context
|
723
|
-
@param {Boolean} firstName true if the layer is being created
|
724
|
-
@returns {SC.RenderContext} the render context
|
725
|
-
@test in render
|
726
|
-
*/
|
727
|
-
renderChildViews: function(context, firstTime) {
|
728
|
-
var cv = this.get('childViews'), len = cv.length, idx, view ;
|
729
|
-
for (idx=0; idx<len; ++idx) {
|
730
|
-
view = cv[idx] ;
|
731
|
-
if (!view) { continue; }
|
732
|
-
context = context.begin(view.get('tagName')) ;
|
733
|
-
view.renderToContext(context, firstTime);
|
734
|
-
context = context.end() ;
|
735
|
-
}
|
736
|
-
return context;
|
737
|
-
},
|
738
|
-
|
739
|
-
/** @private -
|
740
|
-
override to add support for theming or in your view
|
741
|
-
*/
|
742
|
-
render: function() { },
|
743
|
-
|
744
|
-
/** @private -
|
745
|
-
Invokes the receivers didAppendLayerToDocument() method if it exists and
|
746
|
-
then invokes the same on all child views.
|
747
|
-
*/
|
748
|
-
|
749
|
-
_notifyDidAppendToDocument: function() {
|
750
|
-
if (this.didAppendToDocument) { this.didAppendToDocument(); }
|
751
|
-
|
752
|
-
var i=0, child, childLen, children = this.get('childViews');
|
753
|
-
for(i=0, childLen=children.length; i<childLen; i++) {
|
754
|
-
child = children[i];
|
755
|
-
if(child._notifyDidAppendToDocument){
|
756
|
-
child._notifyDidAppendToDocument();
|
757
|
-
}
|
758
|
-
}
|
759
|
-
},
|
760
|
-
|
761
|
-
childViewsObserver: function(){
|
762
|
-
var childViews = this.get('childViews'), i, iLen, child;
|
763
|
-
for(i=0, iLen = childViews.length; i<iLen; i++){
|
764
|
-
child = childViews[i];
|
765
|
-
if(child._notifyDidAppendToDocument){
|
766
|
-
child._notifyDidAppendToDocument();
|
767
|
-
}
|
768
|
-
}
|
769
|
-
}.observes('childViews'),
|
770
|
-
|
771
|
-
// ..........................................................
|
772
|
-
// STANDARD RENDER PROPERTIES
|
773
|
-
//
|
774
|
-
|
775
|
-
/**
|
776
|
-
Tag name for the view's outer element. The tag name is only used when
|
777
|
-
a layer is first created. If you change the tagName for an element, you
|
778
|
-
must destroy and recreate the view layer.
|
779
|
-
|
780
|
-
@property {String}
|
781
|
-
*/
|
782
|
-
tagName: 'div',
|
783
|
-
|
784
|
-
/**
|
785
|
-
The WAI-ARIA role of the control represented by this view. For example, a
|
786
|
-
button may have a role of type 'button', or a pane may have a role of
|
787
|
-
type 'alertdialog'. This property is used by assistive software to help
|
788
|
-
visually challenged users navigate rich web applications.
|
789
|
-
|
790
|
-
The full list of valid WAI-ARIA roles is available at:
|
791
|
-
http://www.w3.org/TR/wai-aria/roles#roles_categorization
|
792
|
-
|
793
|
-
@property {String}
|
794
|
-
*/
|
795
|
-
ariaRole: null,
|
796
|
-
|
797
|
-
/**
|
798
|
-
Standard CSS class names to apply to the view's outer element. This
|
799
|
-
property automatically inherits any class names defined by the view's
|
800
|
-
superclasses as well.
|
801
|
-
|
802
|
-
@property {Array}
|
803
|
-
*/
|
804
|
-
classNames: ['sc-view'],
|
805
|
-
|
806
|
-
/**
|
807
|
-
Tool tip property that will be set to the title attribute on the HTML
|
808
|
-
rendered element.
|
809
|
-
|
810
|
-
@property {String}
|
811
|
-
*/
|
812
|
-
toolTip: null,
|
813
|
-
|
814
|
-
/**
|
815
|
-
The computed tooltip. This is generated by localizing the toolTip
|
816
|
-
property if necessary.
|
817
|
-
|
818
|
-
@property {String}
|
819
|
-
*/
|
820
|
-
displayToolTip: function() {
|
821
|
-
var ret = this.get('toolTip');
|
822
|
-
return (ret && this.get('localize')) ? ret.loc() : (ret || '');
|
823
|
-
}.property('toolTip','localize').cacheable(),
|
824
|
-
|
825
|
-
/**
|
826
|
-
Determines if the user can select text within the view. Normally this is
|
827
|
-
set to NO to disable text selection. You should set this to YES if you
|
828
|
-
are creating a view that includes editable text. Otherwise, settings this
|
829
|
-
to YES will probably make your controls harder to use and it is not
|
830
|
-
recommended.
|
831
|
-
|
832
|
-
@property {Boolean}
|
833
|
-
@readOnly
|
834
|
-
*/
|
835
|
-
isTextSelectable: NO,
|
836
|
-
|
837
|
-
/**
|
838
|
-
You can set this array to include any properties that should immediately
|
839
|
-
invalidate the display. The display will be automatically invalidated
|
840
|
-
when one of these properties change.
|
841
|
-
|
842
|
-
These are the properties that will be visible to any Render Delegate.
|
843
|
-
When the RenderDelegate asks for a property it needs, the view checks the
|
844
|
-
displayProperties array. It first looks for the property name prefixed
|
845
|
-
by 'display'; for instance, if the render delegate needs a 'title',
|
846
|
-
the view will attempt to find 'displayTitle'. If there is no 'displayTitle'
|
847
|
-
in displayProperties, the view will then try 'title'. If 'title' is not
|
848
|
-
in displayProperties either, an error will be thrown.
|
849
|
-
|
850
|
-
This allows you to avoid collisions between your view's API and the Render
|
851
|
-
Delegate's API.
|
852
|
-
|
853
|
-
Implementation note: 'isVisible' is also effectively a display property,
|
854
|
-
but it is not declared as such because the same effect is implemented
|
855
|
-
inside _sc_isVisibleDidChange(). This avoids having two observers on
|
856
|
-
'isVisible', which is:
|
857
|
-
a. More efficient
|
858
|
-
b. More correct, because we can guarantee the order of operations
|
859
|
-
|
860
|
-
@property {Array}
|
861
|
-
@readOnly
|
862
|
-
*/
|
863
|
-
displayProperties: ['isFirstResponder'],
|
864
|
-
|
865
|
-
// .......................................................
|
866
|
-
// SC.RESPONDER SUPPORT
|
867
|
-
//
|
868
|
-
|
869
|
-
/** @property
|
870
|
-
The nextResponder is usually the parentView.
|
871
|
-
*/
|
872
|
-
nextResponder: function() {
|
873
|
-
return this.get('parentView') ;
|
874
|
-
}.property('parentView').cacheable(),
|
875
|
-
|
876
|
-
|
877
|
-
/** @property
|
878
|
-
Set to YES if your view is willing to accept first responder status. This
|
879
|
-
is used when calculcating key responder loop.
|
880
|
-
*/
|
881
|
-
acceptsFirstResponder: NO,
|
882
|
-
|
883
|
-
// .......................................................
|
884
|
-
// CORE DISPLAY METHODS
|
885
|
-
//
|
886
|
-
|
887
|
-
/** @private
|
888
|
-
Setup a view, but do not finish waking it up.
|
889
|
-
- configure childViews
|
890
|
-
- Determine the view's theme
|
891
|
-
- Fetch a render delegate from the theme, if necessary
|
892
|
-
- register the view with the global views hash, which is used for event
|
893
|
-
dispatch
|
894
|
-
*/
|
895
|
-
init: function() {
|
896
|
-
var parentView = this.get('parentView'),
|
897
|
-
path, root, lp, displayProperties ;
|
898
|
-
|
899
|
-
sc_super();
|
900
|
-
|
901
|
-
// Register the view for event handling. This hash is used by
|
902
|
-
// SC.RootResponder to dispatch incoming events.
|
903
|
-
SC.View.views[this.get('layerId')] = this;
|
904
|
-
|
905
|
-
// setup child views. be sure to clone the child views array first
|
906
|
-
this.childViews = this.get('childViews').slice() ;
|
907
|
-
this.createChildViews() ; // setup child Views
|
908
|
-
|
909
|
-
// register display property observers ..
|
910
|
-
// TODO: Optimize into class setup
|
911
|
-
displayProperties = this.get('displayProperties') ;
|
912
|
-
for(var i=0, l=displayProperties.length; i<l; i++) {
|
913
|
-
this.addObserver(displayProperties[i], this, this.displayDidChange);
|
914
|
-
}
|
915
|
-
},
|
916
|
-
|
917
|
-
/**
|
918
|
-
Wakes up the view. The default implementation immediately syncs any
|
919
|
-
bindings, which may cause the view to need its display updated. You
|
920
|
-
can override this method to perform any additional setup. Be sure to
|
921
|
-
call sc_super to setup bindings and to call awake on childViews.
|
922
|
-
|
923
|
-
It is best to awake a view before you add it to the DOM. This way when
|
924
|
-
the DOM is generated, it will have the correct initial values and will
|
925
|
-
not require any additional setup.
|
926
|
-
|
927
|
-
@returns {void}
|
928
|
-
*/
|
929
|
-
awake: function() {
|
930
|
-
sc_super();
|
931
|
-
var childViews = this.get('childViews'), len = childViews.length, idx ;
|
932
|
-
for (idx=0; idx<len; ++idx) {
|
933
|
-
if (!childViews[idx]) { continue ; }
|
934
|
-
childViews[idx].awake() ;
|
935
|
-
}
|
936
|
-
},
|
937
|
-
|
938
|
-
/**
|
939
|
-
Frame describes the current bounding rect for your view. This is always
|
940
|
-
measured from the top-left corner of the parent view.
|
941
|
-
|
942
|
-
@property {Rect}
|
943
|
-
@test in layoutStyle
|
944
|
-
*/
|
945
|
-
frame: function() {
|
946
|
-
return this.computeFrameWithParentFrame(null) ;
|
947
|
-
}.property('useStaticLayout').cacheable(), // We depend on the layout, but layoutDidChange will call viewDidResize to check the frame for us
|
948
|
-
|
949
|
-
/**
|
950
|
-
Computes the frame of the view by examining the view's DOM representation.
|
951
|
-
If no representation exists, returns null.
|
952
|
-
|
953
|
-
If a parent view is passed, its bounds will be taken into account when
|
954
|
-
calculating the frame.
|
955
|
-
|
956
|
-
@param {Rect} pdim the parent view's dimensions
|
957
|
-
@returns {Rect} the computed frame
|
958
|
-
*/
|
959
|
-
computeFrameWithParentFrame: function(pdim) {
|
960
|
-
var layer;
|
961
|
-
var pv = this.get('parentView');
|
962
|
-
|
963
|
-
// need layer to be able to compute rect
|
964
|
-
if (layer = this.get('layer')) {
|
965
|
-
f = SC.viewportOffset(layer); // x,y
|
966
|
-
if (pv) { f = pv.convertFrameFromView(f, null); }
|
967
|
-
|
968
|
-
/*
|
969
|
-
TODO Can probably have some better width/height values - CC
|
970
|
-
FIXME This will probably not work right with borders - PW
|
971
|
-
*/
|
972
|
-
f.width = layer.offsetWidth;
|
973
|
-
f.height = layer.offsetHeight;
|
974
|
-
return f;
|
975
|
-
}
|
976
|
-
return null; // can't compute
|
977
|
-
},
|
978
|
-
|
979
|
-
/**
|
980
|
-
The clipping frame returns the visible portion of the view, taking into
|
981
|
-
account the clippingFrame of the parent view. Keep in mind that
|
982
|
-
the clippingFrame is in the context of the view itself, not it's parent
|
983
|
-
view.
|
984
|
-
|
985
|
-
Normally this will be calculated based on the intersection of your own
|
986
|
-
clippingFrame and your parentView's clippingFrame.
|
987
|
-
|
988
|
-
@property {Rect}
|
989
|
-
*/
|
990
|
-
clippingFrame: function() {
|
991
|
-
var f = this.get('frame'),
|
992
|
-
ret = f,
|
993
|
-
pv, cf;
|
994
|
-
|
995
|
-
if (!f) return null;
|
996
|
-
pv = this.get('parentView');
|
997
|
-
if (pv) {
|
998
|
-
cf = pv.get('clippingFrame');
|
999
|
-
if (!cf) return f;
|
1000
|
-
ret = SC.intersectRects(cf, f);
|
1001
|
-
}
|
1002
|
-
ret.x -= f.x;
|
1003
|
-
ret.y -= f.y;
|
1004
|
-
|
1005
|
-
return ret;
|
1006
|
-
}.property('parentView', 'frame').cacheable(),
|
1007
|
-
|
1008
|
-
/** @private
|
1009
|
-
This method is invoked whenever the clippingFrame changes, notifying
|
1010
|
-
each child view that its clippingFrame has also changed.
|
1011
|
-
*/
|
1012
|
-
_sc_view_clippingFrameDidChange: function() {
|
1013
|
-
var cvs = this.get('childViews'), len = cvs.length, idx, cv ;
|
1014
|
-
for (idx=0; idx<len; ++idx) {
|
1015
|
-
cv = cvs[idx] ;
|
1016
|
-
|
1017
|
-
cv.notifyPropertyChange('clippingFrame') ;
|
1018
|
-
cv._sc_view_clippingFrameDidChange();
|
1019
|
-
}
|
1020
|
-
},
|
1021
|
-
|
1022
|
-
/**
|
1023
|
-
Removes the child view from the parent view.
|
1024
|
-
|
1025
|
-
@param {SC.View} view
|
1026
|
-
@returns {SC.View} receiver
|
1027
|
-
*/
|
1028
|
-
removeChild: function(view) {
|
1029
|
-
// update parent node
|
1030
|
-
view.set('parentView', null) ;
|
1031
|
-
|
1032
|
-
// remove view from childViews array.
|
1033
|
-
var childViews = this.get('childViews'),
|
1034
|
-
idx = childViews.indexOf(view) ;
|
1035
|
-
if (idx>=0) { childViews.removeAt(idx); }
|
1036
|
-
|
1037
|
-
return this ;
|
1038
|
-
},
|
1039
|
-
|
1040
|
-
/**
|
1041
|
-
Removes all children from the parentView.
|
1042
|
-
|
1043
|
-
@returns {SC.View} receiver
|
1044
|
-
*/
|
1045
|
-
removeAllChildren: function() {
|
1046
|
-
var childViews = this.get('childViews'), view ;
|
1047
|
-
while (view = childViews.objectAt(childViews.get('length')-1)) {
|
1048
|
-
this.removeChild(view) ;
|
1049
|
-
}
|
1050
|
-
return this ;
|
1051
|
-
},
|
1052
|
-
|
1053
|
-
/**
|
1054
|
-
Removes the view from its parentView, if one is found. Otherwise
|
1055
|
-
does nothing.
|
1056
|
-
|
1057
|
-
@returns {SC.View} receiver
|
1058
|
-
*/
|
1059
|
-
removeFromParent: function() {
|
1060
|
-
var parent = this.get('parentView') ;
|
1061
|
-
if (parent) { parent.removeChild(this) ; }
|
1062
|
-
return this ;
|
1063
|
-
},
|
1064
|
-
|
1065
|
-
/**
|
1066
|
-
You must call this method on a view to destroy the view (and all of its
|
1067
|
-
child views). This will remove the view from any parent node, then make
|
1068
|
-
sure that the DOM element managed by the view can be released by the
|
1069
|
-
memory manager.
|
1070
|
-
*/
|
1071
|
-
destroy: function() {
|
1072
|
-
if (this.get('isDestroyed')) { return this; } // nothing to do
|
1073
|
-
|
1074
|
-
this._destroy(); // core destroy method
|
1075
|
-
|
1076
|
-
// remove from parent if found
|
1077
|
-
if (this.get('parentView')) { this.removeFromParent(); }
|
1078
|
-
|
1079
|
-
//Do generic destroy. It takes care of mixins and sets isDestroyed to YES.
|
1080
|
-
sc_super();
|
1081
|
-
return this; // done with cleanup
|
1082
|
-
},
|
1083
|
-
|
1084
|
-
_destroy: function() {
|
1085
|
-
if (this.get('isDestroyed')) { return this ; } // nothing to do
|
1086
|
-
|
1087
|
-
// destroy the layer -- this will avoid each child view destroying
|
1088
|
-
// the layer over and over again...
|
1089
|
-
this.destroyLayer() ;
|
1090
|
-
|
1091
|
-
// first destroy any children.
|
1092
|
-
var childViews = this.get('childViews'), len = childViews.length, idx ;
|
1093
|
-
if (len) {
|
1094
|
-
childViews = childViews.slice() ;
|
1095
|
-
for (idx=0; idx<len; ++idx) { childViews[idx].destroy() ; }
|
1096
|
-
}
|
1097
|
-
|
1098
|
-
// next remove view from global hash
|
1099
|
-
delete SC.View.views[this.get('layerId')] ;
|
1100
|
-
delete this._CQ ;
|
1101
|
-
delete this.page ;
|
1102
|
-
|
1103
|
-
return this ;
|
1104
|
-
},
|
1105
|
-
|
1106
|
-
/**
|
1107
|
-
This method is called when your view is first created to setup any child
|
1108
|
-
views that are already defined on your class. If any are found, it will
|
1109
|
-
instantiate them for you.
|
1110
|
-
|
1111
|
-
The default implementation of this method simply steps through your
|
1112
|
-
childViews array, which is expects to either be empty or to contain View
|
1113
|
-
designs that can be instantiated
|
1114
|
-
|
1115
|
-
Alternatively, you can implement this method yourself in your own
|
1116
|
-
subclasses to look for views defined on specific properties and then build
|
1117
|
-
a childViews array yourself.
|
1118
|
-
|
1119
|
-
Note that when you implement this method yourself, you should never
|
1120
|
-
instantiate views directly. Instead, you should use
|
1121
|
-
this.createChildView() method instead. This method can be much faster in
|
1122
|
-
a production environment than creating views yourself.
|
1123
|
-
|
1124
|
-
@returns {SC.View} receiver
|
1125
|
-
*/
|
1126
|
-
createChildViews: function() {
|
1127
|
-
var childViews = this.get('childViews'),
|
1128
|
-
len = childViews.length,
|
1129
|
-
idx, key, views, view ;
|
1130
|
-
|
1131
|
-
this.beginPropertyChanges() ;
|
1132
|
-
|
1133
|
-
// swap the array
|
1134
|
-
for (idx=0; idx<len; ++idx) {
|
1135
|
-
if (key = (view = childViews[idx])) {
|
1136
|
-
|
1137
|
-
// is this is a key name, lookup view class
|
1138
|
-
if (typeof key === SC.T_STRING) {
|
1139
|
-
view = this[key];
|
1140
|
-
} else {
|
1141
|
-
key = null ;
|
1142
|
-
}
|
1143
|
-
|
1144
|
-
if (!view) {
|
1145
|
-
SC.Logger.error ("No view with name "+key+" has been found in "+this.toString());
|
1146
|
-
// skip this one.
|
1147
|
-
continue;
|
1148
|
-
}
|
1149
|
-
|
1150
|
-
// createChildView creates the view if necessary, but also sets
|
1151
|
-
// important properties, such as parentView
|
1152
|
-
view = this.createChildView(view) ;
|
1153
|
-
if (key) { this[key] = view ; } // save on key name if passed
|
1154
|
-
}
|
1155
|
-
childViews[idx] = view;
|
1156
|
-
}
|
1157
|
-
|
1158
|
-
this.endPropertyChanges() ;
|
1159
|
-
return this ;
|
1160
|
-
},
|
1161
|
-
|
1162
|
-
/**
|
1163
|
-
Instantiates a view to be added to the childViews array during view
|
1164
|
-
initialization. You generally will not call this method directly unless
|
1165
|
-
you are overriding createChildViews(). Note that this method will
|
1166
|
-
automatically configure the correct settings on the new view instance to
|
1167
|
-
act as a child of the parent.
|
1168
|
-
|
1169
|
-
@param {Class} viewClass
|
1170
|
-
@param {Hash} attrs optional attributes to add
|
1171
|
-
@returns {SC.View} new instance
|
1172
|
-
@test in createChildViews
|
1173
|
-
*/
|
1174
|
-
createChildView: function(view, attrs) {
|
1175
|
-
if (!view.isClass) {
|
1176
|
-
attrs = view;
|
1177
|
-
} else {
|
1178
|
-
// attrs should always exist...
|
1179
|
-
if (!attrs) { attrs = {} ; }
|
1180
|
-
// clone the hash that was given so we dont pollute it if it's being reused
|
1181
|
-
else { attrs = SC.clone(attrs); }
|
1182
|
-
}
|
1183
|
-
|
1184
|
-
attrs.owner = attrs.parentView = this ;
|
1185
|
-
if (!attrs.page) { attrs.page = this.page ; }
|
1186
|
-
|
1187
|
-
// Now add this to the attributes and create.
|
1188
|
-
if (view.isClass) { view = view.create(attrs); }
|
1189
|
-
|
1190
|
-
if (view.hasVisibility) {
|
1191
|
-
view.set('isVisibleInWindow', this.get('isVisibleInWindow'));
|
1192
|
-
}
|
1193
|
-
|
1194
|
-
return view ;
|
1195
|
-
},
|
1196
|
-
|
1197
|
-
/** walk like a duck */
|
1198
|
-
isView: YES,
|
1199
|
-
|
1200
|
-
/**
|
1201
|
-
Default method called when a selectstart event is triggered. This event is
|
1202
|
-
only supported by IE. Used in sproutcore to disable text selection and
|
1203
|
-
IE8 accelerators. The accelerators will be enabled only in
|
1204
|
-
text selectable views. In FF and Safari we use the css style 'allow-select'.
|
1205
|
-
|
1206
|
-
If you want to enable text selection in certain controls is recommended
|
1207
|
-
to override this function to always return YES , instead of setting
|
1208
|
-
isTextSelectable to true.
|
1209
|
-
|
1210
|
-
For example in textfield you dont want to enable textSelection on the text
|
1211
|
-
hint only on the actual text you are entering. You can achieve that by
|
1212
|
-
only overriding this method.
|
1213
|
-
|
1214
|
-
@param evt {SC.Event} the selectstart event
|
1215
|
-
@returns YES if selectable
|
1216
|
-
*/
|
1217
|
-
selectStart: function(evt) {
|
1218
|
-
return this.get('isTextSelectable');
|
1219
|
-
},
|
1220
|
-
|
1221
|
-
/**
|
1222
|
-
Used to block the contextMenu per view.
|
1223
|
-
|
1224
|
-
@param evt {SC.Event} the contextmenu event
|
1225
|
-
@returns YES if the contextmenu can show up
|
1226
|
-
*/
|
1227
|
-
contextMenu: function(evt) {
|
1228
|
-
if (this.get('isContextMenuEnabled')) { return YES; }
|
1229
|
-
}
|
1230
|
-
|
1231
|
-
});
|
1232
|
-
|
1233
|
-
SC.CoreView.mixin(/** @scope SC.CoreView */ {
|
1234
|
-
|
1235
|
-
/** @private walk like a duck -- used by SC.Page */
|
1236
|
-
isViewClass: YES,
|
1237
|
-
|
1238
|
-
/**
|
1239
|
-
This method works just like extend() except that it will also preserve
|
1240
|
-
the passed attributes in case you want to use a view builder later, if
|
1241
|
-
needed.
|
1242
|
-
|
1243
|
-
@param {Hash} attrs Attributes to add to view
|
1244
|
-
@returns {Class} SC.View subclass to create
|
1245
|
-
@function
|
1246
|
-
*/
|
1247
|
-
design: function() {
|
1248
|
-
if (this.isDesign) { return this; } // only run design one time
|
1249
|
-
var ret = this.extend.apply(this, arguments);
|
1250
|
-
ret.isDesign = YES ;
|
1251
|
-
if (SC.ViewDesigner) {
|
1252
|
-
SC.ViewDesigner.didLoadDesign(ret, this, SC.A(arguments));
|
1253
|
-
}
|
1254
|
-
return ret ;
|
1255
|
-
},
|
1256
|
-
|
1257
|
-
extend: function() {
|
1258
|
-
var last = arguments[arguments.length - 1];
|
1259
|
-
|
1260
|
-
if (last && !SC.none(last.theme)) {
|
1261
|
-
last.themeName = last.theme;
|
1262
|
-
delete last.theme;
|
1263
|
-
}
|
1264
|
-
|
1265
|
-
return SC.Object.extend.apply(this, arguments);
|
1266
|
-
},
|
1267
|
-
|
1268
|
-
/**
|
1269
|
-
Helper applies the layout to the prototype.
|
1270
|
-
*/
|
1271
|
-
layout: function(layout) {
|
1272
|
-
this.prototype.layout = layout ;
|
1273
|
-
return this ;
|
1274
|
-
},
|
1275
|
-
|
1276
|
-
/**
|
1277
|
-
Helper applies the classNames to the prototype
|
1278
|
-
*/
|
1279
|
-
classNames: function(sc) {
|
1280
|
-
sc = (this.prototype.classNames || []).concat(sc);
|
1281
|
-
this.prototype.classNames = sc;
|
1282
|
-
return this ;
|
1283
|
-
},
|
1284
|
-
|
1285
|
-
/**
|
1286
|
-
Help applies the tagName
|
1287
|
-
*/
|
1288
|
-
tagName: function(tg) {
|
1289
|
-
this.prototype.tagName = tg;
|
1290
|
-
return this ;
|
1291
|
-
},
|
1292
|
-
|
1293
|
-
/**
|
1294
|
-
Helper adds the childView
|
1295
|
-
*/
|
1296
|
-
childView: function(cv) {
|
1297
|
-
var childViews = this.prototype.childViews || [];
|
1298
|
-
if (childViews === this.superclass.prototype.childViews) {
|
1299
|
-
childViews = childViews.slice();
|
1300
|
-
}
|
1301
|
-
childViews.push(cv) ;
|
1302
|
-
this.prototype.childViews = childViews;
|
1303
|
-
return this ;
|
1304
|
-
},
|
1305
|
-
|
1306
|
-
/**
|
1307
|
-
Helper adds a binding to a design
|
1308
|
-
*/
|
1309
|
-
bind: function(keyName, path) {
|
1310
|
-
var p = this.prototype, s = this.superclass.prototype;
|
1311
|
-
var bindings = p._bindings ;
|
1312
|
-
if (!bindings || bindings === s._bindings) {
|
1313
|
-
bindings = p._bindings = (bindings || []).slice() ;
|
1314
|
-
}
|
1315
|
-
|
1316
|
-
keyName = keyName + "Binding";
|
1317
|
-
p[keyName] = path ;
|
1318
|
-
bindings.push(keyName);
|
1319
|
-
|
1320
|
-
return this ;
|
1321
|
-
},
|
1322
|
-
|
1323
|
-
/**
|
1324
|
-
Helper sets a generic property on a design.
|
1325
|
-
*/
|
1326
|
-
prop: function(keyName, value) {
|
1327
|
-
this.prototype[keyName] = value;
|
1328
|
-
return this ;
|
1329
|
-
},
|
1330
|
-
|
1331
|
-
/**
|
1332
|
-
Used to construct a localization for a view. The default implementation
|
1333
|
-
will simply return the passed attributes.
|
1334
|
-
*/
|
1335
|
-
localization: function(attrs, rootElement) {
|
1336
|
-
// add rootElement
|
1337
|
-
if (rootElement) attrs.rootElement = SC.$(rootElement)[0];
|
1338
|
-
return attrs;
|
1339
|
-
},
|
1340
|
-
|
1341
|
-
/**
|
1342
|
-
Creates a view instance, first finding the DOM element you name and then
|
1343
|
-
using that as the root element. You should not use this method very
|
1344
|
-
often, but it is sometimes useful if you want to attach to already
|
1345
|
-
existing HTML.
|
1346
|
-
|
1347
|
-
@param {String|Element} element
|
1348
|
-
@param {Hash} attrs
|
1349
|
-
@returns {SC.View} instance
|
1350
|
-
*/
|
1351
|
-
viewFor: function(element, attrs) {
|
1352
|
-
var args = SC.$A(arguments); // prepare to edit
|
1353
|
-
if (SC.none(element)) {
|
1354
|
-
args.shift(); // remove if no element passed
|
1355
|
-
} else args[0] = { rootElement: SC.$(element)[0] } ;
|
1356
|
-
var ret = this.create.apply(this, arguments) ;
|
1357
|
-
args = args[0] = null;
|
1358
|
-
return ret ;
|
1359
|
-
},
|
1360
|
-
|
1361
|
-
/**
|
1362
|
-
Create a new view with the passed attributes hash. If you have the
|
1363
|
-
Designer module loaded, this will also create a peer designer if needed.
|
1364
|
-
*/
|
1365
|
-
create: function() {
|
1366
|
-
var last = arguments[arguments.length - 1];
|
1367
|
-
|
1368
|
-
if (last && last.theme) {
|
1369
|
-
last.themeName = last.theme;
|
1370
|
-
delete last.theme;
|
1371
|
-
}
|
1372
|
-
|
1373
|
-
var C=this, ret = new C(arguments);
|
1374
|
-
if (SC.ViewDesigner) {
|
1375
|
-
SC.ViewDesigner.didCreateView(ret, SC.$A(arguments));
|
1376
|
-
}
|
1377
|
-
return ret ;
|
1378
|
-
},
|
1379
|
-
|
1380
|
-
/**
|
1381
|
-
Applies the passed localization hash to the component views. Call this
|
1382
|
-
method before you call create(). Returns the receiver. Typically you
|
1383
|
-
will do something like this:
|
1384
|
-
|
1385
|
-
view = SC.View.design({...}).loc(localizationHash).create();
|
1386
|
-
|
1387
|
-
@param {Hash} loc
|
1388
|
-
@param rootElement {String} optional rootElement with prepped HTML
|
1389
|
-
@returns {SC.View} receiver
|
1390
|
-
*/
|
1391
|
-
loc: function(loc) {
|
1392
|
-
var childLocs = loc.childViews;
|
1393
|
-
delete loc.childViews; // clear out child views before applying to attrs
|
1394
|
-
|
1395
|
-
this.applyLocalizedAttributes(loc) ;
|
1396
|
-
if (SC.ViewDesigner) {
|
1397
|
-
SC.ViewDesigner.didLoadLocalization(this, SC.$A(arguments));
|
1398
|
-
}
|
1399
|
-
|
1400
|
-
// apply localization recursively to childViews
|
1401
|
-
var childViews = this.prototype.childViews, idx = childViews.length,
|
1402
|
-
viewClass;
|
1403
|
-
while(--idx>=0) {
|
1404
|
-
viewClass = childViews[idx];
|
1405
|
-
loc = childLocs[idx];
|
1406
|
-
if (loc && viewClass && viewClass.loc) viewClass.loc(loc) ;
|
1407
|
-
}
|
1408
|
-
|
1409
|
-
return this; // done!
|
1410
|
-
},
|
1411
|
-
|
1412
|
-
/**
|
1413
|
-
Internal method actually updates the localizated attributes on the view
|
1414
|
-
class. This is overloaded in design mode to also save the attributes.
|
1415
|
-
*/
|
1416
|
-
applyLocalizedAttributes: function(loc) {
|
1417
|
-
SC.mixin(this.prototype, loc) ;
|
1418
|
-
},
|
1419
|
-
|
1420
|
-
views: {}
|
1421
|
-
|
1422
|
-
}) ;
|
1423
|
-
|
1424
|
-
// .......................................................
|
1425
|
-
// OUTLET BUILDER
|
1426
|
-
//
|
1427
|
-
|
1428
|
-
/**
|
1429
|
-
Generates a computed property that will look up the passed property path
|
1430
|
-
the first time you try to get the value. Use this whenever you want to
|
1431
|
-
define an outlet that points to another view or object. The root object
|
1432
|
-
used for the path will be the receiver.
|
1433
|
-
*/
|
1434
|
-
SC.outlet = function(path, root) {
|
1435
|
-
return function(key) {
|
1436
|
-
return (this[key] = SC.objectForPropertyPath(path, (root !== undefined) ? root : this)) ;
|
1437
|
-
}.property();
|
1438
|
-
};
|
1439
|
-
|
1440
|
-
/** @private on unload clear cached divs. */
|
1441
|
-
SC.CoreView.unload = function() {
|
1442
|
-
// delete view items this way to ensure the views are cleared. The hash
|
1443
|
-
// itself may be owned by multiple view subclasses.
|
1444
|
-
var views = SC.View.views;
|
1445
|
-
if (views) {
|
1446
|
-
for(var key in views) {
|
1447
|
-
if (!views.hasOwnProperty(key)) continue ;
|
1448
|
-
delete views[key];
|
1449
|
-
}
|
1450
|
-
}
|
1451
|
-
} ;
|
1452
|
-
|
1453
|
-
SC.View = SC.CoreView.extend({});
|
1454
|
-
|
1455
|
-
//unload views for IE, trying to collect memory.
|
1456
|
-
if(SC.browser.msie) SC.Event.add(window, 'unload', SC.View, SC.View.unload) ;
|
1457
|
-
|
1458
|
-
|