picolena 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +11 -4
- data/Manifest.txt +1 -0
- data/README.txt +2 -2
- data/bin/picolena +1 -1
- data/config/hoe.rb +10 -10
- data/lib/picolena/USAGE +1 -1
- data/lib/picolena/config/basic.rb +11 -11
- data/lib/picolena/picolena_generator.rb +15 -14
- data/lib/picolena/templates/app/controllers/application.rb +5 -5
- data/lib/picolena/templates/app/controllers/documents_controller.rb +17 -9
- data/lib/picolena/templates/app/helpers/documents_helper.rb +15 -14
- data/lib/picolena/templates/app/models/document.rb +28 -37
- data/lib/picolena/templates/app/models/finder.rb +12 -37
- data/lib/picolena/templates/app/models/indexer.rb +58 -37
- data/lib/picolena/templates/app/models/plain_text_extractor.rb +16 -16
- data/lib/picolena/templates/app/models/query.rb +5 -5
- data/lib/picolena/templates/app/views/documents/show.html.haml +3 -3
- data/lib/picolena/templates/app/views/layouts/application.html.haml +2 -2
- data/lib/picolena/templates/config/environment.rb +1 -1
- data/lib/picolena/templates/config/initializers/002_load_indexed_dirs.rb +8 -8
- data/lib/picolena/templates/config/initializers/003_load_white_list_IPs.rb +8 -8
- data/lib/picolena/templates/config/initializers/005_load_custom_title_and_names_and_links.rb +5 -5
- data/lib/picolena/templates/config/initializers/006_load_icons.rb +9 -7
- data/lib/picolena/templates/lang/ui/es.yml +1 -1
- data/lib/picolena/templates/lib/core_exts.rb +7 -7
- data/lib/picolena/templates/lib/plain_text_extractor_DSL.rb +10 -10
- data/lib/picolena/templates/lib/plain_text_extractors/ms.excel.rb +1 -1
- data/lib/picolena/templates/lib/plain_text_extractors/plain_text.rb +2 -2
- data/lib/picolena/templates/lib/tasks/index.rake +8 -3
- data/lib/picolena/templates/lib/tasks/install_dependencies.rake +2 -2
- data/lib/picolena/templates/lib/tasks/log.rake +1 -1
- data/lib/picolena/templates/public/.htaccess +3 -3
- data/lib/picolena/templates/public/images/flags/sv.png +0 -0
- data/lib/picolena/templates/public/stylesheets/style.css +2 -2
- data/lib/picolena/templates/script/spec_server +1 -1
- data/lib/picolena/templates/spec/controllers/application_controller_spec.rb +2 -2
- data/lib/picolena/templates/spec/controllers/documents_controller_spec.rb +17 -17
- data/lib/picolena/templates/spec/helpers/application_helper_spec.rb +2 -2
- data/lib/picolena/templates/spec/helpers/documents_helper_spec.rb +3 -3
- data/lib/picolena/templates/spec/models/basic_finder_spec.rb +14 -14
- data/lib/picolena/templates/spec/models/document_spec.rb +7 -15
- data/lib/picolena/templates/spec/models/finder_spec.rb +45 -38
- data/lib/picolena/templates/spec/models/host_indexing_system_spec.rb +5 -5
- data/lib/picolena/templates/spec/models/index_directories_spec.rb +2 -2
- data/lib/picolena/templates/spec/models/plain_text_extractor_spec.rb +6 -6
- data/lib/picolena/templates/spec/models/query_spec.rb +7 -7
- data/lib/picolena/templates/spec/rcov.opts +1 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/basic/myfirstjavaprog.java +1 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/basic/queens.for +1 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/lang/hugo +74 -74
- data/lib/picolena/templates/spec/test_dirs/indexed/lang/lorca +56 -56
- data/lib/picolena/templates/spec/test_dirs/indexed/others/7.html +4 -4
- data/lib/picolena/templates/spec/test_dirs/indexed/others/ccmatrix1.cpp +6 -6
- data/lib/picolena/templates/spec/test_dirs/indexed/others/lemonde.htm +326 -326
- data/lib/picolena/templates/spec/test_dirs/indexed/others/nested/ReadMe.rtf +62 -62
- data/lib/picolena/templates/spec/test_dirs/indexed/others/xor.vee +0 -1
- data/lib/picolena/templates/spec/test_dirs/indexed/others/zafh.net.html +1 -1
- data/lib/picolena/version.rb +1 -1
- data/lib/rubigen_ext.rb +1 -1
- data/rails_plugins/globalite/CHANGELOG +1 -1
- data/rails_plugins/globalite/README +19 -19
- data/rails_plugins/globalite/lang/rails/de-DE.yml +6 -6
- data/rails_plugins/globalite/lang/rails/en-UK.yml +10 -10
- data/rails_plugins/globalite/lang/rails/en-US.yml +10 -10
- data/rails_plugins/globalite/lang/rails/es-ES.yml +11 -11
- data/rails_plugins/globalite/lang/rails/fr-FR.yml +10 -10
- data/rails_plugins/globalite/lang/rails/it.yml +10 -10
- data/rails_plugins/globalite/lang/rails/pt-BR.yml +6 -6
- data/rails_plugins/globalite/lang/rails/pt-PT.yml +6 -6
- data/rails_plugins/globalite/lib/globalite/l10n.rb +25 -25
- data/rails_plugins/globalite/lib/globalite/locale.rb +9 -9
- data/rails_plugins/globalite/lib/rails/core_ext.rb +4 -4
- data/rails_plugins/globalite/lib/rails/localization.rb +3 -3
- data/rails_plugins/globalite/lib/rails/localized_action_view.rb +17 -17
- data/rails_plugins/globalite/lib/rails/localized_active_record.rb +4 -4
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers/DateHelper.html +19 -19
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers/FormOptionsHelper.html +9 -9
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers/NumberHelper.html +8 -8
- data/rails_plugins/globalite/rdoc/classes/ActionView/Helpers.html +5 -5
- data/rails_plugins/globalite/rdoc/classes/ActionView.html +5 -5
- data/rails_plugins/globalite/rdoc/classes/ActiveRecord/Errors.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/ActiveRecord.html +5 -5
- data/rails_plugins/globalite/rdoc/classes/Array.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/Date.html +8 -8
- data/rails_plugins/globalite/rdoc/classes/Globalite/L10n.html +49 -49
- data/rails_plugins/globalite/rdoc/classes/Globalite.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/Kernel.html +6 -6
- data/rails_plugins/globalite/rdoc/classes/Locale.html +11 -11
- data/rails_plugins/globalite/rdoc/classes/Time.html +8 -8
- data/rails_plugins/globalite/rdoc/files/README.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/globalite/l10n_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/globalite/locale_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/globalite_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/core_ext_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/localization_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/localized_action_view_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/files/lib/rails/localized_active_record_rb.html +5 -5
- data/rails_plugins/globalite/rdoc/fr_class_index.html +1 -1
- data/rails_plugins/globalite/rdoc/fr_file_index.html +1 -1
- data/rails_plugins/globalite/rdoc/fr_method_index.html +1 -1
- data/rails_plugins/globalite/rdoc/index.html +1 -1
- data/rails_plugins/globalite/spec/core_localization_spec.rb +18 -18
- data/rails_plugins/globalite/spec/l10n_spec.rb +25 -25
- data/rails_plugins/globalite/tasks/globalite_tasks.rake +6 -6
- data/rails_plugins/rspec/CHANGES +16 -16
- data/rails_plugins/rspec/README +2 -2
- data/rails_plugins/rspec/Rakefile +1 -1
- data/rails_plugins/rspec/UPGRADE +1 -1
- data/rails_plugins/rspec/autotest/discover.rb +1 -1
- data/rails_plugins/rspec/examples/pure/autogenerated_docstrings_example.rb +5 -5
- data/rails_plugins/rspec/examples/pure/before_and_after_example.rb +2 -2
- data/rails_plugins/rspec/examples/pure/behave_as_example.rb +5 -5
- data/rails_plugins/rspec/examples/pure/custom_expectation_matchers.rb +7 -7
- data/rails_plugins/rspec/examples/pure/file_accessor.rb +1 -1
- data/rails_plugins/rspec/examples/pure/file_accessor_spec.rb +2 -2
- data/rails_plugins/rspec/examples/pure/helper_method_example.rb +1 -1
- data/rails_plugins/rspec/examples/pure/legacy_spec.rb +2 -2
- data/rails_plugins/rspec/examples/pure/predicate_example.rb +2 -2
- data/rails_plugins/rspec/examples/pure/shared_example_group_example.rb +11 -11
- data/rails_plugins/rspec/examples/pure/shared_stack_examples.rb +4 -4
- data/rails_plugins/rspec/examples/pure/stack.rb +6 -6
- data/rails_plugins/rspec/examples/pure/stack_spec.rb +7 -7
- data/rails_plugins/rspec/examples/pure/stack_spec_with_nested_example_groups.rb +10 -10
- data/rails_plugins/rspec/examples/pure/stubbing_example.rb +4 -4
- data/rails_plugins/rspec/examples/stories/adder.rb +2 -2
- data/rails_plugins/rspec/examples/stories/addition +8 -8
- data/rails_plugins/rspec/examples/stories/calculator.rb +5 -5
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb +7 -7
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb +13 -13
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb +5 -5
- data/rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb +2 -2
- data/rails_plugins/rspec/examples/stories/game-of-life/life/game.rb +3 -3
- data/rails_plugins/rspec/examples/stories/game-of-life/life/grid.rb +10 -10
- data/rails_plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb +5 -5
- data/rails_plugins/rspec/failing_examples/failure_in_setup.rb +3 -3
- data/rails_plugins/rspec/failing_examples/failure_in_teardown.rb +3 -3
- data/rails_plugins/rspec/failing_examples/mocking_example.rb +1 -1
- data/rails_plugins/rspec/failing_examples/raising_example.rb +11 -11
- data/rails_plugins/rspec/failing_examples/team_spec.rb +5 -5
- data/rails_plugins/rspec/lib/autotest/rspec.rb +5 -5
- data/rails_plugins/rspec/lib/spec/example/configuration.rb +4 -4
- data/rails_plugins/rspec/lib/spec/example/example_group_factory.rb +3 -3
- data/rails_plugins/rspec/lib/spec/example/example_group_methods.rb +1 -1
- data/rails_plugins/rspec/lib/spec/example/example_matcher.rb +2 -2
- data/rails_plugins/rspec/lib/spec/example/example_methods.rb +4 -4
- data/rails_plugins/rspec/lib/spec/example/pending.rb +1 -1
- data/rails_plugins/rspec/lib/spec/expectations/differs/default.rb +5 -5
- data/rails_plugins/rspec/lib/spec/expectations/errors.rb +1 -1
- data/rails_plugins/rspec/lib/spec/expectations/handler.rb +5 -5
- data/rails_plugins/rspec/lib/spec/expectations.rb +1 -1
- data/rails_plugins/rspec/lib/spec/extensions/main.rb +8 -8
- data/rails_plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb +2 -2
- data/rails_plugins/rspec/lib/spec/matchers/be.rb +18 -18
- data/rails_plugins/rspec/lib/spec/matchers/be_close.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/change.rb +20 -20
- data/rails_plugins/rspec/lib/spec/matchers/eql.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/equal.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/has.rb +8 -8
- data/rails_plugins/rspec/lib/spec/matchers/have.rb +9 -9
- data/rails_plugins/rspec/lib/spec/matchers/include.rb +7 -7
- data/rails_plugins/rspec/lib/spec/matchers/match.rb +6 -6
- data/rails_plugins/rspec/lib/spec/matchers/operator_matcher.rb +1 -1
- data/rails_plugins/rspec/lib/spec/matchers/raise_error.rb +6 -6
- data/rails_plugins/rspec/lib/spec/matchers/respond_to.rb +7 -7
- data/rails_plugins/rspec/lib/spec/matchers/satisfy.rb +4 -4
- data/rails_plugins/rspec/lib/spec/matchers/simple_matcher.rb +3 -3
- data/rails_plugins/rspec/lib/spec/matchers/throw_symbol.rb +8 -8
- data/rails_plugins/rspec/lib/spec/matchers.rb +2 -2
- data/rails_plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb +3 -3
- data/rails_plugins/rspec/lib/spec/mocks/argument_expectation.rb +32 -32
- data/rails_plugins/rspec/lib/spec/mocks/error_generator.rb +13 -13
- data/rails_plugins/rspec/lib/spec/mocks/errors.rb +1 -1
- data/rails_plugins/rspec/lib/spec/mocks/message_expectation.rb +38 -38
- data/rails_plugins/rspec/lib/spec/mocks/methods.rb +3 -3
- data/rails_plugins/rspec/lib/spec/mocks/mock.rb +5 -5
- data/rails_plugins/rspec/lib/spec/mocks/order_group.rb +5 -5
- data/rails_plugins/rspec/lib/spec/mocks/proxy.rb +4 -4
- data/rails_plugins/rspec/lib/spec/mocks/space.rb +3 -3
- data/rails_plugins/rspec/lib/spec/mocks/spec_methods.rb +1 -1
- data/rails_plugins/rspec/lib/spec/mocks.rb +13 -13
- data/rails_plugins/rspec/lib/spec/rake/spectask.rb +4 -4
- data/rails_plugins/rspec/lib/spec/rake/verify_rcov.rb +9 -9
- data/rails_plugins/rspec/lib/spec/runner/backtrace_tweaker.rb +2 -2
- data/rails_plugins/rspec/lib/spec/runner/formatter/base_formatter.rb +7 -7
- data/rails_plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb +13 -13
- data/rails_plugins/rspec/lib/spec/runner/formatter/failing_examples_formatter.rb +1 -1
- data/rails_plugins/rspec/lib/spec/runner/formatter/html_formatter.rb +8 -8
- data/rails_plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb +7 -7
- data/rails_plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb +2 -2
- data/rails_plugins/rspec/lib/spec/runner/formatter/snippet_extractor.rb +5 -5
- data/rails_plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb +4 -4
- data/rails_plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +6 -6
- data/rails_plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +12 -12
- data/rails_plugins/rspec/lib/spec/runner/heckle_runner.rb +6 -6
- data/rails_plugins/rspec/lib/spec/runner/option_parser.rb +5 -5
- data/rails_plugins/rspec/lib/spec/runner/options.rb +8 -8
- data/rails_plugins/rspec/lib/spec/runner/reporter.rb +14 -14
- data/rails_plugins/rspec/lib/spec/runner.rb +41 -41
- data/rails_plugins/rspec/lib/spec/story/extensions/main.rb +6 -6
- data/rails_plugins/rspec/lib/spec/story/extensions/regexp.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/extensions/string.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/given_scenario.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb +6 -6
- data/rails_plugins/rspec/lib/spec/story/runner/scenario_collector.rb +2 -2
- data/rails_plugins/rspec/lib/spec/story/runner/scenario_runner.rb +5 -5
- data/rails_plugins/rspec/lib/spec/story/runner/story_mediator.rb +20 -20
- data/rails_plugins/rspec/lib/spec/story/runner/story_parser.rb +29 -29
- data/rails_plugins/rspec/lib/spec/story/runner/story_runner.rb +8 -8
- data/rails_plugins/rspec/lib/spec/story/runner.rb +7 -7
- data/rails_plugins/rspec/lib/spec/story/scenario.rb +1 -1
- data/rails_plugins/rspec/lib/spec/story/step.rb +5 -5
- data/rails_plugins/rspec/lib/spec/story/step_group.rb +12 -12
- data/rails_plugins/rspec/lib/spec/story/step_mother.rb +6 -6
- data/rails_plugins/rspec/lib/spec/story/story.rb +5 -5
- data/rails_plugins/rspec/lib/spec/story/world.rb +16 -16
- data/rails_plugins/rspec/lib/spec/translator.rb +21 -21
- data/rails_plugins/rspec/lib/spec/version.rb +2 -2
- data/rails_plugins/rspec/lib/spec.rb +1 -1
- data/rails_plugins/rspec/pre_commit/lib/pre_commit/pre_commit.rb +1 -1
- data/rails_plugins/rspec/pre_commit/lib/pre_commit/rspec.rb +6 -6
- data/rails_plugins/rspec/pre_commit/lib/pre_commit/rspec_on_rails.rb +6 -6
- data/rails_plugins/rspec/pre_commit/spec/pre_commit/pre_commit_spec.rb +1 -1
- data/rails_plugins/rspec/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +1 -1
- data/rails_plugins/rspec/report.html +3 -3
- data/rails_plugins/rspec/spec/autotest/discover_spec.rb +2 -2
- data/rails_plugins/rspec/spec/autotest/rspec_spec.rb +30 -30
- data/rails_plugins/rspec/spec/autotest_matchers.rb +7 -7
- data/rails_plugins/rspec/spec/spec/example/configuration_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/example/example_group_factory_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/example/example_group_methods_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/example/example_group_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/example/example_matcher_spec.rb +10 -10
- data/rails_plugins/rspec/spec/spec/example/example_runner_spec.rb +29 -29
- data/rails_plugins/rspec/spec/spec/example/example_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/example/nested_example_group_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/example/pending_module_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/example/predicate_matcher_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/example/shared_example_group_spec.rb +4 -4
- data/rails_plugins/rspec/spec/spec/expectations/extensions/object_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/expectations/fail_with_spec.rb +8 -8
- data/rails_plugins/rspec/spec/spec/extensions/main_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb +2 -2
- data/rails_plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/matchers/be_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/matchers/change_spec.rb +14 -14
- data/rails_plugins/rspec/spec/spec/matchers/description_generation_spec.rb +25 -25
- data/rails_plugins/rspec/spec/spec/matchers/exist_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/matchers/handler_spec.rb +16 -16
- data/rails_plugins/rspec/spec/spec/matchers/have_spec.rb +13 -13
- data/rails_plugins/rspec/spec/spec/matchers/match_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/matchers/matcher_methods_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb +17 -17
- data/rails_plugins/rspec/spec/spec/matchers/raise_error_spec.rb +20 -20
- data/rails_plugins/rspec/spec/spec/matchers/respond_to_spec.rb +10 -10
- data/rails_plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/matchers/throw_symbol_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_10263.rb +3 -3
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb +4 -4
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_15719_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/bug_report_8302_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/mocks/mock_ordering_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/mocks/mock_space_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/mock_spec.rb +56 -56
- data/rails_plugins/rspec/spec/spec/mocks/multiple_return_value_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/mocks/once_counts_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/options_hash_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/mocks/partial_mock_spec.rb +16 -16
- data/rails_plugins/rspec/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +10 -10
- data/rails_plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +13 -13
- data/rails_plugins/rspec/spec/spec/mocks/stub_spec.rb +7 -7
- data/rails_plugins/rspec/spec/spec/mocks/twice_counts_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/package/bin_spec_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/class_and_argument_parser_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/command_line_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/drb_command_line_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/execution_context_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.4.html +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +2 -2
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5.html +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html +3 -3
- data/rails_plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/profile_formatter_spec.rb +9 -9
- data/rails_plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +4 -4
- data/rails_plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +5 -5
- data/rails_plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +13 -13
- data/rails_plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +2 -2
- data/rails_plugins/rspec/spec/spec/runner/heckle_runner_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/runner/option_parser_spec.rb +9 -9
- data/rails_plugins/rspec/spec/spec/runner/options_spec.rb +13 -13
- data/rails_plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +1 -1
- data/rails_plugins/rspec/spec/spec/spec_classes.rb +8 -8
- data/rails_plugins/rspec/spec/spec/story/builders.rb +7 -7
- data/rails_plugins/rspec/spec/spec/story/extensions/main_spec.rb +6 -6
- data/rails_plugins/rspec/spec/spec/story/given_scenario_spec.rb +3 -3
- data/rails_plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/story/runner/scenario_collector_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb +21 -21
- data/rails_plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb +22 -22
- data/rails_plugins/rspec/spec/spec/story/runner/story_parser_spec.rb +55 -55
- data/rails_plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +44 -44
- data/rails_plugins/rspec/spec/spec/story/runner_spec.rb +18 -18
- data/rails_plugins/rspec/spec/spec/story/scenario_spec.rb +2 -2
- data/rails_plugins/rspec/spec/spec/story/step_group_spec.rb +20 -20
- data/rails_plugins/rspec/spec/spec/story/step_mother_spec.rb +14 -14
- data/rails_plugins/rspec/spec/spec/story/step_spec.rb +33 -33
- data/rails_plugins/rspec/spec/spec/story/story_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec/translator_spec.rb +12 -12
- data/rails_plugins/rspec/spec/spec_helper.rb +5 -5
- data/rails_plugins/rspec/stories/resources/helpers/story_helper.rb +1 -1
- data/rails_plugins/rspec/stories/resources/steps/running_rspec.rb +4 -4
- data/rails_plugins/rspec/stories/resources/test/spec_and_test_together.rb +2 -2
- data/rails_plugins/rspec/stories/resources/test/test_case_with_should_methods.rb +1 -1
- data/rails_plugins/rspec/story_server/prototype/javascripts/builder.js +14 -14
- data/rails_plugins/rspec/story_server/prototype/javascripts/controls.js +61 -61
- data/rails_plugins/rspec/story_server/prototype/javascripts/dragdrop.js +144 -144
- data/rails_plugins/rspec/story_server/prototype/javascripts/effects.js +127 -127
- data/rails_plugins/rspec/story_server/prototype/javascripts/rspec.js +15 -15
- data/rails_plugins/rspec/story_server/prototype/javascripts/scriptaculous.js +7 -7
- data/rails_plugins/rspec/story_server/prototype/javascripts/slider.js +37 -37
- data/rails_plugins/rspec/story_server/prototype/javascripts/sound.js +4 -4
- data/rails_plugins/rspec/story_server/prototype/javascripts/unittest.js +66 -66
- data/rails_plugins/rspec/story_server/prototype/stories.html +9 -9
- data/rails_plugins/rspec_on_rails/MIT-LICENSE +11 -11
- data/rails_plugins/rspec_on_rails/generators/rspec/templates/rcov.opts +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec/templates/script/spec_server +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_controller/USAGE +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_controller/templates/helper_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_controller/templates/view_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +12 -12
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +35 -35
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/helper_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/index_erb_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/new_erb_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/routing_spec.rb +11 -11
- data/rails_plugins/rspec_on_rails/generators/rspec_scaffold/templates/show_erb_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/autotest/rails_rspec.rb +3 -3
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/controller_example_group.rb +4 -4
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/render_observer.rb +4 -4
- data/rails_plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/base.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/extensions/spec/matchers/have.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select.rb +10 -10
- data/rails_plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb +6 -6
- data/rails_plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb +7 -7
- data/rails_plugins/rspec_on_rails/lib/spec/rails/story_adapter.rb +1 -1
- data/rails_plugins/rspec_on_rails/lib/spec/rails.rb +8 -8
- data/rails_plugins/rspec_on_rails/spec/rails/autotest/mappings_spec.rb +6 -6
- data/rails_plugins/rspec_on_rails/spec/rails/example/controller_isolation_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/example/controller_spec_spec.rb +22 -22
- data/rails_plugins/rspec_on_rails/spec/rails/example/helper_spec_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/example/ivar_proxy_spec.rb +3 -3
- data/rails_plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/spec/rails/example/view_spec_spec.rb +8 -8
- data/rails_plugins/rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb +7 -7
- data/rails_plugins/rspec_on_rails/spec/rails/extensions/active_record_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/assert_select_spec.rb +37 -37
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/description_generation_spec.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/have_text_spec.rb +4 -4
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb +26 -26
- data/rails_plugins/rspec_on_rails/spec/rails/matchers/render_spec.rb +18 -18
- data/rails_plugins/rspec_on_rails/spec/rails/mocks/mock_model_spec.rb +2 -2
- data/rails_plugins/rspec_on_rails/spec/spec_helper.rb +1 -1
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb +9 -9
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/redirect_spec_controller.rb +7 -7
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb +5 -5
- data/rails_plugins/rspec_on_rails/spec_resources/controllers/rjs_spec_controller.rb +10 -10
- data/rails_plugins/rspec_on_rails/spec_resources/helpers/explicit_helper.rb +1 -1
- data/rails_plugins/rspec_on_rails/stories/transactions_should_rollback.rb +1 -1
- data/rails_plugins/rspec_on_rails/tasks/rspec.rake +4 -4
- data/script/txt2html +1 -1
- data/setup.rb +4 -4
- data/tasks/hack.rake +3 -3
- data/website/index.html +2 -2
- data/website/index.txt +1 -1
- data/website/index_devjavu +3 -3
- data/website/javascripts/rounded_corners_lite.inc.js +1 -1
- data/website/stylesheets/screen.css +2 -2
- data.tar.gz.sig +0 -0
- metadata +2 -1
- metadata.gz.sig +2 -1
@@ -5,46 +5,46 @@
|
|
5
5
|
// Justin Palmer (http://encytemedia.com/)
|
6
6
|
// Mark Pilgrim (http://diveintomark.org/)
|
7
7
|
// Martin Bialasinki
|
8
|
-
//
|
8
|
+
//
|
9
9
|
// script.aculo.us is freely distributable under the terms of an MIT-style license.
|
10
|
-
// For details, see the script.aculo.us web site: http://script.aculo.us/
|
10
|
+
// For details, see the script.aculo.us web site: http://script.aculo.us/
|
11
11
|
|
12
|
-
// converts rgb() and #xxx to #xxxxxx format,
|
13
|
-
// returns self (or first argument) if not convertable
|
14
|
-
String.prototype.parseColor = function() {
|
12
|
+
// converts rgb() and #xxx to #xxxxxx format,
|
13
|
+
// returns self (or first argument) if not convertable
|
14
|
+
String.prototype.parseColor = function() {
|
15
15
|
var color = '#';
|
16
|
-
if (this.slice(0,4) == 'rgb(') {
|
17
|
-
var cols = this.slice(4,this.length-1).split(',');
|
18
|
-
var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);
|
19
|
-
} else {
|
20
|
-
if (this.slice(0,1) == '#') {
|
21
|
-
if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();
|
22
|
-
if (this.length==7) color = this.toLowerCase();
|
23
|
-
}
|
24
|
-
}
|
25
|
-
return (color.length==7 ? color : (arguments[0] || this));
|
16
|
+
if (this.slice(0,4) == 'rgb(') {
|
17
|
+
var cols = this.slice(4,this.length-1).split(',');
|
18
|
+
var i=0; do { color += parseInt(cols[i]).toColorPart() } while (++i<3);
|
19
|
+
} else {
|
20
|
+
if (this.slice(0,1) == '#') {
|
21
|
+
if (this.length==4) for(var i=1;i<4;i++) color += (this.charAt(i) + this.charAt(i)).toLowerCase();
|
22
|
+
if (this.length==7) color = this.toLowerCase();
|
23
|
+
}
|
24
|
+
}
|
25
|
+
return (color.length==7 ? color : (arguments[0] || this));
|
26
26
|
};
|
27
27
|
|
28
28
|
/*--------------------------------------------------------------------------*/
|
29
29
|
|
30
|
-
Element.collectTextNodes = function(element) {
|
30
|
+
Element.collectTextNodes = function(element) {
|
31
31
|
return $A($(element).childNodes).collect( function(node) {
|
32
|
-
return (node.nodeType==3 ? node.nodeValue :
|
32
|
+
return (node.nodeType==3 ? node.nodeValue :
|
33
33
|
(node.hasChildNodes() ? Element.collectTextNodes(node) : ''));
|
34
34
|
}).flatten().join('');
|
35
35
|
};
|
36
36
|
|
37
|
-
Element.collectTextNodesIgnoreClass = function(element, className) {
|
37
|
+
Element.collectTextNodesIgnoreClass = function(element, className) {
|
38
38
|
return $A($(element).childNodes).collect( function(node) {
|
39
|
-
return (node.nodeType==3 ? node.nodeValue :
|
40
|
-
((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
|
39
|
+
return (node.nodeType==3 ? node.nodeValue :
|
40
|
+
((node.hasChildNodes() && !Element.hasClassName(node,className)) ?
|
41
41
|
Element.collectTextNodesIgnoreClass(node, className) : ''));
|
42
42
|
}).flatten().join('');
|
43
43
|
};
|
44
44
|
|
45
45
|
Element.setContentZoom = function(element, percent) {
|
46
|
-
element = $(element);
|
47
|
-
element.setStyle({fontSize: (percent/100) + 'em'});
|
46
|
+
element = $(element);
|
47
|
+
element.setStyle({fontSize: (percent/100) + 'em'});
|
48
48
|
if (Prototype.Browser.WebKit) window.scrollBy(0,0);
|
49
49
|
return element;
|
50
50
|
};
|
@@ -84,16 +84,16 @@ var Effect = {
|
|
84
84
|
wobble: function(pos) {
|
85
85
|
return (-Math.cos(pos*Math.PI*(9*pos))/2) + 0.5;
|
86
86
|
},
|
87
|
-
pulse: function(pos, pulses) {
|
88
|
-
pulses = pulses || 5;
|
87
|
+
pulse: function(pos, pulses) {
|
88
|
+
pulses = pulses || 5;
|
89
89
|
return (
|
90
|
-
((pos % (1/pulses)) * pulses).round() == 0 ?
|
91
|
-
((pos * pulses * 2) - (pos * pulses * 2).floor()) :
|
90
|
+
((pos % (1/pulses)) * pulses).round() == 0 ?
|
91
|
+
((pos * pulses * 2) - (pos * pulses * 2).floor()) :
|
92
92
|
1 - ((pos * pulses * 2) - (pos * pulses * 2).floor())
|
93
93
|
);
|
94
94
|
},
|
95
|
-
spring: function(pos) {
|
96
|
-
return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6));
|
95
|
+
spring: function(pos) {
|
96
|
+
return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6));
|
97
97
|
},
|
98
98
|
none: function(pos) {
|
99
99
|
return 0;
|
@@ -114,14 +114,14 @@ var Effect = {
|
|
114
114
|
tagifyText: function(element) {
|
115
115
|
var tagifyStyle = 'position:relative';
|
116
116
|
if (Prototype.Browser.IE) tagifyStyle += ';zoom:1';
|
117
|
-
|
117
|
+
|
118
118
|
element = $(element);
|
119
119
|
$A(element.childNodes).each( function(child) {
|
120
120
|
if (child.nodeType==3) {
|
121
121
|
child.nodeValue.toArray().each( function(character) {
|
122
122
|
element.insertBefore(
|
123
123
|
new Element('span', {style: tagifyStyle}).update(
|
124
|
-
character == ' ' ? String.fromCharCode(160) : character),
|
124
|
+
character == ' ' ? String.fromCharCode(160) : character),
|
125
125
|
child);
|
126
126
|
});
|
127
127
|
Element.remove(child);
|
@@ -130,13 +130,13 @@ var Effect = {
|
|
130
130
|
},
|
131
131
|
multiple: function(element, effect) {
|
132
132
|
var elements;
|
133
|
-
if (((typeof element == 'object') ||
|
134
|
-
Object.isFunction(element)) &&
|
133
|
+
if (((typeof element == 'object') ||
|
134
|
+
Object.isFunction(element)) &&
|
135
135
|
(element.length))
|
136
136
|
elements = element;
|
137
137
|
else
|
138
138
|
elements = $(element).childNodes;
|
139
|
-
|
139
|
+
|
140
140
|
var options = Object.extend({
|
141
141
|
speed: 0.1,
|
142
142
|
delay: 0.0
|
@@ -158,7 +158,7 @@ var Effect = {
|
|
158
158
|
var options = Object.extend({
|
159
159
|
queue: { position:'end', scope:(element.id || 'global'), limit: 1 }
|
160
160
|
}, arguments[2] || { });
|
161
|
-
Effect[element.visible() ?
|
161
|
+
Effect[element.visible() ?
|
162
162
|
Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options);
|
163
163
|
}
|
164
164
|
};
|
@@ -170,20 +170,20 @@ Effect.DefaultOptions.transition = Effect.Transitions.sinoidal;
|
|
170
170
|
Effect.ScopedQueue = Class.create(Enumerable, {
|
171
171
|
initialize: function() {
|
172
172
|
this.effects = [];
|
173
|
-
this.interval = null;
|
173
|
+
this.interval = null;
|
174
174
|
},
|
175
175
|
_each: function(iterator) {
|
176
176
|
this.effects._each(iterator);
|
177
177
|
},
|
178
178
|
add: function(effect) {
|
179
179
|
var timestamp = new Date().getTime();
|
180
|
-
|
181
|
-
var position = Object.isString(effect.options.queue) ?
|
180
|
+
|
181
|
+
var position = Object.isString(effect.options.queue) ?
|
182
182
|
effect.options.queue : effect.options.queue.position;
|
183
|
-
|
183
|
+
|
184
184
|
switch(position) {
|
185
185
|
case 'front':
|
186
|
-
// move unstarted effects after this effect
|
186
|
+
// move unstarted effects after this effect
|
187
187
|
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) {
|
188
188
|
e.startOn += effect.finishOn;
|
189
189
|
e.finishOn += effect.finishOn;
|
@@ -197,13 +197,13 @@ Effect.ScopedQueue = Class.create(Enumerable, {
|
|
197
197
|
timestamp = this.effects.pluck('finishOn').max() || timestamp;
|
198
198
|
break;
|
199
199
|
}
|
200
|
-
|
200
|
+
|
201
201
|
effect.startOn += timestamp;
|
202
202
|
effect.finishOn += timestamp;
|
203
203
|
|
204
204
|
if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit))
|
205
205
|
this.effects.push(effect);
|
206
|
-
|
206
|
+
|
207
207
|
if (!this.interval)
|
208
208
|
this.interval = setInterval(this.loop.bind(this), 15);
|
209
209
|
},
|
@@ -216,7 +216,7 @@ Effect.ScopedQueue = Class.create(Enumerable, {
|
|
216
216
|
},
|
217
217
|
loop: function() {
|
218
218
|
var timePos = new Date().getTime();
|
219
|
-
for(var i=0, len=this.effects.length;i<len;i++)
|
219
|
+
for(var i=0, len=this.effects.length;i<len;i++)
|
220
220
|
this.effects[i] && this.effects[i].loop(timePos);
|
221
221
|
}
|
222
222
|
});
|
@@ -225,10 +225,10 @@ Effect.Queues = {
|
|
225
225
|
instances: $H(),
|
226
226
|
get: function(queueName) {
|
227
227
|
if (!Object.isString(queueName)) return queueName;
|
228
|
-
|
228
|
+
|
229
229
|
if (!this.instances[queueName])
|
230
230
|
this.instances[queueName] = new Effect.ScopedQueue();
|
231
|
-
|
231
|
+
|
232
232
|
return this.instances[queueName];
|
233
233
|
}
|
234
234
|
};
|
@@ -253,11 +253,11 @@ Effect.Base.prototype = {
|
|
253
253
|
this.fromToDelta = this.options.to-this.options.from;
|
254
254
|
this.totalTime = this.finishOn-this.startOn;
|
255
255
|
this.totalFrames = this.options.fps*this.options.duration;
|
256
|
-
|
256
|
+
|
257
257
|
eval('this.render = function(pos){ '+
|
258
258
|
'if (this.state=="idle"){this.state="running";'+
|
259
259
|
codeForEvent(this.options,'beforeSetup')+
|
260
|
-
(this.setup ? 'this.setup();':'')+
|
260
|
+
(this.setup ? 'this.setup();':'')+
|
261
261
|
codeForEvent(this.options,'afterSetup')+
|
262
262
|
'};if (this.state=="running"){'+
|
263
263
|
'pos=this.options.transition(pos)*'+this.fromToDelta+'+'+this.options.from+';'+
|
@@ -266,10 +266,10 @@ Effect.Base.prototype = {
|
|
266
266
|
(this.update ? 'this.update(pos);':'')+
|
267
267
|
codeForEvent(this.options,'afterUpdate')+
|
268
268
|
'}}');
|
269
|
-
|
269
|
+
|
270
270
|
this.event('beforeStart');
|
271
271
|
if (!this.options.sync)
|
272
|
-
Effect.Queues.get(Object.isString(this.options.queue) ?
|
272
|
+
Effect.Queues.get(Object.isString(this.options.queue) ?
|
273
273
|
'global' : this.options.queue.scope).add(this);
|
274
274
|
},
|
275
275
|
loop: function(timePos) {
|
@@ -278,9 +278,9 @@ Effect.Base.prototype = {
|
|
278
278
|
this.render(1.0);
|
279
279
|
this.cancel();
|
280
280
|
this.event('beforeFinish');
|
281
|
-
if (this.finish) this.finish();
|
281
|
+
if (this.finish) this.finish();
|
282
282
|
this.event('afterFinish');
|
283
|
-
return;
|
283
|
+
return;
|
284
284
|
}
|
285
285
|
var pos = (timePos - this.startOn) / this.totalTime,
|
286
286
|
frame = (pos * this.totalFrames).round();
|
@@ -292,7 +292,7 @@ Effect.Base.prototype = {
|
|
292
292
|
},
|
293
293
|
cancel: function() {
|
294
294
|
if (!this.options.sync)
|
295
|
-
Effect.Queues.get(Object.isString(this.options.queue) ?
|
295
|
+
Effect.Queues.get(Object.isString(this.options.queue) ?
|
296
296
|
'global' : this.options.queue.scope).remove(this);
|
297
297
|
this.state = 'finished';
|
298
298
|
},
|
@@ -330,10 +330,10 @@ Effect.Parallel = Class.create(Effect.Base, {
|
|
330
330
|
Effect.Tween = Class.create(Effect.Base, {
|
331
331
|
initialize: function(object, from, to) {
|
332
332
|
object = Object.isString(object) ? $(object) : object;
|
333
|
-
var args = $A(arguments), method = args.last(),
|
333
|
+
var args = $A(arguments), method = args.last(),
|
334
334
|
options = args.length == 5 ? args[3] : null;
|
335
335
|
this.method = Object.isFunction(method) ? method.bind(object) :
|
336
|
-
Object.isFunction(object[method]) ? object[method].bind(object) :
|
336
|
+
Object.isFunction(object[method]) ? object[method].bind(object) :
|
337
337
|
function(value) { object[method] = value };
|
338
338
|
this.start(Object.extend({ from: from, to: to }, options || { }));
|
339
339
|
},
|
@@ -397,7 +397,7 @@ Effect.Move = Class.create(Effect.Base, {
|
|
397
397
|
|
398
398
|
// for backwards compatibility
|
399
399
|
Effect.MoveBy = function(element, toTop, toLeft) {
|
400
|
-
return new Effect.Move(element,
|
400
|
+
return new Effect.Move(element,
|
401
401
|
Object.extend({ x: toLeft, y: toTop }, arguments[3] || { }));
|
402
402
|
};
|
403
403
|
|
@@ -419,15 +419,15 @@ Effect.Scale = Class.create(Effect.Base, {
|
|
419
419
|
setup: function() {
|
420
420
|
this.restoreAfterFinish = this.options.restoreAfterFinish || false;
|
421
421
|
this.elementPositioning = this.element.getStyle('position');
|
422
|
-
|
422
|
+
|
423
423
|
this.originalStyle = { };
|
424
424
|
['top','left','width','height','fontSize'].each( function(k) {
|
425
425
|
this.originalStyle[k] = this.element.style[k];
|
426
426
|
}.bind(this));
|
427
|
-
|
427
|
+
|
428
428
|
this.originalTop = this.element.offsetTop;
|
429
429
|
this.originalLeft = this.element.offsetLeft;
|
430
|
-
|
430
|
+
|
431
431
|
var fontSize = this.element.getStyle('font-size') || '100%';
|
432
432
|
['em','px','%','pt'].each( function(fontSizeType) {
|
433
433
|
if (fontSize.indexOf(fontSizeType)>0) {
|
@@ -435,9 +435,9 @@ Effect.Scale = Class.create(Effect.Base, {
|
|
435
435
|
this.fontSizeType = fontSizeType;
|
436
436
|
}
|
437
437
|
}.bind(this));
|
438
|
-
|
438
|
+
|
439
439
|
this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
|
440
|
-
|
440
|
+
|
441
441
|
this.dims = null;
|
442
442
|
if (this.options.scaleMode=='box')
|
443
443
|
this.dims = [this.element.offsetHeight, this.element.offsetWidth];
|
@@ -514,7 +514,7 @@ Effect.ScrollTo = function(element) {
|
|
514
514
|
var options = arguments[1] || { },
|
515
515
|
scrollOffsets = document.viewport.getScrollOffsets(),
|
516
516
|
elementOffsets = $(element).cumulativeOffset(),
|
517
|
-
max = (window.height || document.body.scrollHeight) - document.viewport.getHeight();
|
517
|
+
max = (window.height || document.body.scrollHeight) - document.viewport.getHeight();
|
518
518
|
|
519
519
|
if (options.offset) elementOffsets[1] += options.offset;
|
520
520
|
|
@@ -534,9 +534,9 @@ Effect.Fade = function(element) {
|
|
534
534
|
var options = Object.extend({
|
535
535
|
from: element.getOpacity() || 1.0,
|
536
536
|
to: 0.0,
|
537
|
-
afterFinishInternal: function(effect) {
|
537
|
+
afterFinishInternal: function(effect) {
|
538
538
|
if (effect.options.to!=0) return;
|
539
|
-
effect.element.hide().setStyle({opacity: oldOpacity});
|
539
|
+
effect.element.hide().setStyle({opacity: oldOpacity});
|
540
540
|
}
|
541
541
|
}, arguments[1] || { });
|
542
542
|
return new Effect.Opacity(element,options);
|
@@ -552,15 +552,15 @@ Effect.Appear = function(element) {
|
|
552
552
|
effect.element.forceRerendering();
|
553
553
|
},
|
554
554
|
beforeSetup: function(effect) {
|
555
|
-
effect.element.setOpacity(effect.options.from).show();
|
555
|
+
effect.element.setOpacity(effect.options.from).show();
|
556
556
|
}}, arguments[1] || { });
|
557
557
|
return new Effect.Opacity(element,options);
|
558
558
|
};
|
559
559
|
|
560
560
|
Effect.Puff = function(element) {
|
561
561
|
element = $(element);
|
562
|
-
var oldStyle = {
|
563
|
-
opacity: element.getInlineOpacity(),
|
562
|
+
var oldStyle = {
|
563
|
+
opacity: element.getInlineOpacity(),
|
564
564
|
position: element.getStyle('position'),
|
565
565
|
top: element.style.top,
|
566
566
|
left: element.style.left,
|
@@ -568,10 +568,10 @@ Effect.Puff = function(element) {
|
|
568
568
|
height: element.style.height
|
569
569
|
};
|
570
570
|
return new Effect.Parallel(
|
571
|
-
[ new Effect.Scale(element, 200,
|
572
|
-
{ sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }),
|
573
|
-
new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
|
574
|
-
Object.extend({ duration: 1.0,
|
571
|
+
[ new Effect.Scale(element, 200,
|
572
|
+
{ sync: true, scaleFromCenter: true, scaleContent: true, restoreAfterFinish: true }),
|
573
|
+
new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
|
574
|
+
Object.extend({ duration: 1.0,
|
575
575
|
beforeSetupInternal: function(effect) {
|
576
576
|
Position.absolutize(effect.effects[0].element)
|
577
577
|
},
|
@@ -585,12 +585,12 @@ Effect.BlindUp = function(element) {
|
|
585
585
|
element = $(element);
|
586
586
|
element.makeClipping();
|
587
587
|
return new Effect.Scale(element, 0,
|
588
|
-
Object.extend({ scaleContent: false,
|
589
|
-
scaleX: false,
|
588
|
+
Object.extend({ scaleContent: false,
|
589
|
+
scaleX: false,
|
590
590
|
restoreAfterFinish: true,
|
591
591
|
afterFinishInternal: function(effect) {
|
592
592
|
effect.element.hide().undoClipping();
|
593
|
-
}
|
593
|
+
}
|
594
594
|
}, arguments[1] || { })
|
595
595
|
);
|
596
596
|
};
|
@@ -598,15 +598,15 @@ Effect.BlindUp = function(element) {
|
|
598
598
|
Effect.BlindDown = function(element) {
|
599
599
|
element = $(element);
|
600
600
|
var elementDimensions = element.getDimensions();
|
601
|
-
return new Effect.Scale(element, 100, Object.extend({
|
602
|
-
scaleContent: false,
|
601
|
+
return new Effect.Scale(element, 100, Object.extend({
|
602
|
+
scaleContent: false,
|
603
603
|
scaleX: false,
|
604
604
|
scaleFrom: 0,
|
605
605
|
scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
|
606
606
|
restoreAfterFinish: true,
|
607
607
|
afterSetup: function(effect) {
|
608
|
-
effect.element.makeClipping().setStyle({height: '0px'}).show();
|
609
|
-
},
|
608
|
+
effect.element.makeClipping().setStyle({height: '0px'}).show();
|
609
|
+
},
|
610
610
|
afterFinishInternal: function(effect) {
|
611
611
|
effect.element.undoClipping();
|
612
612
|
}
|
@@ -621,10 +621,10 @@ Effect.SwitchOff = function(element) {
|
|
621
621
|
from: 0,
|
622
622
|
transition: Effect.Transitions.flicker,
|
623
623
|
afterFinishInternal: function(effect) {
|
624
|
-
new Effect.Scale(effect.element, 1, {
|
624
|
+
new Effect.Scale(effect.element, 1, {
|
625
625
|
duration: 0.3, scaleFromCenter: true,
|
626
626
|
scaleX: false, scaleContent: false, restoreAfterFinish: true,
|
627
|
-
beforeSetup: function(effect) {
|
627
|
+
beforeSetup: function(effect) {
|
628
628
|
effect.element.makePositioned().makeClipping();
|
629
629
|
},
|
630
630
|
afterFinishInternal: function(effect) {
|
@@ -642,16 +642,16 @@ Effect.DropOut = function(element) {
|
|
642
642
|
left: element.getStyle('left'),
|
643
643
|
opacity: element.getInlineOpacity() };
|
644
644
|
return new Effect.Parallel(
|
645
|
-
[ new Effect.Move(element, {x: 0, y: 100, sync: true }),
|
645
|
+
[ new Effect.Move(element, {x: 0, y: 100, sync: true }),
|
646
646
|
new Effect.Opacity(element, { sync: true, to: 0.0 }) ],
|
647
647
|
Object.extend(
|
648
648
|
{ duration: 0.5,
|
649
649
|
beforeSetup: function(effect) {
|
650
|
-
effect.effects[0].element.makePositioned();
|
650
|
+
effect.effects[0].element.makePositioned();
|
651
651
|
},
|
652
652
|
afterFinishInternal: function(effect) {
|
653
653
|
effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle);
|
654
|
-
}
|
654
|
+
}
|
655
655
|
}, arguments[1] || { }));
|
656
656
|
};
|
657
657
|
|
@@ -660,7 +660,7 @@ Effect.Shake = function(element) {
|
|
660
660
|
var oldStyle = {
|
661
661
|
top: element.getStyle('top'),
|
662
662
|
left: element.getStyle('left') };
|
663
|
-
return new Effect.Move(element,
|
663
|
+
return new Effect.Move(element,
|
664
664
|
{ x: 20, y: 0, duration: 0.05, afterFinishInternal: function(effect) {
|
665
665
|
new Effect.Move(effect.element,
|
666
666
|
{ x: -40, y: 0, duration: 0.1, afterFinishInternal: function(effect) {
|
@@ -681,9 +681,9 @@ Effect.SlideDown = function(element) {
|
|
681
681
|
// SlideDown need to have the content of the element wrapped in a container element with fixed height!
|
682
682
|
var oldInnerBottom = element.down().getStyle('bottom');
|
683
683
|
var elementDimensions = element.getDimensions();
|
684
|
-
return new Effect.Scale(element, 100, Object.extend({
|
685
|
-
scaleContent: false,
|
686
|
-
scaleX: false,
|
684
|
+
return new Effect.Scale(element, 100, Object.extend({
|
685
|
+
scaleContent: false,
|
686
|
+
scaleX: false,
|
687
687
|
scaleFrom: window.opera ? 0 : 1,
|
688
688
|
scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
|
689
689
|
restoreAfterFinish: true,
|
@@ -691,11 +691,11 @@ Effect.SlideDown = function(element) {
|
|
691
691
|
effect.element.makePositioned();
|
692
692
|
effect.element.down().makePositioned();
|
693
693
|
if (window.opera) effect.element.setStyle({top: ''});
|
694
|
-
effect.element.makeClipping().setStyle({height: '0px'}).show();
|
694
|
+
effect.element.makeClipping().setStyle({height: '0px'}).show();
|
695
695
|
},
|
696
696
|
afterUpdateInternal: function(effect) {
|
697
697
|
effect.element.down().setStyle({bottom:
|
698
|
-
(effect.dims[0] - effect.element.clientHeight) + 'px' });
|
698
|
+
(effect.dims[0] - effect.element.clientHeight) + 'px' });
|
699
699
|
},
|
700
700
|
afterFinishInternal: function(effect) {
|
701
701
|
effect.element.undoClipping().undoPositioned();
|
@@ -709,8 +709,8 @@ Effect.SlideUp = function(element) {
|
|
709
709
|
var oldInnerBottom = element.down().getStyle('bottom');
|
710
710
|
var elementDimensions = element.getDimensions();
|
711
711
|
return new Effect.Scale(element, window.opera ? 0 : 1,
|
712
|
-
Object.extend({ scaleContent: false,
|
713
|
-
scaleX: false,
|
712
|
+
Object.extend({ scaleContent: false,
|
713
|
+
scaleX: false,
|
714
714
|
scaleMode: 'box',
|
715
715
|
scaleFrom: 100,
|
716
716
|
scaleMode: {originalHeight: elementDimensions.height, originalWidth: elementDimensions.width},
|
@@ -720,7 +720,7 @@ Effect.SlideUp = function(element) {
|
|
720
720
|
effect.element.down().makePositioned();
|
721
721
|
if (window.opera) effect.element.setStyle({top: ''});
|
722
722
|
effect.element.makeClipping().show();
|
723
|
-
},
|
723
|
+
},
|
724
724
|
afterUpdateInternal: function(effect) {
|
725
725
|
effect.element.down().setStyle({bottom:
|
726
726
|
(effect.dims[0] - effect.element.clientHeight) + 'px' });
|
@@ -733,15 +733,15 @@ Effect.SlideUp = function(element) {
|
|
733
733
|
);
|
734
734
|
};
|
735
735
|
|
736
|
-
// Bug in opera makes the TD containing this element expand for a instance after finish
|
736
|
+
// Bug in opera makes the TD containing this element expand for a instance after finish
|
737
737
|
Effect.Squish = function(element) {
|
738
|
-
return new Effect.Scale(element, window.opera ? 1 : 0, {
|
738
|
+
return new Effect.Scale(element, window.opera ? 1 : 0, {
|
739
739
|
restoreAfterFinish: true,
|
740
740
|
beforeSetup: function(effect) {
|
741
|
-
effect.element.makeClipping();
|
742
|
-
},
|
741
|
+
effect.element.makeClipping();
|
742
|
+
},
|
743
743
|
afterFinishInternal: function(effect) {
|
744
|
-
effect.element.hide().undoClipping();
|
744
|
+
effect.element.hide().undoClipping();
|
745
745
|
}
|
746
746
|
});
|
747
747
|
};
|
@@ -761,13 +761,13 @@ Effect.Grow = function(element) {
|
|
761
761
|
width: element.style.width,
|
762
762
|
opacity: element.getInlineOpacity() };
|
763
763
|
|
764
|
-
var dims = element.getDimensions();
|
764
|
+
var dims = element.getDimensions();
|
765
765
|
var initialMoveX, initialMoveY;
|
766
766
|
var moveX, moveY;
|
767
|
-
|
767
|
+
|
768
768
|
switch (options.direction) {
|
769
769
|
case 'top-left':
|
770
|
-
initialMoveX = initialMoveY = moveX = moveY = 0;
|
770
|
+
initialMoveX = initialMoveY = moveX = moveY = 0;
|
771
771
|
break;
|
772
772
|
case 'top-right':
|
773
773
|
initialMoveX = dims.width;
|
@@ -792,11 +792,11 @@ Effect.Grow = function(element) {
|
|
792
792
|
moveY = -dims.height / 2;
|
793
793
|
break;
|
794
794
|
}
|
795
|
-
|
795
|
+
|
796
796
|
return new Effect.Move(element, {
|
797
797
|
x: initialMoveX,
|
798
798
|
y: initialMoveY,
|
799
|
-
duration: 0.01,
|
799
|
+
duration: 0.01,
|
800
800
|
beforeSetup: function(effect) {
|
801
801
|
effect.element.hide().makeClipping().makePositioned();
|
802
802
|
},
|
@@ -805,14 +805,14 @@ Effect.Grow = function(element) {
|
|
805
805
|
[ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacityTransition }),
|
806
806
|
new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition }),
|
807
807
|
new Effect.Scale(effect.element, 100, {
|
808
|
-
scaleMode: { originalHeight: dims.height, originalWidth: dims.width },
|
808
|
+
scaleMode: { originalHeight: dims.height, originalWidth: dims.width },
|
809
809
|
sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFinish: true})
|
810
810
|
], Object.extend({
|
811
811
|
beforeSetup: function(effect) {
|
812
|
-
effect.effects[0].element.setStyle({height: '0px'}).show();
|
812
|
+
effect.effects[0].element.setStyle({height: '0px'}).show();
|
813
813
|
},
|
814
814
|
afterFinishInternal: function(effect) {
|
815
|
-
effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);
|
815
|
+
effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldStyle);
|
816
816
|
}
|
817
817
|
}, options)
|
818
818
|
)
|
@@ -837,7 +837,7 @@ Effect.Shrink = function(element) {
|
|
837
837
|
|
838
838
|
var dims = element.getDimensions();
|
839
839
|
var moveX, moveY;
|
840
|
-
|
840
|
+
|
841
841
|
switch (options.direction) {
|
842
842
|
case 'top-left':
|
843
843
|
moveX = moveY = 0;
|
@@ -854,19 +854,19 @@ Effect.Shrink = function(element) {
|
|
854
854
|
moveX = dims.width;
|
855
855
|
moveY = dims.height;
|
856
856
|
break;
|
857
|
-
case 'center':
|
857
|
+
case 'center':
|
858
858
|
moveX = dims.width / 2;
|
859
859
|
moveY = dims.height / 2;
|
860
860
|
break;
|
861
861
|
}
|
862
|
-
|
862
|
+
|
863
863
|
return new Effect.Parallel(
|
864
864
|
[ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransition }),
|
865
865
|
new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition, restoreAfterFinish: true}),
|
866
866
|
new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
|
867
|
-
], Object.extend({
|
867
|
+
], Object.extend({
|
868
868
|
beforeStartInternal: function(effect) {
|
869
|
-
effect.effects[0].element.makePositioned().makeClipping();
|
869
|
+
effect.effects[0].element.makePositioned().makeClipping();
|
870
870
|
},
|
871
871
|
afterFinishInternal: function(effect) {
|
872
872
|
effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle(oldStyle); }
|
@@ -881,7 +881,7 @@ Effect.Pulsate = function(element) {
|
|
881
881
|
var transition = options.transition || Effect.Transitions.sinoidal;
|
882
882
|
var reverser = function(pos){ return transition(1-Effect.Transitions.pulse(pos, options.pulses)) };
|
883
883
|
reverser.bind(transition);
|
884
|
-
return new Effect.Opacity(element,
|
884
|
+
return new Effect.Opacity(element,
|
885
885
|
Object.extend(Object.extend({ duration: 2.0, from: 0,
|
886
886
|
afterFinishInternal: function(effect) { effect.element.setStyle({opacity: oldOpacity}); }
|
887
887
|
}, options), {transition: reverser}));
|
@@ -895,12 +895,12 @@ Effect.Fold = function(element) {
|
|
895
895
|
width: element.style.width,
|
896
896
|
height: element.style.height };
|
897
897
|
element.makeClipping();
|
898
|
-
return new Effect.Scale(element, 5, Object.extend({
|
898
|
+
return new Effect.Scale(element, 5, Object.extend({
|
899
899
|
scaleContent: false,
|
900
900
|
scaleX: false,
|
901
901
|
afterFinishInternal: function(effect) {
|
902
|
-
new Effect.Scale(element, 1, {
|
903
|
-
scaleContent: false,
|
902
|
+
new Effect.Scale(element, 1, {
|
903
|
+
scaleContent: false,
|
904
904
|
scaleY: false,
|
905
905
|
afterFinishInternal: function(effect) {
|
906
906
|
effect.element.hide().undoClipping().setStyle(oldStyle);
|
@@ -915,7 +915,7 @@ Effect.Morph = Class.create(Effect.Base, {
|
|
915
915
|
var options = Object.extend({
|
916
916
|
style: { }
|
917
917
|
}, arguments[1] || { });
|
918
|
-
|
918
|
+
|
919
919
|
if (!Object.isString(options.style)) this.style = $H(options.style);
|
920
920
|
else {
|
921
921
|
if (options.style.include(':'))
|
@@ -938,13 +938,13 @@ Effect.Morph = Class.create(Effect.Base, {
|
|
938
938
|
}
|
939
939
|
this.start(options);
|
940
940
|
},
|
941
|
-
|
941
|
+
|
942
942
|
setup: function(){
|
943
943
|
function parseColor(color){
|
944
944
|
if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) color = '#ffffff';
|
945
945
|
color = color.parseColor();
|
946
946
|
return $R(0,2).map(function(i){
|
947
|
-
return parseInt( color.slice(i*2+1,i*2+3), 16 )
|
947
|
+
return parseInt( color.slice(i*2+1,i*2+3), 16 )
|
948
948
|
});
|
949
949
|
}
|
950
950
|
this.transforms = this.style.map(function(pair){
|
@@ -964,9 +964,9 @@ Effect.Morph = Class.create(Effect.Base, {
|
|
964
964
|
}
|
965
965
|
|
966
966
|
var originalValue = this.element.getStyle(property);
|
967
|
-
return {
|
968
|
-
style: property.camelize(),
|
969
|
-
originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0),
|
967
|
+
return {
|
968
|
+
style: property.camelize(),
|
969
|
+
originalValue: unit=='color' ? parseColor(originalValue) : parseFloat(originalValue || 0),
|
970
970
|
targetValue: unit=='color' ? parseColor(value) : value,
|
971
971
|
unit: unit
|
972
972
|
};
|
@@ -983,7 +983,7 @@ Effect.Morph = Class.create(Effect.Base, {
|
|
983
983
|
update: function(position) {
|
984
984
|
var style = { }, transform, i = this.transforms.length;
|
985
985
|
while(i--)
|
986
|
-
style[(transform = this.transforms[i]).style] =
|
986
|
+
style[(transform = this.transforms[i]).style] =
|
987
987
|
transform.unit=='color' ? '#'+
|
988
988
|
(Math.round(transform.originalValue[0]+
|
989
989
|
(transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() +
|
@@ -992,7 +992,7 @@ Effect.Morph = Class.create(Effect.Base, {
|
|
992
992
|
(Math.round(transform.originalValue[2]+
|
993
993
|
(transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() :
|
994
994
|
(transform.originalValue +
|
995
|
-
(transform.targetValue - transform.originalValue) * position).toFixed(3) +
|
995
|
+
(transform.targetValue - transform.originalValue) * position).toFixed(3) +
|
996
996
|
(transform.unit === null ? '' : transform.unit);
|
997
997
|
this.element.setStyle(style, true);
|
998
998
|
}
|
@@ -1027,7 +1027,7 @@ Effect.Transform = Class.create({
|
|
1027
1027
|
});
|
1028
1028
|
|
1029
1029
|
Element.CSS_PROPERTIES = $w(
|
1030
|
-
'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' +
|
1030
|
+
'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' +
|
1031
1031
|
'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' +
|
1032
1032
|
'borderRightColor borderRightStyle borderRightWidth borderSpacing ' +
|
1033
1033
|
'borderTopColor borderTopStyle borderTopWidth bottom clip color ' +
|
@@ -1036,7 +1036,7 @@ Element.CSS_PROPERTIES = $w(
|
|
1036
1036
|
'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' +
|
1037
1037
|
'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' +
|
1038
1038
|
'right textIndent top width wordSpacing zIndex');
|
1039
|
-
|
1039
|
+
|
1040
1040
|
Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;
|
1041
1041
|
|
1042
1042
|
String.__parseStyleElement = document.createElement('div');
|
@@ -1048,11 +1048,11 @@ String.prototype.parseStyle = function(){
|
|
1048
1048
|
String.__parseStyleElement.innerHTML = '<div style="' + this + '"></div>';
|
1049
1049
|
style = String.__parseStyleElement.childNodes[0].style;
|
1050
1050
|
}
|
1051
|
-
|
1051
|
+
|
1052
1052
|
Element.CSS_PROPERTIES.each(function(property){
|
1053
|
-
if (style[property]) styleRules[property] = style[property];
|
1053
|
+
if (style[property]) styleRules[property] = style[property];
|
1054
1054
|
});
|
1055
|
-
|
1055
|
+
|
1056
1056
|
if (Prototype.Browser.IE && this.include('opacity'))
|
1057
1057
|
styleRules.opacity = this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1];
|
1058
1058
|
|
@@ -1101,7 +1101,7 @@ Effect.Methods = {
|
|
1101
1101
|
|
1102
1102
|
$w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+
|
1103
1103
|
'pulsate shake puff squish switchOff dropOut').each(
|
1104
|
-
function(effect) {
|
1104
|
+
function(effect) {
|
1105
1105
|
Effect.Methods[effect] = function(element, options){
|
1106
1106
|
element = $(element);
|
1107
1107
|
Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
|
@@ -1110,7 +1110,7 @@ $w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+
|
|
1110
1110
|
}
|
1111
1111
|
);
|
1112
1112
|
|
1113
|
-
$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(
|
1113
|
+
$w('getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles').each(
|
1114
1114
|
function(f) { Effect.Methods[f] = Element[f]; }
|
1115
1115
|
);
|
1116
1116
|
|