提交 9f5cb3d3 编写于 作者: E Erik St. Martin 提交者: Stefan Penner

moving include of ScriptaculousHelper into PrototypeHelper, ActionView should...

moving include of ScriptaculousHelper into PrototypeHelper, ActionView should know as little as possible about individual frameworks
上级 37ad5759
......@@ -20,7 +20,6 @@ module Helpers #:nodoc:
autoload :RecordIdentificationHelper, 'action_view/helpers/record_identification_helper'
autoload :RecordTagHelper, 'action_view/helpers/record_tag_helper'
autoload :SanitizeHelper, 'action_view/helpers/sanitize_helper'
autoload :ScriptaculousHelper, 'action_view/helpers/scriptaculous_helper'
autoload :TagHelper, 'action_view/helpers/tag_helper'
autoload :TextHelper, 'action_view/helpers/text_helper'
autoload :TranslationHelper, 'action_view/helpers/translation_helper'
......@@ -53,7 +52,6 @@ module ClassMethods
include RecordIdentificationHelper
include RecordTagHelper
include SanitizeHelper
include ScriptaculousHelper
include TagHelper
include TextHelper
include TranslationHelper
......
require 'set'
require 'active_support/json'
require 'active_support/core_ext/object/returning'
require 'action_view/helpers/scriptaculous_helper'
module ActionView
module Helpers
......@@ -73,6 +74,8 @@ module Helpers
# See JavaScriptGenerator for information on updating multiple elements
# on the page in an Ajax response.
module PrototypeHelper
include ScriptaculousHelper
unless const_defined? :CALLBACKS
CALLBACKS = Set.new([ :create, :uninitialized, :loading, :loaded,
:interactive, :complete, :failure, :success ] +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册