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,44 +0,0 @@
|
|
1
|
-
sc_require("handlebars");
|
2
|
-
|
3
|
-
/**
|
4
|
-
Prepares the Handlebars templating library for use inside SproutCore's view
|
5
|
-
system.
|
6
|
-
|
7
|
-
The SC.Handlebars object is the standard Handlebars library, extended to use
|
8
|
-
SproutCore's get() method instead of direct property access, which allows
|
9
|
-
computed properties to be used inside templates.
|
10
|
-
|
11
|
-
To use SC.Handlebars, call SC.Handlebars.compile(). This will return a
|
12
|
-
function that you can call multiple times, with a context object as the first
|
13
|
-
parameter:
|
14
|
-
|
15
|
-
var template = SC.Handlebars.compile("my {{cool}} template");
|
16
|
-
var result = template({
|
17
|
-
cool: "awesome"
|
18
|
-
});
|
19
|
-
|
20
|
-
console.log(result); // prints "my awesome template"
|
21
|
-
|
22
|
-
Note that you won't usually need to use SC.Handlebars yourself. Instead, use
|
23
|
-
SC.TemplateView, which takes care of integration into the view layer for you.
|
24
|
-
*/
|
25
|
-
|
26
|
-
SC.Handlebars = {};
|
27
|
-
|
28
|
-
SC.Handlebars.JavaScriptCompiler = function() {};
|
29
|
-
SC.Handlebars.JavaScriptCompiler.prototype = SC.beget(Handlebars.JavaScriptCompiler.prototype);
|
30
|
-
SC.Handlebars.JavaScriptCompiler.prototype.compiler = SC.Handlebars.JavaScriptCompiler;
|
31
|
-
|
32
|
-
SC.Handlebars.JavaScriptCompiler.prototype.nameLookup = function(parent, name, type) {
|
33
|
-
if (type === 'context') {
|
34
|
-
return "SC.get(" + parent + ", " + this.quotedString(name) + ");";
|
35
|
-
} else {
|
36
|
-
return Handlebars.JavaScriptCompiler.prototype.nameLookup.call(this, parent, name, type);
|
37
|
-
}
|
38
|
-
};
|
39
|
-
|
40
|
-
SC.Handlebars.compile = function(string) {
|
41
|
-
var ast = Handlebars.parse(string);
|
42
|
-
var environment = new Handlebars.Compiler().compile(ast);
|
43
|
-
return new SC.Handlebars.JavaScriptCompiler().compile(environment, true);
|
44
|
-
};
|
@@ -1,156 +0,0 @@
|
|
1
|
-
sc_require('extensions');
|
2
|
-
|
3
|
-
/**
|
4
|
-
Adds the `bind`, `bindAttr`, and `boundIf` helpers to Handlebars.
|
5
|
-
|
6
|
-
# bind
|
7
|
-
|
8
|
-
`bind` can be used to display a value, then update that value if it changes.
|
9
|
-
For example, if you wanted to print the `title` property of `content`:
|
10
|
-
|
11
|
-
{{bind "content.title"}}
|
12
|
-
|
13
|
-
This will return the `title` property as a string, then create a new observer
|
14
|
-
at the specified path. If it changes, it will update the value in DOM. Note
|
15
|
-
that this will only work with SC.Object and subclasses, since it relies on
|
16
|
-
SproutCore's KVO system.
|
17
|
-
|
18
|
-
# bindAttr
|
19
|
-
|
20
|
-
`bindAttr` allows you to create a binding between DOM element attributes and
|
21
|
-
SproutCore objects. For example:
|
22
|
-
|
23
|
-
<img {{bindAttr src="imageUrl" alt="imageTitle"}}>
|
24
|
-
|
25
|
-
# boundIf
|
26
|
-
|
27
|
-
Use the `boundIf` helper to create a conditional that re-evaluates whenever
|
28
|
-
the bound value changes.
|
29
|
-
|
30
|
-
{{#boundIf "content.shouldDisplayTitle"}}
|
31
|
-
{{content.title}}
|
32
|
-
{{/boundIf}}
|
33
|
-
*/
|
34
|
-
|
35
|
-
(function() {
|
36
|
-
var bind = function(property, options, preserveContext, shouldDisplay) {
|
37
|
-
var data = options.data;
|
38
|
-
var view = data.view;
|
39
|
-
var fn = options.fn;
|
40
|
-
|
41
|
-
var spanId = "handlebars-bound-" + jQuery.uuid++;
|
42
|
-
var result = this.getPath(property);
|
43
|
-
|
44
|
-
var self = this, renderContext = SC.RenderContext('span').id(spanId);
|
45
|
-
|
46
|
-
this.addObserver(property, function observer() {
|
47
|
-
var result = self.getPath(property);
|
48
|
-
var span = view.$("#" + spanId);
|
49
|
-
|
50
|
-
if(span.length === 0) {
|
51
|
-
self.removeObserver(property, observer);
|
52
|
-
return;
|
53
|
-
}
|
54
|
-
|
55
|
-
if (fn && shouldDisplay(result)) {
|
56
|
-
var renderContext = SC.RenderContext('span').id(spanId);
|
57
|
-
renderContext.push(fn(self.get(property)));
|
58
|
-
var element = renderContext.element();
|
59
|
-
span.replaceWith(element);
|
60
|
-
} else if (shouldDisplay(result)) {
|
61
|
-
span.html(Handlebars.Utils.escapeExpression(result));
|
62
|
-
} else {
|
63
|
-
span.html("");
|
64
|
-
}
|
65
|
-
});
|
66
|
-
|
67
|
-
if (shouldDisplay(result)) {
|
68
|
-
if (preserveContext) {
|
69
|
-
renderContext.push(fn(this));
|
70
|
-
} else {
|
71
|
-
if (fn) {
|
72
|
-
renderContext.push(fn(result));
|
73
|
-
} else {
|
74
|
-
renderContext.push(Handlebars.Utils.escapeExpression(result));
|
75
|
-
}
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
return new Handlebars.SafeString(renderContext.join());
|
80
|
-
};
|
81
|
-
|
82
|
-
Handlebars.registerHelper('bind', function(property, fn) {
|
83
|
-
return bind.call(this, property, fn, false, function(result) { return !SC.none(result); } );
|
84
|
-
});
|
85
|
-
|
86
|
-
Handlebars.registerHelper('boundIf', function(property, fn) {
|
87
|
-
if(fn) {
|
88
|
-
return bind.call(this, property, fn, true, function(result) { return !!result; } );
|
89
|
-
} else {
|
90
|
-
throw "Cannot use boundIf helper without a block.";
|
91
|
-
}
|
92
|
-
});
|
93
|
-
})();
|
94
|
-
|
95
|
-
Handlebars.registerHelper('bindAttr', function(options) {
|
96
|
-
var attrs = options.hash, attrKeys = SC.keys(options.hash);
|
97
|
-
var view = options.data.view;
|
98
|
-
var ret = [];
|
99
|
-
|
100
|
-
// Generate a unique id for this element. This will be added as a
|
101
|
-
// data attribute to the element so it can be looked up when
|
102
|
-
// the bound property changes.
|
103
|
-
var dataId = jQuery.uuid++;
|
104
|
-
|
105
|
-
// For each attribute passed, create an observer and emit the
|
106
|
-
// current value of the property as an attribute.
|
107
|
-
attrKeys.forEach(function(attr) {
|
108
|
-
var property = attrs[attr];
|
109
|
-
var value = view.getPath(property);
|
110
|
-
|
111
|
-
// Add an observer to the view for when the property changes.
|
112
|
-
// When the observer fires, find the element using the
|
113
|
-
// unique data id and update the attribute to the new value.
|
114
|
-
view.addObserver(property, function observer() {
|
115
|
-
var result = view.getPath(property);
|
116
|
-
var elem = view.$("[data-handlebars-id='" + dataId + "']");
|
117
|
-
|
118
|
-
// If we aren't able to find the element, it means the element
|
119
|
-
// to which we were bound has been removed from the view.
|
120
|
-
// In that case, we can assume the template has been re-rendered
|
121
|
-
// and we need to clean up the observer.
|
122
|
-
if (elem.length === 0) {
|
123
|
-
view.removeObserver(property, observer);
|
124
|
-
return;
|
125
|
-
}
|
126
|
-
|
127
|
-
// A false result will remove the attribute from the element. This is
|
128
|
-
// to support attributes such as disabled, whose presence is meaningful.
|
129
|
-
if (result === NO) {
|
130
|
-
elem.removeAttr(attr);
|
131
|
-
|
132
|
-
// Likewise, a true result will set the attribute's name as the value.
|
133
|
-
} else if (result === YES) {
|
134
|
-
elem.attr(attr, attr);
|
135
|
-
|
136
|
-
} else {
|
137
|
-
elem.attr(attr, result);
|
138
|
-
}
|
139
|
-
});
|
140
|
-
|
141
|
-
// Use the attribute's name as the value when it is YES
|
142
|
-
if (value === YES) {
|
143
|
-
value = attr;
|
144
|
-
}
|
145
|
-
|
146
|
-
// Do not add the attribute when the value is false
|
147
|
-
if (value !== NO) {
|
148
|
-
// Return the current value, in the form src="foo.jpg"
|
149
|
-
ret.push(attr+'="'+value+'"');
|
150
|
-
}
|
151
|
-
});
|
152
|
-
|
153
|
-
// Add the unique identifier
|
154
|
-
ret.push('data-handlebars-id="'+dataId+'"');
|
155
|
-
return ret.join(' ');
|
156
|
-
});
|
@@ -1,75 +0,0 @@
|
|
1
|
-
sc_require('extensions');
|
2
|
-
|
3
|
-
Handlebars.registerHelper('collection', function(path, fn, inverse) {
|
4
|
-
var data = fn.data;
|
5
|
-
var collectionClass;
|
6
|
-
|
7
|
-
if(!data) {
|
8
|
-
data = fn;
|
9
|
-
fn = null;
|
10
|
-
}
|
11
|
-
|
12
|
-
if(typeof path === "string") {
|
13
|
-
collectionClass = SC.objectForPropertyPath(path) || SC.TemplateCollectionView;
|
14
|
-
} else {
|
15
|
-
collectionClass = path;
|
16
|
-
}
|
17
|
-
|
18
|
-
var hash = fn.hash, itemHash = {}, match;
|
19
|
-
|
20
|
-
for (var prop in hash) {
|
21
|
-
if (fn.hash.hasOwnProperty(prop)) {
|
22
|
-
match = prop.match(/^item(.)(.*)$/);
|
23
|
-
|
24
|
-
if(match) {
|
25
|
-
itemHash[match[1].toLowerCase() + match[2]] = hash[prop];
|
26
|
-
delete hash[prop];
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
if(fn) {
|
32
|
-
var collectionObject = collectionClass;
|
33
|
-
|
34
|
-
if(collectionObject.isClass) {
|
35
|
-
collectionObject = collectionObject.prototype;
|
36
|
-
}
|
37
|
-
|
38
|
-
collectionObject.itemViewTemplate = fn;
|
39
|
-
collectionObject.inverseTemplate = inverse;
|
40
|
-
collectionObject.itemViewOptions = itemHash;
|
41
|
-
}
|
42
|
-
|
43
|
-
var noop = function() { return ""; };
|
44
|
-
|
45
|
-
noop.data = fn.data;
|
46
|
-
noop.hash = fn.hash;
|
47
|
-
noop.fn = noop;
|
48
|
-
|
49
|
-
return Handlebars.helpers.view.call(this, collectionClass, noop);
|
50
|
-
});
|
51
|
-
|
52
|
-
Handlebars.registerHelper('bindCollection', function(path, bindingString, fn) {
|
53
|
-
var data = fn.data;
|
54
|
-
var inverse = fn.data;
|
55
|
-
var collectionClass = SC.objectForPropertyPath(path) || SC.TemplateCollectionView;
|
56
|
-
var binding = SC.Binding.from(bindingString, this);
|
57
|
-
|
58
|
-
if(!data) {
|
59
|
-
data = fn;
|
60
|
-
fn = null;
|
61
|
-
}
|
62
|
-
|
63
|
-
if(fn) {
|
64
|
-
// attach the function to the original class so it can be used recursively
|
65
|
-
collectionClass.prototype.itemViewTemplate = fn;
|
66
|
-
}
|
67
|
-
|
68
|
-
if(collectionClass.isClass) {
|
69
|
-
collectionClass = collectionClass.extend({ contentBinding: binding });
|
70
|
-
} else {
|
71
|
-
collectionClass.bindings.push( binding.to('content', collectionClass) );
|
72
|
-
}
|
73
|
-
|
74
|
-
return Handlebars.helpers.collection.call(this, collectionClass, fn);
|
75
|
-
});
|
@@ -1,115 +0,0 @@
|
|
1
|
-
sc_require('extensions');
|
2
|
-
|
3
|
-
SC.Handlebars.ViewHelper = SC.Object.create({
|
4
|
-
helper: function(thisContext, path, options) {
|
5
|
-
var inverse = options.inverse;
|
6
|
-
var data = options.data;
|
7
|
-
var view = data.view;
|
8
|
-
var fn = options.fn;
|
9
|
-
|
10
|
-
var newView;
|
11
|
-
if (path.isClass || path.isObject) {
|
12
|
-
newView = path;
|
13
|
-
if (!newView) {
|
14
|
-
throw "Null or undefined object was passed to the #view helper. Did you mean to pass a property path string?";
|
15
|
-
}
|
16
|
-
} else {
|
17
|
-
// Path is relative, look it up with this view as the root
|
18
|
-
if (path.charAt(0) === '.') {
|
19
|
-
newView = SC.objectForPropertyPath(path.slice(1), view);
|
20
|
-
} else {
|
21
|
-
// Path is absolute, look up path on global (window) object
|
22
|
-
newView = SC.objectForPropertyPath(path);
|
23
|
-
}
|
24
|
-
if (!newView) { throw "Unable to find view at path '" + path + "'"; }
|
25
|
-
}
|
26
|
-
|
27
|
-
var currentView = data.view;
|
28
|
-
|
29
|
-
var childViews = currentView.get('childViews');
|
30
|
-
var childView = currentView.createChildView(newView);
|
31
|
-
|
32
|
-
// Set the template of the view to the passed block if we got one
|
33
|
-
if (fn) { childView.template = fn; }
|
34
|
-
|
35
|
-
|
36
|
-
childViews.pushObject(childView);
|
37
|
-
|
38
|
-
var context = SC.RenderContext(childView.get('tagName'));
|
39
|
-
|
40
|
-
// Add id and class names passed to view helper
|
41
|
-
this.applyAttributes(options.hash, childView, context);
|
42
|
-
|
43
|
-
childView.applyAttributesToContext(context);
|
44
|
-
|
45
|
-
|
46
|
-
// tomdale wants to make SproutCore slow
|
47
|
-
childView.render(context, YES);
|
48
|
-
|
49
|
-
return new Handlebars.SafeString(context.join());
|
50
|
-
},
|
51
|
-
|
52
|
-
applyAttributes: function(options, childView, context) {
|
53
|
-
var id = options.id;
|
54
|
-
var classNames = options['class'];
|
55
|
-
|
56
|
-
if (classNames) {
|
57
|
-
context.addClass(classNames.split(' '));
|
58
|
-
}
|
59
|
-
|
60
|
-
if (id) {
|
61
|
-
childView.set('layerId', id);
|
62
|
-
context.id(id);
|
63
|
-
}
|
64
|
-
|
65
|
-
var classBindings = options.classBinding;
|
66
|
-
if (classBindings) {
|
67
|
-
this.addClassBindings(classBindings, childView, context);
|
68
|
-
}
|
69
|
-
},
|
70
|
-
|
71
|
-
addClassBindings: function(classBindings, view, context) {
|
72
|
-
var classObservers = view._classObservers;
|
73
|
-
|
74
|
-
// Teardown any existing observers on the view.
|
75
|
-
if (classObservers) {
|
76
|
-
for (var prop in classObservers) {
|
77
|
-
if (classObservers.hasOwnProperty(prop)) {
|
78
|
-
view.removeObserver(prop, classObservers[prop]);
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
classObservers = view._classObservers = {};
|
84
|
-
|
85
|
-
// For each property passed, loop through and setup
|
86
|
-
// an observer.
|
87
|
-
classBindings.split(' ').forEach(function(property) {
|
88
|
-
// Normalize property path to be suitable for use
|
89
|
-
// as a class name. For exaple, content.foo.barBaz
|
90
|
-
// becomes bar-baz.
|
91
|
-
|
92
|
-
var dasherizedProperty = property.split('.').get('lastObject');
|
93
|
-
dasherizedProperty = dasherizedProperty.dasherize();
|
94
|
-
|
95
|
-
// Set up an observer on the view. If the bound property
|
96
|
-
// changes, toggle the class name
|
97
|
-
var observer = classObservers[property] = function() {
|
98
|
-
var shouldDisplay = view.getPath(property);
|
99
|
-
var elem = view.$();
|
100
|
-
|
101
|
-
elem.toggleClass(dasherizedProperty, shouldDisplay);
|
102
|
-
};
|
103
|
-
|
104
|
-
view.addObserver(property, observer);
|
105
|
-
|
106
|
-
// Add the class name to the view
|
107
|
-
context.setClass(dasherizedProperty, view.getPath(property));
|
108
|
-
});
|
109
|
-
}
|
110
|
-
});
|
111
|
-
|
112
|
-
|
113
|
-
Handlebars.registerHelper('view', function(path, options) {
|
114
|
-
return SC.Handlebars.ViewHelper.helper(this, path, options);
|
115
|
-
});
|
@@ -1,1401 +0,0 @@
|
|
1
|
-
// lib/handlebars/parser.js
|
2
|
-
/* Jison generated parser */
|
3
|
-
var handlebars = (function(){
|
4
|
-
var parser = {trace: function trace() { },
|
5
|
-
yy: {},
|
6
|
-
symbols_: {"error":2,"root":3,"program":4,"EOF":5,"statements":6,"simpleInverse":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"OPEN_PARTIAL":24,"params":25,"hash":26,"param":27,"STRING":28,"hashSegments":29,"hashSegment":30,"ID":31,"EQUALS":32,"pathSegments":33,"SEP":34,"$accept":0,"$end":1},
|
7
|
-
terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"STRING",31:"ID",32:"EQUALS",34:"SEP"},
|
8
|
-
productions_: [0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[25,2],[25,1],[27,1],[27,1],[26,1],[29,2],[29,1],[30,3],[30,3],[21,1],[33,3],[33,1]],
|
9
|
-
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
|
10
|
-
|
11
|
-
var $0 = $$.length - 1;
|
12
|
-
switch (yystate) {
|
13
|
-
case 1: return $$[$0-1]
|
14
|
-
break;
|
15
|
-
case 2: this.$ = new yy.ProgramNode($$[$0-2], $$[$0])
|
16
|
-
break;
|
17
|
-
case 3: this.$ = new yy.ProgramNode($$[$0])
|
18
|
-
break;
|
19
|
-
case 4: this.$ = new yy.ProgramNode([])
|
20
|
-
break;
|
21
|
-
case 5: this.$ = [$$[$0]]
|
22
|
-
break;
|
23
|
-
case 6: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]
|
24
|
-
break;
|
25
|
-
case 7: this.$ = new yy.InverseNode($$[$0-2], $$[$0-1], $$[$0])
|
26
|
-
break;
|
27
|
-
case 8: this.$ = new yy.BlockNode($$[$0-2], $$[$0-1], $$[$0])
|
28
|
-
break;
|
29
|
-
case 9: this.$ = $$[$0]
|
30
|
-
break;
|
31
|
-
case 10: this.$ = $$[$0]
|
32
|
-
break;
|
33
|
-
case 11: this.$ = new yy.ContentNode($$[$0])
|
34
|
-
break;
|
35
|
-
case 12: this.$ = new yy.CommentNode($$[$0])
|
36
|
-
break;
|
37
|
-
case 13: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1])
|
38
|
-
break;
|
39
|
-
case 14: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1])
|
40
|
-
break;
|
41
|
-
case 15: this.$ = $$[$0-1]
|
42
|
-
break;
|
43
|
-
case 16: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1])
|
44
|
-
break;
|
45
|
-
case 17: this.$ = new yy.MustacheNode($$[$0-1][0], $$[$0-1][1], true)
|
46
|
-
break;
|
47
|
-
case 18: this.$ = new yy.PartialNode($$[$0-1])
|
48
|
-
break;
|
49
|
-
case 19: this.$ = new yy.PartialNode($$[$0-2], $$[$0-1])
|
50
|
-
break;
|
51
|
-
case 20:
|
52
|
-
break;
|
53
|
-
case 21: this.$ = [[$$[$0-2]].concat($$[$0-1]), $$[$0]]
|
54
|
-
break;
|
55
|
-
case 22: this.$ = [[$$[$0-1]].concat($$[$0]), null]
|
56
|
-
break;
|
57
|
-
case 23: this.$ = [[$$[$0-1]], $$[$0]]
|
58
|
-
break;
|
59
|
-
case 24: this.$ = [[$$[$0]], null]
|
60
|
-
break;
|
61
|
-
case 25: $$[$0-1].push($$[$0]); this.$ = $$[$0-1];
|
62
|
-
break;
|
63
|
-
case 26: this.$ = [$$[$0]]
|
64
|
-
break;
|
65
|
-
case 27: this.$ = $$[$0]
|
66
|
-
break;
|
67
|
-
case 28: this.$ = new yy.StringNode($$[$0])
|
68
|
-
break;
|
69
|
-
case 29: this.$ = new yy.HashNode($$[$0])
|
70
|
-
break;
|
71
|
-
case 30: $$[$0-1].push($$[$0]); this.$ = $$[$0-1]
|
72
|
-
break;
|
73
|
-
case 31: this.$ = [$$[$0]]
|
74
|
-
break;
|
75
|
-
case 32: this.$ = [$$[$0-2], $$[$0]]
|
76
|
-
break;
|
77
|
-
case 33: this.$ = [$$[$0-2], new yy.StringNode($$[$0])]
|
78
|
-
break;
|
79
|
-
case 34: this.$ = new yy.IdNode($$[$0])
|
80
|
-
break;
|
81
|
-
case 35: $$[$0-2].push($$[$0]); this.$ = $$[$0-2];
|
82
|
-
break;
|
83
|
-
case 36: this.$ = [$$[$0]]
|
84
|
-
break;
|
85
|
-
}
|
86
|
-
},
|
87
|
-
table: [{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,31:[1,25],33:24},{17:26,21:23,31:[1,25],33:24},{17:27,21:23,31:[1,25],33:24},{17:28,21:23,31:[1,25],33:24},{21:29,31:[1,25],33:24},{1:[2,1]},{6:30,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,31],21:23,31:[1,25],33:24},{10:32,20:[1,33]},{10:34,20:[1,33]},{18:[1,35]},{18:[2,24],21:40,25:36,26:37,27:38,28:[1,41],29:39,30:42,31:[1,43],33:24},{18:[2,34],28:[2,34],31:[2,34],34:[1,44]},{18:[2,36],28:[2,36],31:[2,36],34:[2,36]},{18:[1,45]},{18:[1,46]},{18:[1,47]},{18:[1,48],21:49,31:[1,25],33:24},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:50,31:[1,25],33:24},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:40,26:51,27:52,28:[1,41],29:39,30:42,31:[1,43],33:24},{18:[2,23]},{18:[2,26],28:[2,26],31:[2,26]},{18:[2,29],30:53,31:[1,54]},{18:[2,27],28:[2,27],31:[2,27]},{18:[2,28],28:[2,28],31:[2,28]},{18:[2,31],31:[2,31]},{18:[2,36],28:[2,36],31:[2,36],32:[1,55],34:[2,36]},{31:[1,56]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,57]},{18:[1,58]},{18:[2,21]},{18:[2,25],28:[2,25],31:[2,25]},{18:[2,30],31:[2,30]},{32:[1,55]},{21:59,28:[1,60],31:[1,25],33:24},{18:[2,35],28:[2,35],31:[2,35],34:[2,35]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,32],31:[2,32]},{18:[2,33],31:[2,33]}],
|
88
|
-
defaultActions: {16:[2,1],37:[2,23],51:[2,21]},
|
89
|
-
parseError: function parseError(str, hash) {
|
90
|
-
throw new Error(str);
|
91
|
-
},
|
92
|
-
parse: function parse(input) {
|
93
|
-
var self = this,
|
94
|
-
stack = [0],
|
95
|
-
vstack = [null], // semantic value stack
|
96
|
-
lstack = [], // location stack
|
97
|
-
table = this.table,
|
98
|
-
yytext = '',
|
99
|
-
yylineno = 0,
|
100
|
-
yyleng = 0,
|
101
|
-
recovering = 0,
|
102
|
-
TERROR = 2,
|
103
|
-
EOF = 1;
|
104
|
-
|
105
|
-
//this.reductionCount = this.shiftCount = 0;
|
106
|
-
|
107
|
-
this.lexer.setInput(input);
|
108
|
-
this.lexer.yy = this.yy;
|
109
|
-
this.yy.lexer = this.lexer;
|
110
|
-
var yyloc = this.lexer.yylloc;
|
111
|
-
lstack.push(yyloc);
|
112
|
-
|
113
|
-
if (typeof this.yy.parseError === 'function')
|
114
|
-
this.parseError = this.yy.parseError;
|
115
|
-
|
116
|
-
function popStack (n) {
|
117
|
-
stack.length = stack.length - 2*n;
|
118
|
-
vstack.length = vstack.length - n;
|
119
|
-
lstack.length = lstack.length - n;
|
120
|
-
}
|
121
|
-
|
122
|
-
function lex() {
|
123
|
-
var token;
|
124
|
-
token = self.lexer.lex() || 1; // $end = 1
|
125
|
-
// if token isn't its numeric value, convert
|
126
|
-
if (typeof token !== 'number') {
|
127
|
-
token = self.symbols_[token] || token;
|
128
|
-
}
|
129
|
-
return token;
|
130
|
-
};
|
131
|
-
|
132
|
-
var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;
|
133
|
-
while (true) {
|
134
|
-
// retreive state number from top of stack
|
135
|
-
state = stack[stack.length-1];
|
136
|
-
|
137
|
-
// use default actions if available
|
138
|
-
if (this.defaultActions[state]) {
|
139
|
-
action = this.defaultActions[state];
|
140
|
-
} else {
|
141
|
-
if (symbol == null)
|
142
|
-
symbol = lex();
|
143
|
-
// read action for current state and first input
|
144
|
-
action = table[state] && table[state][symbol];
|
145
|
-
}
|
146
|
-
|
147
|
-
// handle parse error
|
148
|
-
if (typeof action === 'undefined' || !action.length || !action[0]) {
|
149
|
-
|
150
|
-
if (!recovering) {
|
151
|
-
// Report error
|
152
|
-
expected = [];
|
153
|
-
for (p in table[state]) if (this.terminals_[p] && p > 2) {
|
154
|
-
expected.push("'"+this.terminals_[p]+"'");
|
155
|
-
}
|
156
|
-
var errStr = '';
|
157
|
-
if (this.lexer.showPosition) {
|
158
|
-
errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+'\nExpecting '+expected.join(', ');
|
159
|
-
} else {
|
160
|
-
errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " +
|
161
|
-
(symbol == 1 /*EOF*/ ? "end of input" :
|
162
|
-
("'"+(this.terminals_[symbol] || symbol)+"'"));
|
163
|
-
}
|
164
|
-
this.parseError(errStr,
|
165
|
-
{text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
|
166
|
-
}
|
167
|
-
|
168
|
-
// just recovered from another error
|
169
|
-
if (recovering == 3) {
|
170
|
-
if (symbol == EOF) {
|
171
|
-
throw new Error(errStr || 'Parsing halted.');
|
172
|
-
}
|
173
|
-
|
174
|
-
// discard current lookahead and grab another
|
175
|
-
yyleng = this.lexer.yyleng;
|
176
|
-
yytext = this.lexer.yytext;
|
177
|
-
yylineno = this.lexer.yylineno;
|
178
|
-
yyloc = this.lexer.yylloc;
|
179
|
-
symbol = lex();
|
180
|
-
}
|
181
|
-
|
182
|
-
// try to recover from error
|
183
|
-
while (1) {
|
184
|
-
// check for error recovery rule in this state
|
185
|
-
if ((TERROR.toString()) in table[state]) {
|
186
|
-
break;
|
187
|
-
}
|
188
|
-
if (state == 0) {
|
189
|
-
throw new Error(errStr || 'Parsing halted.');
|
190
|
-
}
|
191
|
-
popStack(1);
|
192
|
-
state = stack[stack.length-1];
|
193
|
-
}
|
194
|
-
|
195
|
-
preErrorSymbol = symbol; // save the lookahead token
|
196
|
-
symbol = TERROR; // insert generic error symbol as new lookahead
|
197
|
-
state = stack[stack.length-1];
|
198
|
-
action = table[state] && table[state][TERROR];
|
199
|
-
recovering = 3; // allow 3 real symbols to be shifted before reporting a new error
|
200
|
-
}
|
201
|
-
|
202
|
-
// this shouldn't happen, unless resolve defaults are off
|
203
|
-
if (action[0] instanceof Array && action.length > 1) {
|
204
|
-
throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);
|
205
|
-
}
|
206
|
-
|
207
|
-
switch (action[0]) {
|
208
|
-
|
209
|
-
case 1: // shift
|
210
|
-
//this.shiftCount++;
|
211
|
-
|
212
|
-
stack.push(symbol);
|
213
|
-
vstack.push(this.lexer.yytext);
|
214
|
-
lstack.push(this.lexer.yylloc);
|
215
|
-
stack.push(action[1]); // push state
|
216
|
-
symbol = null;
|
217
|
-
if (!preErrorSymbol) { // normal execution/no error
|
218
|
-
yyleng = this.lexer.yyleng;
|
219
|
-
yytext = this.lexer.yytext;
|
220
|
-
yylineno = this.lexer.yylineno;
|
221
|
-
yyloc = this.lexer.yylloc;
|
222
|
-
if (recovering > 0)
|
223
|
-
recovering--;
|
224
|
-
} else { // error just occurred, resume old lookahead f/ before error
|
225
|
-
symbol = preErrorSymbol;
|
226
|
-
preErrorSymbol = null;
|
227
|
-
}
|
228
|
-
break;
|
229
|
-
|
230
|
-
case 2: // reduce
|
231
|
-
//this.reductionCount++;
|
232
|
-
|
233
|
-
len = this.productions_[action[1]][1];
|
234
|
-
|
235
|
-
// perform semantic action
|
236
|
-
yyval.$ = vstack[vstack.length-len]; // default to $$ = $1
|
237
|
-
// default location, uses first token for firsts, last for lasts
|
238
|
-
yyval._$ = {
|
239
|
-
first_line: lstack[lstack.length-(len||1)].first_line,
|
240
|
-
last_line: lstack[lstack.length-1].last_line,
|
241
|
-
first_column: lstack[lstack.length-(len||1)].first_column,
|
242
|
-
last_column: lstack[lstack.length-1].last_column
|
243
|
-
};
|
244
|
-
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
|
245
|
-
|
246
|
-
if (typeof r !== 'undefined') {
|
247
|
-
return r;
|
248
|
-
}
|
249
|
-
|
250
|
-
// pop off stack
|
251
|
-
if (len) {
|
252
|
-
stack = stack.slice(0,-1*len*2);
|
253
|
-
vstack = vstack.slice(0, -1*len);
|
254
|
-
lstack = lstack.slice(0, -1*len);
|
255
|
-
}
|
256
|
-
|
257
|
-
stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)
|
258
|
-
vstack.push(yyval.$);
|
259
|
-
lstack.push(yyval._$);
|
260
|
-
// goto new state = table[STATE][NONTERMINAL]
|
261
|
-
newState = table[stack[stack.length-2]][stack[stack.length-1]];
|
262
|
-
stack.push(newState);
|
263
|
-
break;
|
264
|
-
|
265
|
-
case 3: // accept
|
266
|
-
return true;
|
267
|
-
}
|
268
|
-
|
269
|
-
}
|
270
|
-
|
271
|
-
return true;
|
272
|
-
}};/* Jison generated lexer */
|
273
|
-
var lexer = (function(){var lexer = ({EOF:1,
|
274
|
-
parseError:function parseError(str, hash) {
|
275
|
-
if (this.yy.parseError) {
|
276
|
-
this.yy.parseError(str, hash);
|
277
|
-
} else {
|
278
|
-
throw new Error(str);
|
279
|
-
}
|
280
|
-
},
|
281
|
-
setInput:function (input) {
|
282
|
-
this._input = input;
|
283
|
-
this._more = this._less = this.done = false;
|
284
|
-
this.yylineno = this.yyleng = 0;
|
285
|
-
this.yytext = this.matched = this.match = '';
|
286
|
-
this.conditionStack = ['INITIAL'];
|
287
|
-
this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
|
288
|
-
return this;
|
289
|
-
},
|
290
|
-
input:function () {
|
291
|
-
var ch = this._input[0];
|
292
|
-
this.yytext+=ch;
|
293
|
-
this.yyleng++;
|
294
|
-
this.match+=ch;
|
295
|
-
this.matched+=ch;
|
296
|
-
var lines = ch.match(/\n/);
|
297
|
-
if (lines) this.yylineno++;
|
298
|
-
this._input = this._input.slice(1);
|
299
|
-
return ch;
|
300
|
-
},
|
301
|
-
unput:function (ch) {
|
302
|
-
this._input = ch + this._input;
|
303
|
-
return this;
|
304
|
-
},
|
305
|
-
more:function () {
|
306
|
-
this._more = true;
|
307
|
-
return this;
|
308
|
-
},
|
309
|
-
pastInput:function () {
|
310
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
311
|
-
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
|
312
|
-
},
|
313
|
-
upcomingInput:function () {
|
314
|
-
var next = this.match;
|
315
|
-
if (next.length < 20) {
|
316
|
-
next += this._input.substr(0, 20-next.length);
|
317
|
-
}
|
318
|
-
return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
|
319
|
-
},
|
320
|
-
showPosition:function () {
|
321
|
-
var pre = this.pastInput();
|
322
|
-
var c = new Array(pre.length + 1).join("-");
|
323
|
-
return pre + this.upcomingInput() + "\n" + c+"^";
|
324
|
-
},
|
325
|
-
next:function () {
|
326
|
-
if (this.done) {
|
327
|
-
return this.EOF;
|
328
|
-
}
|
329
|
-
if (!this._input) this.done = true;
|
330
|
-
|
331
|
-
var token,
|
332
|
-
match,
|
333
|
-
col,
|
334
|
-
lines;
|
335
|
-
if (!this._more) {
|
336
|
-
this.yytext = '';
|
337
|
-
this.match = '';
|
338
|
-
}
|
339
|
-
var rules = this._currentRules();
|
340
|
-
for (var i=0;i < rules.length; i++) {
|
341
|
-
match = this._input.match(this.rules[rules[i]]);
|
342
|
-
if (match) {
|
343
|
-
lines = match[0].match(/\n.*/g);
|
344
|
-
if (lines) this.yylineno += lines.length;
|
345
|
-
this.yylloc = {first_line: this.yylloc.last_line,
|
346
|
-
last_line: this.yylineno+1,
|
347
|
-
first_column: this.yylloc.last_column,
|
348
|
-
last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match.length}
|
349
|
-
this.yytext += match[0];
|
350
|
-
this.match += match[0];
|
351
|
-
this.matches = match;
|
352
|
-
this.yyleng = this.yytext.length;
|
353
|
-
this._more = false;
|
354
|
-
this._input = this._input.slice(match[0].length);
|
355
|
-
this.matched += match[0];
|
356
|
-
token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]);
|
357
|
-
if (token) return token;
|
358
|
-
else return;
|
359
|
-
}
|
360
|
-
}
|
361
|
-
if (this._input === "") {
|
362
|
-
return this.EOF;
|
363
|
-
} else {
|
364
|
-
this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
|
365
|
-
{text: "", token: null, line: this.yylineno});
|
366
|
-
}
|
367
|
-
},
|
368
|
-
lex:function lex() {
|
369
|
-
var r = this.next();
|
370
|
-
if (typeof r !== 'undefined') {
|
371
|
-
return r;
|
372
|
-
} else {
|
373
|
-
return this.lex();
|
374
|
-
}
|
375
|
-
},
|
376
|
-
begin:function begin(condition) {
|
377
|
-
this.conditionStack.push(condition);
|
378
|
-
},
|
379
|
-
popState:function popState() {
|
380
|
-
return this.conditionStack.pop();
|
381
|
-
},
|
382
|
-
_currentRules:function _currentRules() {
|
383
|
-
return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
|
384
|
-
}});
|
385
|
-
lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
|
386
|
-
|
387
|
-
var YYSTATE=YY_START
|
388
|
-
switch($avoiding_name_collisions) {
|
389
|
-
case 0: this.begin("mu"); if (yy_.yytext) return 14;
|
390
|
-
break;
|
391
|
-
case 1: return 14;
|
392
|
-
break;
|
393
|
-
case 2: return 24;
|
394
|
-
break;
|
395
|
-
case 3: return 16;
|
396
|
-
break;
|
397
|
-
case 4: return 20;
|
398
|
-
break;
|
399
|
-
case 5: return 19;
|
400
|
-
break;
|
401
|
-
case 6: return 19;
|
402
|
-
break;
|
403
|
-
case 7: return 23;
|
404
|
-
break;
|
405
|
-
case 8: return 23;
|
406
|
-
break;
|
407
|
-
case 9: yy_.yytext = yy_.yytext.substr(3,yy_.yyleng-5); this.begin("INITIAL"); return 15;
|
408
|
-
break;
|
409
|
-
case 10: return 22;
|
410
|
-
break;
|
411
|
-
case 11: return 32;
|
412
|
-
break;
|
413
|
-
case 12: return 31;
|
414
|
-
break;
|
415
|
-
case 13: return 31;
|
416
|
-
break;
|
417
|
-
case 14: return 34;
|
418
|
-
break;
|
419
|
-
case 15: /*ignore whitespace*/
|
420
|
-
break;
|
421
|
-
case 16: this.begin("INITIAL"); return 18;
|
422
|
-
break;
|
423
|
-
case 17: this.begin("INITIAL"); return 18;
|
424
|
-
break;
|
425
|
-
case 18: yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2).replace(/\\"/g,'"'); return 28;
|
426
|
-
break;
|
427
|
-
case 19: return 31;
|
428
|
-
break;
|
429
|
-
case 20: return 'INVALID';
|
430
|
-
break;
|
431
|
-
case 21: return 5;
|
432
|
-
break;
|
433
|
-
}
|
434
|
-
};
|
435
|
-
lexer.rules = [/^[^\x00]*?(?=(\{\{))/,/^[^\x00]+/,/^\{\{>/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{!.*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^[a-zA-Z0-9_]+(?=[=} /.])/,/^./,/^$/];
|
436
|
-
lexer.conditions = {"mu":{"rules":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],"inclusive":false},"INITIAL":{"rules":[0,1,21],"inclusive":true}};return lexer;})()
|
437
|
-
parser.lexer = lexer;
|
438
|
-
return parser;
|
439
|
-
})();
|
440
|
-
// lib/handlebars/base.js
|
441
|
-
|
442
|
-
// Support for node.js and Spade
|
443
|
-
var Handlebars = (typeof exports !== 'undefined') ? exports : {};
|
444
|
-
|
445
|
-
Handlebars.Parser = handlebars;
|
446
|
-
|
447
|
-
Handlebars.parse = function(string) {
|
448
|
-
Handlebars.Parser.yy = Handlebars.AST;
|
449
|
-
return Handlebars.Parser.parse(string);
|
450
|
-
};
|
451
|
-
|
452
|
-
Handlebars.print = function(ast) {
|
453
|
-
return new Handlebars.PrintVisitor().accept(ast);
|
454
|
-
};
|
455
|
-
|
456
|
-
Handlebars.Runtime = {};
|
457
|
-
|
458
|
-
Handlebars.Runtime.compile = function(string) {
|
459
|
-
var ast = Handlebars.parse(string);
|
460
|
-
|
461
|
-
return function(context, helpers, partials) {
|
462
|
-
helpers = helpers || Handlebars.helpers;
|
463
|
-
partials = partials || Handlebars.partials;
|
464
|
-
|
465
|
-
var internalContext = new Handlebars.Context(context, helpers, partials);
|
466
|
-
var runtime = new Handlebars.Runtime(internalContext);
|
467
|
-
runtime.accept(ast);
|
468
|
-
return runtime.buffer;
|
469
|
-
};
|
470
|
-
};
|
471
|
-
|
472
|
-
Handlebars.helpers = {};
|
473
|
-
Handlebars.partials = {};
|
474
|
-
|
475
|
-
Handlebars.registerHelper = function(name, fn, inverse) {
|
476
|
-
if(inverse) { fn.not = inverse; }
|
477
|
-
this.helpers[name] = fn;
|
478
|
-
};
|
479
|
-
|
480
|
-
Handlebars.registerPartial = function(name, str) {
|
481
|
-
this.partials[name] = str;
|
482
|
-
};
|
483
|
-
|
484
|
-
Handlebars.registerHelper('blockHelperMissing', function(context, fn, inverse) {
|
485
|
-
inverse = inverse || function() {};
|
486
|
-
|
487
|
-
var ret = "";
|
488
|
-
var type = Object.prototype.toString.call(context);
|
489
|
-
|
490
|
-
if(type === "[object Function]") {
|
491
|
-
context = context();
|
492
|
-
}
|
493
|
-
|
494
|
-
if(context === true) {
|
495
|
-
return fn(this);
|
496
|
-
} else if(context === false || context == null) {
|
497
|
-
return inverse(this);
|
498
|
-
} else if(type === "[object Array]") {
|
499
|
-
if(context.length > 0) {
|
500
|
-
for(var i=0, j=context.length; i<j; i++) {
|
501
|
-
ret = ret + fn(context[i]);
|
502
|
-
}
|
503
|
-
} else {
|
504
|
-
ret = inverse(this);
|
505
|
-
}
|
506
|
-
return ret;
|
507
|
-
} else {
|
508
|
-
return fn(context);
|
509
|
-
}
|
510
|
-
}, function(context, fn) {
|
511
|
-
return fn(context);
|
512
|
-
});
|
513
|
-
|
514
|
-
Handlebars.registerHelper('each', function(context, fn, inverse) {
|
515
|
-
var ret = "";
|
516
|
-
|
517
|
-
if(context && context.length > 0) {
|
518
|
-
for(var i=0, j=context.length; i<j; i++) {
|
519
|
-
ret = ret + fn(context[i]);
|
520
|
-
}
|
521
|
-
} else {
|
522
|
-
ret = inverse(this);
|
523
|
-
}
|
524
|
-
return ret;
|
525
|
-
});
|
526
|
-
|
527
|
-
Handlebars.registerHelper('if', function(context, fn, inverse) {
|
528
|
-
if(!context || context == []) {
|
529
|
-
return inverse(this);
|
530
|
-
} else {
|
531
|
-
return fn(this);
|
532
|
-
}
|
533
|
-
});
|
534
|
-
|
535
|
-
Handlebars.registerHelper('unless', function(context, fn, inverse) {
|
536
|
-
Handlebars.helpers['if'].call(this, context, inverse, fn);
|
537
|
-
});
|
538
|
-
|
539
|
-
Handlebars.registerHelper('with', function(context, fn) {
|
540
|
-
return fn(context);
|
541
|
-
});
|
542
|
-
|
543
|
-
Handlebars.logger = {
|
544
|
-
DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3,
|
545
|
-
|
546
|
-
// override in the host environment
|
547
|
-
log: function(level, str) {}
|
548
|
-
};
|
549
|
-
|
550
|
-
Handlebars.log = function(level, str) { Handlebars.logger.log(level, str); };
|
551
|
-
;
|
552
|
-
// lib/handlebars/ast.js
|
553
|
-
(function() {
|
554
|
-
|
555
|
-
Handlebars.AST = {};
|
556
|
-
|
557
|
-
Handlebars.AST.ProgramNode = function(statements, inverse) {
|
558
|
-
this.type = "program";
|
559
|
-
this.statements = statements;
|
560
|
-
if(inverse) { this.inverse = new Handlebars.AST.ProgramNode(inverse); }
|
561
|
-
};
|
562
|
-
|
563
|
-
Handlebars.AST.MustacheNode = function(params, hash, unescaped) {
|
564
|
-
this.type = "mustache";
|
565
|
-
this.id = params[0];
|
566
|
-
this.params = params.slice(1);
|
567
|
-
this.hash = hash;
|
568
|
-
this.escaped = !unescaped;
|
569
|
-
};
|
570
|
-
|
571
|
-
Handlebars.AST.PartialNode = function(id, context) {
|
572
|
-
this.type = "partial";
|
573
|
-
|
574
|
-
// TODO: disallow complex IDs
|
575
|
-
|
576
|
-
this.id = id;
|
577
|
-
this.context = context;
|
578
|
-
};
|
579
|
-
|
580
|
-
var verifyMatch = function(open, close) {
|
581
|
-
if(open.original !== close.original) {
|
582
|
-
throw new Handlebars.Exception(open.original + " doesn't match " + close.original);
|
583
|
-
}
|
584
|
-
};
|
585
|
-
|
586
|
-
Handlebars.AST.BlockNode = function(mustache, program, close) {
|
587
|
-
verifyMatch(mustache.id, close);
|
588
|
-
this.type = "block";
|
589
|
-
this.mustache = mustache;
|
590
|
-
this.program = program;
|
591
|
-
};
|
592
|
-
|
593
|
-
Handlebars.AST.InverseNode = function(mustache, program, close) {
|
594
|
-
verifyMatch(mustache.id, close);
|
595
|
-
this.type = "inverse";
|
596
|
-
this.mustache = mustache;
|
597
|
-
this.program = program;
|
598
|
-
};
|
599
|
-
|
600
|
-
Handlebars.AST.ContentNode = function(string) {
|
601
|
-
this.type = "content";
|
602
|
-
this.string = string;
|
603
|
-
};
|
604
|
-
|
605
|
-
Handlebars.AST.HashNode = function(pairs) {
|
606
|
-
this.type = "hash";
|
607
|
-
this.pairs = pairs;
|
608
|
-
};
|
609
|
-
|
610
|
-
Handlebars.AST.IdNode = function(parts) {
|
611
|
-
this.type = "ID";
|
612
|
-
this.original = parts.join("/");
|
613
|
-
|
614
|
-
var dig = [], depth = 0;
|
615
|
-
|
616
|
-
for(var i=0,l=parts.length; i<l; i++) {
|
617
|
-
var part = parts[i];
|
618
|
-
|
619
|
-
if(part === "..") { depth++; }
|
620
|
-
else if(part === "." || part === "this") { continue; }
|
621
|
-
else { dig.push(part); }
|
622
|
-
}
|
623
|
-
|
624
|
-
this.parts = dig;
|
625
|
-
this.depth = depth;
|
626
|
-
this.isSimple = (dig.length === 1) && (depth === 0);
|
627
|
-
};
|
628
|
-
|
629
|
-
Handlebars.AST.StringNode = function(string) {
|
630
|
-
this.type = "STRING";
|
631
|
-
this.string = string;
|
632
|
-
};
|
633
|
-
|
634
|
-
Handlebars.AST.CommentNode = function(comment) {
|
635
|
-
this.type = "comment";
|
636
|
-
this.comment = comment;
|
637
|
-
};
|
638
|
-
|
639
|
-
})();;
|
640
|
-
// lib/handlebars/visitor.js
|
641
|
-
|
642
|
-
Handlebars.Visitor = function() {};
|
643
|
-
|
644
|
-
Handlebars.Visitor.prototype = {
|
645
|
-
accept: function(object) {
|
646
|
-
return this[object.type](object);
|
647
|
-
}
|
648
|
-
};;
|
649
|
-
// lib/handlebars/utils.js
|
650
|
-
Handlebars.Exception = function(message) {
|
651
|
-
this.message = message;
|
652
|
-
};
|
653
|
-
|
654
|
-
// Build out our basic SafeString type
|
655
|
-
Handlebars.SafeString = function(string) {
|
656
|
-
this.string = string;
|
657
|
-
};
|
658
|
-
Handlebars.SafeString.prototype.toString = function() {
|
659
|
-
return this.string.toString();
|
660
|
-
};
|
661
|
-
|
662
|
-
(function() {
|
663
|
-
var escape = {
|
664
|
-
"<": "<",
|
665
|
-
">": ">"
|
666
|
-
};
|
667
|
-
|
668
|
-
var badChars = /&(?!\w+;)|[<>]/g;
|
669
|
-
var possible = /[&<>]/
|
670
|
-
|
671
|
-
var escapeChar = function(chr) {
|
672
|
-
return escape[chr] || "&"
|
673
|
-
};
|
674
|
-
|
675
|
-
Handlebars.Utils = {
|
676
|
-
escapeExpression: function(string) {
|
677
|
-
// don't escape SafeStrings, since they're already safe
|
678
|
-
if (string instanceof Handlebars.SafeString) {
|
679
|
-
return string.toString();
|
680
|
-
} else if (string == null || string === false) {
|
681
|
-
return "";
|
682
|
-
}
|
683
|
-
|
684
|
-
if(!possible.test(string)) { return string; }
|
685
|
-
return string.replace(badChars, escapeChar);
|
686
|
-
},
|
687
|
-
|
688
|
-
isEmpty: function(value) {
|
689
|
-
if (typeof value === "undefined") {
|
690
|
-
return true;
|
691
|
-
} else if (value === null) {
|
692
|
-
return true;
|
693
|
-
} else if (value === false) {
|
694
|
-
return true;
|
695
|
-
} else if(Object.prototype.toString.call(value) === "[object Array]" && value.length === 0) {
|
696
|
-
return true;
|
697
|
-
} else {
|
698
|
-
return false;
|
699
|
-
}
|
700
|
-
}
|
701
|
-
};
|
702
|
-
})();;
|
703
|
-
// lib/handlebars/vm.js
|
704
|
-
Handlebars.Compiler = function() {};
|
705
|
-
Handlebars.JavaScriptCompiler = function() {};
|
706
|
-
|
707
|
-
(function(Compiler, JavaScriptCompiler) {
|
708
|
-
Compiler.OPCODE_MAP = {
|
709
|
-
appendContent: 1,
|
710
|
-
getContext: 2,
|
711
|
-
lookupWithHelpers: 3,
|
712
|
-
lookup: 4,
|
713
|
-
append: 5,
|
714
|
-
invokeMustache: 6,
|
715
|
-
appendEscaped: 7,
|
716
|
-
pushString: 8,
|
717
|
-
truthyOrFallback: 9,
|
718
|
-
functionOrFallback: 10,
|
719
|
-
invokeProgram: 11,
|
720
|
-
invokePartial: 12,
|
721
|
-
push: 13,
|
722
|
-
invokeInverse: 14,
|
723
|
-
assignToHash: 15
|
724
|
-
};
|
725
|
-
|
726
|
-
Compiler.MULTI_PARAM_OPCODES = {
|
727
|
-
appendContent: 1,
|
728
|
-
getContext: 1,
|
729
|
-
lookupWithHelpers: 1,
|
730
|
-
lookup: 1,
|
731
|
-
invokeMustache: 2,
|
732
|
-
pushString: 1,
|
733
|
-
truthyOrFallback: 1,
|
734
|
-
functionOrFallback: 1,
|
735
|
-
invokeProgram: 2,
|
736
|
-
invokePartial: 1,
|
737
|
-
push: 1,
|
738
|
-
invokeInverse: 1,
|
739
|
-
assignToHash: 1
|
740
|
-
};
|
741
|
-
|
742
|
-
Compiler.DISASSEMBLE_MAP = {};
|
743
|
-
|
744
|
-
for(var prop in Compiler.OPCODE_MAP) {
|
745
|
-
var value = Compiler.OPCODE_MAP[prop];
|
746
|
-
Compiler.DISASSEMBLE_MAP[value] = prop;
|
747
|
-
}
|
748
|
-
|
749
|
-
Compiler.multiParamSize = function(code) {
|
750
|
-
return Compiler.MULTI_PARAM_OPCODES[Compiler.DISASSEMBLE_MAP[code]];
|
751
|
-
};
|
752
|
-
|
753
|
-
Compiler.prototype = {
|
754
|
-
disassemble: function() {
|
755
|
-
var opcodes = this.opcodes, opcode, nextCode;
|
756
|
-
var out = [], str, name, value;
|
757
|
-
|
758
|
-
for(var i=0, l=opcodes.length; i<l; i++) {
|
759
|
-
opcode = opcodes[i];
|
760
|
-
|
761
|
-
if(opcode === 'DECLARE') {
|
762
|
-
name = opcodes[++i];
|
763
|
-
value = opcodes[++i];
|
764
|
-
out.push("DECLARE " + name + " = " + value);
|
765
|
-
} else {
|
766
|
-
str = Compiler.DISASSEMBLE_MAP[opcode];
|
767
|
-
|
768
|
-
var extraParams = Compiler.multiParamSize(opcode);
|
769
|
-
var codes = [];
|
770
|
-
|
771
|
-
for(var j=0; j<extraParams; j++) {
|
772
|
-
nextCode = opcodes[++i];
|
773
|
-
|
774
|
-
if(typeof nextCode === "string") {
|
775
|
-
nextCode = "\"" + nextCode.replace("\n", "\\n") + "\"";
|
776
|
-
}
|
777
|
-
|
778
|
-
codes.push(nextCode);
|
779
|
-
}
|
780
|
-
|
781
|
-
str = str + " " + codes.join(" ");
|
782
|
-
|
783
|
-
out.push(str);
|
784
|
-
}
|
785
|
-
}
|
786
|
-
|
787
|
-
return out.join("\n");
|
788
|
-
},
|
789
|
-
|
790
|
-
guid: 0,
|
791
|
-
|
792
|
-
compile: function(program) {
|
793
|
-
this.children = [];
|
794
|
-
this.depths = {list: []};
|
795
|
-
return this.program(program);
|
796
|
-
},
|
797
|
-
|
798
|
-
accept: function(node) {
|
799
|
-
return this[node.type](node);
|
800
|
-
},
|
801
|
-
|
802
|
-
program: function(program) {
|
803
|
-
var statements = program.statements, statement;
|
804
|
-
this.opcodes = [];
|
805
|
-
|
806
|
-
for(var i=0, l=statements.length; i<l; i++) {
|
807
|
-
statement = statements[i];
|
808
|
-
this[statement.type](statement);
|
809
|
-
}
|
810
|
-
|
811
|
-
this.depths.list = this.depths.list.sort(function(a, b) {
|
812
|
-
return a - b;
|
813
|
-
});
|
814
|
-
|
815
|
-
return this;
|
816
|
-
},
|
817
|
-
|
818
|
-
compileProgram: function(program) {
|
819
|
-
var result = new Compiler().compile(program);
|
820
|
-
var guid = this.guid++;
|
821
|
-
|
822
|
-
this.usePartial = this.usePartial || result.usePartial;
|
823
|
-
|
824
|
-
this.children[guid] = result;
|
825
|
-
|
826
|
-
for(var i=0, l=result.depths.list.length; i<l; i++) {
|
827
|
-
depth = result.depths.list[i];
|
828
|
-
|
829
|
-
if(depth < 2) { continue; }
|
830
|
-
else { this.addDepth(depth - 1); }
|
831
|
-
}
|
832
|
-
|
833
|
-
return guid;
|
834
|
-
},
|
835
|
-
|
836
|
-
block: function(block) {
|
837
|
-
var mustache = block.mustache;
|
838
|
-
var depth, child, inverse, inverseGuid;
|
839
|
-
|
840
|
-
var params = this.setupStackForMustache(mustache);
|
841
|
-
|
842
|
-
var programGuid = this.compileProgram(block.program);
|
843
|
-
|
844
|
-
if(block.program.inverse) {
|
845
|
-
inverseGuid = this.compileProgram(block.program.inverse);
|
846
|
-
this.declare('inverse', inverseGuid);
|
847
|
-
}
|
848
|
-
|
849
|
-
this.opcode('invokeProgram', programGuid, params.length);
|
850
|
-
this.declare('inverse', null);
|
851
|
-
this.opcode('append');
|
852
|
-
},
|
853
|
-
|
854
|
-
inverse: function(block) {
|
855
|
-
this.ID(block.mustache.id);
|
856
|
-
var programGuid = this.compileProgram(block.program);
|
857
|
-
|
858
|
-
this.opcode('invokeInverse', programGuid);
|
859
|
-
this.opcode('append');
|
860
|
-
},
|
861
|
-
|
862
|
-
hash: function(hash) {
|
863
|
-
var pairs = hash.pairs, pair, val;
|
864
|
-
|
865
|
-
this.opcode('push', '{}');
|
866
|
-
|
867
|
-
for(var i=0, l=pairs.length; i<l; i++) {
|
868
|
-
pair = pairs[i];
|
869
|
-
val = pair[1];
|
870
|
-
|
871
|
-
this.accept(val);
|
872
|
-
this.opcode('assignToHash', pair[0]);
|
873
|
-
}
|
874
|
-
},
|
875
|
-
|
876
|
-
partial: function(partial) {
|
877
|
-
var id = partial.id;
|
878
|
-
this.usePartial = true;
|
879
|
-
|
880
|
-
if(partial.context) {
|
881
|
-
this.ID(partial.context);
|
882
|
-
} else {
|
883
|
-
this.opcode('push', 'context');
|
884
|
-
}
|
885
|
-
|
886
|
-
this.opcode('invokePartial', id.original);
|
887
|
-
this.opcode('append');
|
888
|
-
},
|
889
|
-
|
890
|
-
content: function(content) {
|
891
|
-
this.opcode('appendContent', content.string);
|
892
|
-
},
|
893
|
-
|
894
|
-
mustache: function(mustache) {
|
895
|
-
var params = this.setupStackForMustache(mustache);
|
896
|
-
|
897
|
-
this.opcode('invokeMustache', params.length, mustache.id.original);
|
898
|
-
|
899
|
-
if(mustache.escaped) {
|
900
|
-
this.opcode('appendEscaped');
|
901
|
-
} else {
|
902
|
-
this.opcode('append');
|
903
|
-
}
|
904
|
-
},
|
905
|
-
|
906
|
-
ID: function(id) {
|
907
|
-
this.addDepth(id.depth);
|
908
|
-
|
909
|
-
this.opcode('getContext', id.depth);
|
910
|
-
|
911
|
-
this.opcode('lookupWithHelpers', id.parts[0] || null);
|
912
|
-
|
913
|
-
for(var i=1, l=id.parts.length; i<l; i++) {
|
914
|
-
this.opcode('lookup', id.parts[i]);
|
915
|
-
}
|
916
|
-
},
|
917
|
-
|
918
|
-
STRING: function(string) {
|
919
|
-
this.opcode('pushString', string.string);
|
920
|
-
},
|
921
|
-
|
922
|
-
comment: function() {},
|
923
|
-
|
924
|
-
// HELPERS
|
925
|
-
pushParams: function(params) {
|
926
|
-
var i = params.length, param;
|
927
|
-
|
928
|
-
while(i--) {
|
929
|
-
param = params[i];
|
930
|
-
this[param.type](param);
|
931
|
-
}
|
932
|
-
},
|
933
|
-
|
934
|
-
opcode: function(name, val1, val2) {
|
935
|
-
this.opcodes.push(Compiler.OPCODE_MAP[name]);
|
936
|
-
if(val1 !== undefined) { this.opcodes.push(val1); }
|
937
|
-
if(val2 !== undefined) { this.opcodes.push(val2); }
|
938
|
-
},
|
939
|
-
|
940
|
-
declare: function(name, value) {
|
941
|
-
this.opcodes.push('DECLARE');
|
942
|
-
this.opcodes.push(name);
|
943
|
-
this.opcodes.push(value);
|
944
|
-
},
|
945
|
-
|
946
|
-
addDepth: function(depth) {
|
947
|
-
if(depth === 0) { return; }
|
948
|
-
|
949
|
-
if(!this.depths[depth]) {
|
950
|
-
this.depths[depth] = true;
|
951
|
-
this.depths.list.push(depth);
|
952
|
-
}
|
953
|
-
},
|
954
|
-
|
955
|
-
setupStackForMustache: function(mustache) {
|
956
|
-
var params = mustache.params;
|
957
|
-
|
958
|
-
this.pushParams(params);
|
959
|
-
|
960
|
-
if(mustache.hash) {
|
961
|
-
this.hash(mustache.hash);
|
962
|
-
} else {
|
963
|
-
this.opcode('push', '{}');
|
964
|
-
}
|
965
|
-
|
966
|
-
this.ID(mustache.id);
|
967
|
-
|
968
|
-
return params;
|
969
|
-
}
|
970
|
-
};
|
971
|
-
|
972
|
-
JavaScriptCompiler.prototype = {
|
973
|
-
// PUBLIC API: You can override these methods in a subclass to provide
|
974
|
-
// alternative compiled forms for name lookup and buffering semantics
|
975
|
-
nameLookup: function(parent, name, type) {
|
976
|
-
if(JavaScriptCompiler.RESERVED_WORDS[name]) {
|
977
|
-
return parent + "['" + name + "']";
|
978
|
-
} else {
|
979
|
-
return parent + "." + name;
|
980
|
-
}
|
981
|
-
},
|
982
|
-
|
983
|
-
appendToBuffer: function(string) {
|
984
|
-
return "buffer = buffer + " + string + ";";
|
985
|
-
},
|
986
|
-
|
987
|
-
initializeBuffer: function() {
|
988
|
-
return this.quotedString("");
|
989
|
-
},
|
990
|
-
// END PUBLIC API
|
991
|
-
|
992
|
-
compile: function(environment, data) {
|
993
|
-
this.environment = environment;
|
994
|
-
this.data = data;
|
995
|
-
|
996
|
-
this.preamble();
|
997
|
-
|
998
|
-
this.stackSlot = 0;
|
999
|
-
this.stackVars = [];
|
1000
|
-
this.registers = {list: []};
|
1001
|
-
|
1002
|
-
this.compileChildren(environment, data);
|
1003
|
-
|
1004
|
-
Handlebars.log(Handlebars.logger.DEBUG, environment.disassemble() + "\n\n");
|
1005
|
-
|
1006
|
-
var opcodes = environment.opcodes, opcode, name, declareName, declareVal;
|
1007
|
-
|
1008
|
-
this.i = 0;
|
1009
|
-
|
1010
|
-
for(l=opcodes.length; this.i<l; this.i++) {
|
1011
|
-
opcode = this.nextOpcode(0);
|
1012
|
-
|
1013
|
-
if(opcode[0] === 'DECLARE') {
|
1014
|
-
this.i = this.i + 2;
|
1015
|
-
this[opcode[1]] = opcode[2];
|
1016
|
-
} else {
|
1017
|
-
this.i = this.i + opcode[1].length;
|
1018
|
-
this[opcode[0]].apply(this, opcode[1]);
|
1019
|
-
}
|
1020
|
-
}
|
1021
|
-
|
1022
|
-
return this.createFunction();
|
1023
|
-
},
|
1024
|
-
|
1025
|
-
nextOpcode: function(n) {
|
1026
|
-
var opcodes = this.environment.opcodes, opcode = opcodes[this.i + n], name, val;
|
1027
|
-
var extraParams, codes;
|
1028
|
-
|
1029
|
-
if(opcode === 'DECLARE') {
|
1030
|
-
name = opcodes[this.i + 1];
|
1031
|
-
val = opcodes[this.i + 2];
|
1032
|
-
return ['DECLARE', name, val];
|
1033
|
-
} else {
|
1034
|
-
name = Compiler.DISASSEMBLE_MAP[opcode];
|
1035
|
-
|
1036
|
-
extraParams = Compiler.multiParamSize(opcode);
|
1037
|
-
codes = [];
|
1038
|
-
|
1039
|
-
for(var j=0; j<extraParams; j++) {
|
1040
|
-
codes.push(opcodes[this.i + j + 1 + n]);
|
1041
|
-
}
|
1042
|
-
|
1043
|
-
return [name, codes];
|
1044
|
-
}
|
1045
|
-
},
|
1046
|
-
|
1047
|
-
eat: function(opcode) {
|
1048
|
-
this.i = this.i + opcode.length;
|
1049
|
-
},
|
1050
|
-
|
1051
|
-
preamble: function() {
|
1052
|
-
var out = [];
|
1053
|
-
out.push("var buffer = " + this.initializeBuffer() + ", currentContext = context");
|
1054
|
-
|
1055
|
-
var copies = "helpers = helpers || Handlebars.helpers;";
|
1056
|
-
if(this.environment.usePartial) { copies = copies + " partials = partials || Handlebars.partials;"; }
|
1057
|
-
out.push(copies);
|
1058
|
-
|
1059
|
-
// track the last context pushed into place to allow skipping the
|
1060
|
-
// getContext opcode when it would be a noop
|
1061
|
-
this.lastContext = 0;
|
1062
|
-
this.source = out;
|
1063
|
-
},
|
1064
|
-
|
1065
|
-
createFunction: function() {
|
1066
|
-
var container = {
|
1067
|
-
escapeExpression: Handlebars.Utils.escapeExpression,
|
1068
|
-
invokePartial: Handlebars.VM.invokePartial,
|
1069
|
-
programs: [],
|
1070
|
-
program: function(i, helpers, partials, data) {
|
1071
|
-
var programWrapper = this.programs[i];
|
1072
|
-
if(data) {
|
1073
|
-
return Handlebars.VM.program(this.children[i], helpers, partials, data);
|
1074
|
-
} else if(programWrapper) {
|
1075
|
-
return programWrapper;
|
1076
|
-
} else {
|
1077
|
-
programWrapper = this.programs[i] = Handlebars.VM.program(this.children[i], helpers, partials);
|
1078
|
-
return programWrapper;
|
1079
|
-
}
|
1080
|
-
},
|
1081
|
-
programWithDepth: Handlebars.VM.programWithDepth,
|
1082
|
-
noop: Handlebars.VM.noop
|
1083
|
-
};
|
1084
|
-
var locals = this.stackVars.concat(this.registers.list);
|
1085
|
-
|
1086
|
-
if(locals.length > 0) {
|
1087
|
-
this.source[0] = this.source[0] + ", " + locals.join(", ");
|
1088
|
-
}
|
1089
|
-
|
1090
|
-
this.source[0] = this.source[0] + ";";
|
1091
|
-
|
1092
|
-
this.source.push("return buffer;");
|
1093
|
-
|
1094
|
-
var params = ["Handlebars", "context", "helpers", "partials"];
|
1095
|
-
|
1096
|
-
if(this.data) { params.push("data"); }
|
1097
|
-
|
1098
|
-
for(var i=0, l=this.environment.depths.list.length; i<l; i++) {
|
1099
|
-
params.push("depth" + this.environment.depths.list[i]);
|
1100
|
-
}
|
1101
|
-
|
1102
|
-
|
1103
|
-
if(params.length === 4 && !this.environment.usePartial) { params.pop(); }
|
1104
|
-
|
1105
|
-
params.push(this.source.join("\n"));
|
1106
|
-
|
1107
|
-
var fn = Function.apply(this, params);
|
1108
|
-
fn.displayName = "Handlebars.js";
|
1109
|
-
|
1110
|
-
Handlebars.log(Handlebars.logger.DEBUG, fn.toString() + "\n\n");
|
1111
|
-
|
1112
|
-
container.render = fn;
|
1113
|
-
|
1114
|
-
container.children = this.environment.children;
|
1115
|
-
|
1116
|
-
return function(context, helpers, partials, data, $depth) {
|
1117
|
-
try {
|
1118
|
-
var args = Array.prototype.slice.call(arguments);
|
1119
|
-
args.unshift(Handlebars);
|
1120
|
-
return container.render.apply(container, args);
|
1121
|
-
} catch(e) {
|
1122
|
-
throw e;
|
1123
|
-
}
|
1124
|
-
};
|
1125
|
-
},
|
1126
|
-
|
1127
|
-
appendContent: function(content) {
|
1128
|
-
this.source.push(this.appendToBuffer(this.quotedString(content)));
|
1129
|
-
},
|
1130
|
-
|
1131
|
-
append: function() {
|
1132
|
-
var local = this.popStack();
|
1133
|
-
this.source.push("if(" + local + " || " + local + " === 0) { " + this.appendToBuffer(local) + " }");
|
1134
|
-
},
|
1135
|
-
|
1136
|
-
appendEscaped: function() {
|
1137
|
-
var opcode = this.nextOpcode(1), extra = "";
|
1138
|
-
|
1139
|
-
if(opcode[0] === 'appendContent') {
|
1140
|
-
extra = " + " + this.quotedString(opcode[1][0]);
|
1141
|
-
this.eat(opcode);
|
1142
|
-
}
|
1143
|
-
|
1144
|
-
this.source.push(this.appendToBuffer("this.escapeExpression(" + this.popStack() + ")" + extra));
|
1145
|
-
},
|
1146
|
-
|
1147
|
-
getContext: function(depth) {
|
1148
|
-
if(this.lastContext !== depth) {
|
1149
|
-
this.lastContext = depth;
|
1150
|
-
|
1151
|
-
if(depth === 0) {
|
1152
|
-
this.source.push("currentContext = context;");
|
1153
|
-
} else {
|
1154
|
-
this.source.push("currentContext = depth" + depth + ";");
|
1155
|
-
}
|
1156
|
-
}
|
1157
|
-
},
|
1158
|
-
|
1159
|
-
lookupWithHelpers: function(name) {
|
1160
|
-
if(name) {
|
1161
|
-
var topStack = this.nextStack();
|
1162
|
-
|
1163
|
-
var toPush = "if('" + name + "' in helpers) { " + topStack +
|
1164
|
-
" = " + this.nameLookup('helpers', name, 'helper') +
|
1165
|
-
"; } else { " + topStack + " = " +
|
1166
|
-
this.nameLookup('currentContext', name, 'context') +
|
1167
|
-
"; }";
|
1168
|
-
|
1169
|
-
this.source.push(toPush);
|
1170
|
-
} else {
|
1171
|
-
this.pushStack("currentContext");
|
1172
|
-
}
|
1173
|
-
},
|
1174
|
-
|
1175
|
-
lookup: function(name) {
|
1176
|
-
var topStack = this.topStack();
|
1177
|
-
this.source.push(topStack + " = " + this.nameLookup(topStack, name, 'context') + ";");
|
1178
|
-
},
|
1179
|
-
|
1180
|
-
pushString: function(string) {
|
1181
|
-
this.pushStack(this.quotedString(string));
|
1182
|
-
},
|
1183
|
-
|
1184
|
-
push: function(name) {
|
1185
|
-
this.pushStack(name);
|
1186
|
-
},
|
1187
|
-
|
1188
|
-
invokeMustache: function(paramSize, original) {
|
1189
|
-
this.populateParams(paramSize, this.quotedString(original), "{}", null, function(nextStack, helperMissingString, id) {
|
1190
|
-
this.source.push("else if(" + id + "=== undefined) { " + nextStack + " = helpers.helperMissing.call(" + helperMissingString + "); }");
|
1191
|
-
this.source.push("else { " + nextStack + " = " + id + "; }");
|
1192
|
-
});
|
1193
|
-
},
|
1194
|
-
|
1195
|
-
invokeProgram: function(guid, paramSize) {
|
1196
|
-
var inverse = this.programExpression(this.inverse);
|
1197
|
-
var mainProgram = this.programExpression(guid);
|
1198
|
-
|
1199
|
-
this.populateParams(paramSize, null, mainProgram, inverse, function(nextStack, helperMissingString, id) {
|
1200
|
-
this.source.push("else { " + nextStack + " = helpers.blockHelperMissing.call(" + helperMissingString + "); }");
|
1201
|
-
});
|
1202
|
-
},
|
1203
|
-
|
1204
|
-
populateParams: function(paramSize, helperId, program, inverse, fn) {
|
1205
|
-
var id = this.popStack(), nextStack;
|
1206
|
-
var params = [];
|
1207
|
-
|
1208
|
-
var hash = this.popStack();
|
1209
|
-
|
1210
|
-
for(var i=0; i<paramSize; i++) {
|
1211
|
-
var param = this.popStack();
|
1212
|
-
params.push(param);
|
1213
|
-
}
|
1214
|
-
|
1215
|
-
this.register('tmp1', program);
|
1216
|
-
this.source.push('tmp1.hash = ' + hash + ';');
|
1217
|
-
|
1218
|
-
if(inverse) {
|
1219
|
-
this.source.push('tmp1.fn = tmp1;');
|
1220
|
-
this.source.push('tmp1.inverse = ' + inverse + ';');
|
1221
|
-
}
|
1222
|
-
|
1223
|
-
if(this.data) {
|
1224
|
-
this.source.push('tmp1.data = data;');
|
1225
|
-
}
|
1226
|
-
|
1227
|
-
params.push('tmp1');
|
1228
|
-
|
1229
|
-
// TODO: This is legacy behavior. Deprecate and remove.
|
1230
|
-
if(inverse) {
|
1231
|
-
params.push(inverse);
|
1232
|
-
}
|
1233
|
-
|
1234
|
-
this.populateCall(params, id, helperId || id, fn);
|
1235
|
-
},
|
1236
|
-
|
1237
|
-
populateCall: function(params, id, helperId, fn) {
|
1238
|
-
var paramString = ["context"].concat(params).join(", ");
|
1239
|
-
var helperMissingString = ["context"].concat(helperId).concat(params).join(", ");
|
1240
|
-
|
1241
|
-
nextStack = this.nextStack();
|
1242
|
-
|
1243
|
-
this.source.push("if(typeof " + id + " === 'function') { " + nextStack + " = " + id + ".call(" + paramString + "); }");
|
1244
|
-
fn.call(this, nextStack, helperMissingString, id);
|
1245
|
-
},
|
1246
|
-
|
1247
|
-
invokeInverse: function(guid) {
|
1248
|
-
var program = this.programExpression(guid);
|
1249
|
-
|
1250
|
-
var blockMissingParams = ["context", this.topStack(), "this.noop", program];
|
1251
|
-
this.pushStack("helpers.blockHelperMissing.call(" + blockMissingParams.join(", ") + ")");
|
1252
|
-
},
|
1253
|
-
|
1254
|
-
invokePartial: function(context) {
|
1255
|
-
this.pushStack("this.invokePartial(" + this.nameLookup('partials', context, 'partial') + ", '" + context + "', " + this.popStack() + ", helpers, partials);");
|
1256
|
-
},
|
1257
|
-
|
1258
|
-
assignToHash: function(key) {
|
1259
|
-
var value = this.popStack();
|
1260
|
-
var hash = this.topStack();
|
1261
|
-
|
1262
|
-
this.source.push(hash + "['" + key + "'] = " + value + ";");
|
1263
|
-
},
|
1264
|
-
|
1265
|
-
// HELPERS
|
1266
|
-
|
1267
|
-
compiler: JavaScriptCompiler,
|
1268
|
-
|
1269
|
-
compileChildren: function(environment, data) {
|
1270
|
-
var children = environment.children, child, compiler;
|
1271
|
-
var compiled = [];
|
1272
|
-
|
1273
|
-
for(var i=0, l=children.length; i<l; i++) {
|
1274
|
-
child = children[i];
|
1275
|
-
compiler = new this.compiler();
|
1276
|
-
|
1277
|
-
compiled[i] = compiler.compile(child, data);
|
1278
|
-
}
|
1279
|
-
|
1280
|
-
environment.rawChildren = children;
|
1281
|
-
environment.children = compiled;
|
1282
|
-
},
|
1283
|
-
|
1284
|
-
programExpression: function(guid) {
|
1285
|
-
if(guid == null) { return "this.noop"; }
|
1286
|
-
|
1287
|
-
var programParams = [guid, "helpers", "partials"];
|
1288
|
-
|
1289
|
-
var depths = this.environment.rawChildren[guid].depths.list;
|
1290
|
-
|
1291
|
-
if(this.data) { programParams.push("data"); }
|
1292
|
-
|
1293
|
-
for(var i=0, l = depths.length; i<l; i++) {
|
1294
|
-
depth = depths[i];
|
1295
|
-
|
1296
|
-
if(depth === 1) { programParams.push("context"); }
|
1297
|
-
else { programParams.push("depth" + (depth - 1)); }
|
1298
|
-
}
|
1299
|
-
|
1300
|
-
if(!this.environment.usePartial) {
|
1301
|
-
if(programParams[3]) {
|
1302
|
-
programParams[2] = "null";
|
1303
|
-
} else {
|
1304
|
-
programParams.pop();
|
1305
|
-
}
|
1306
|
-
}
|
1307
|
-
|
1308
|
-
if(depths.length === 0) {
|
1309
|
-
return "this.program(" + programParams.join(", ") + ")";
|
1310
|
-
} else {
|
1311
|
-
programParams[0] = "this.children[" + guid + "]";
|
1312
|
-
return "this.programWithDepth(" + programParams.join(", ") + ")";
|
1313
|
-
}
|
1314
|
-
},
|
1315
|
-
|
1316
|
-
register: function(name, val) {
|
1317
|
-
this.useRegister(name);
|
1318
|
-
this.source.push(name + " = " + val + ";");
|
1319
|
-
},
|
1320
|
-
|
1321
|
-
useRegister: function(name) {
|
1322
|
-
if(!this.registers[name]) {
|
1323
|
-
this.registers[name] = true;
|
1324
|
-
this.registers.list.push(name);
|
1325
|
-
}
|
1326
|
-
},
|
1327
|
-
|
1328
|
-
pushStack: function(item) {
|
1329
|
-
this.source.push(this.nextStack() + " = " + item + ";");
|
1330
|
-
return "stack" + this.stackSlot;
|
1331
|
-
},
|
1332
|
-
|
1333
|
-
nextStack: function() {
|
1334
|
-
this.stackSlot++;
|
1335
|
-
if(this.stackSlot > this.stackVars.length) { this.stackVars.push("stack" + this.stackSlot); }
|
1336
|
-
return "stack" + this.stackSlot;
|
1337
|
-
},
|
1338
|
-
|
1339
|
-
popStack: function() {
|
1340
|
-
return "stack" + this.stackSlot--;
|
1341
|
-
},
|
1342
|
-
|
1343
|
-
topStack: function() {
|
1344
|
-
return "stack" + this.stackSlot;
|
1345
|
-
},
|
1346
|
-
|
1347
|
-
quotedString: function(str) {
|
1348
|
-
return '"' + str
|
1349
|
-
.replace(/\\/, '\\\\')
|
1350
|
-
.replace(/"/g, '\\"')
|
1351
|
-
.replace(/\n/g, '\\n')
|
1352
|
-
.replace(/\r/g, '\\r') + '"';
|
1353
|
-
}
|
1354
|
-
};
|
1355
|
-
|
1356
|
-
var reservedWords = ("break case catch continue default delete do else finally " +
|
1357
|
-
"for function if in instanceof new return switch this throw " +
|
1358
|
-
"try typeof var void while with null true false").split(" ");
|
1359
|
-
|
1360
|
-
compilerWords = JavaScriptCompiler.RESERVED_WORDS = {};
|
1361
|
-
|
1362
|
-
for(var i=0, l=reservedWords.length; i<l; i++) {
|
1363
|
-
compilerWords[reservedWords[i]] = true;
|
1364
|
-
}
|
1365
|
-
|
1366
|
-
})(Handlebars.Compiler, Handlebars.JavaScriptCompiler);
|
1367
|
-
|
1368
|
-
Handlebars.VM = {
|
1369
|
-
programWithDepth: function(fn) {
|
1370
|
-
var args = Array.prototype.slice.call(arguments, 1);
|
1371
|
-
return function(context, helpers, partials, data) {
|
1372
|
-
args[0] = helpers || args[0];
|
1373
|
-
args[1] = partials || args[1];
|
1374
|
-
args[2] = data || args[2];
|
1375
|
-
return fn.apply(this, [context].concat(args));
|
1376
|
-
};
|
1377
|
-
},
|
1378
|
-
program: function(fn, helpers, partials, data) {
|
1379
|
-
return function(context, h2, p2, d2) {
|
1380
|
-
return fn(context, h2 || helpers, p2 || partials, d2 || data);
|
1381
|
-
};
|
1382
|
-
},
|
1383
|
-
noop: function() { return ""; },
|
1384
|
-
compile: function(string, data) {
|
1385
|
-
var ast = Handlebars.parse(string);
|
1386
|
-
var environment = new Handlebars.Compiler().compile(ast);
|
1387
|
-
return new Handlebars.JavaScriptCompiler().compile(environment, data);
|
1388
|
-
},
|
1389
|
-
invokePartial: function(partial, name, context, helpers, partials) {
|
1390
|
-
if(partial === undefined) {
|
1391
|
-
throw new Handlebars.Exception("The partial " + name + " could not be found");
|
1392
|
-
} else if(partial instanceof Function) {
|
1393
|
-
return partial(context, helpers, partials);
|
1394
|
-
} else {
|
1395
|
-
partials[name] = Handlebars.VM.compile(partial);
|
1396
|
-
return partials[name](context, helpers, partials);
|
1397
|
-
}
|
1398
|
-
}
|
1399
|
-
};
|
1400
|
-
|
1401
|
-
Handlebars.compile = Handlebars.VM.compile;
|