| Index: webkit/glue/cpp_bound_class.h
|
| ===================================================================
|
| --- webkit/glue/cpp_bound_class.h (revision 2868)
|
| +++ webkit/glue/cpp_bound_class.h (working copy)
|
| @@ -74,8 +74,8 @@
|
| // Bind the Javascript property called |name| to a CppVariant |prop|.
|
| void BindProperty(std::string name, CppVariant* prop);
|
|
|
| - // Set the fallback callback, which is called when when a callback is
|
| - // invoked that isn't bound.
|
| + // Set the fallback callback, which is called when a callback is invoked
|
| + // that isn't bound.
|
| // If it is NULL (its default value), a JavaScript exception is thrown in
|
| // that case (as normally expected). If non NULL, the fallback method is
|
| // invoked and the script continues its execution.
|
| @@ -84,6 +84,8 @@
|
| // as it may cause unexpected behaviors (a JavaScript object with a
|
| // fallback always returns true when checked for a method's
|
| // existence).
|
| + // The name of the nonexistent JavaScript method will be passed as the
|
| + // first argument to the fallback method.
|
| void BindFallbackCallback(Callback* fallback_callback) {
|
| fallback_callback_.reset(fallback_callback);
|
| }
|
|
|