aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-03-08 13:41:51 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-08 13:41:51 -0700
commita3e67a15edcdcfd2fd84f078cb3e2c76d0226794 (patch)
tree3448d28396582cc6f51dd412acf63963c938449c
parent822c41d69d9228c9912d29ac45155d3a16bb5c50 (diff)
downloadrails-a3e67a15edcdcfd2fd84f078cb3e2c76d0226794.tar.gz
rails-a3e67a15edcdcfd2fd84f078cb3e2c76d0226794.tar.bz2
rails-a3e67a15edcdcfd2fd84f078cb3e2c76d0226794.zip
Prototype helpers support the onCreate callback.
[#1074 state:committed]
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 18a209dcea..91ef72e54b 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -107,7 +107,7 @@ module ActionView
# on the page in an Ajax response.
module PrototypeHelper
unless const_defined? :CALLBACKS
- CALLBACKS = Set.new([ :uninitialized, :loading, :loaded,
+ CALLBACKS = Set.new([ :create, :uninitialized, :loading, :loaded,
:interactive, :complete, :failure, :success ] +
(100..599).to_a)
AJAX_OPTIONS = Set.new([ :before, :after, :condition, :url,