[Jifty-commit] r5220 - jifty/branches/jquery/lib/Jifty/Manual
jifty-commit at lists.jifty.org
Sun Mar 16 11:01:42 EDT 2008
Date: Sun Mar 16 11:01:41 2008
New Revision: 5220
* jQueryMigrationGuide: Minor editing
--- jifty/branches/jquery/lib/Jifty/Manual/jQueryMigrationGuide.pod (original)
+++ jifty/branches/jquery/lib/Jifty/Manual/jQueryMigrationGuide.pod Sun Mar 16 11:01:41 2008
@@ -5,22 +5,22 @@
=head1 Migrate your jifty app to jquery
Application developers may start the migration by modifying
-C<config.yml>, set the C<ConfigFileVersion> to 4. If you did not write
+F<config.yml>, set the C<ConfigFileVersion> to 4. If you did not write
should just work.
-of those funcitons defined in C<jifty*.js>, C<prototype.js> or
-C<scriptaculous.js>, then you're still good to go.
+of those funcitons defined in F<jifty*.js>, F<prototype.js> or
+F<scriptaculous.js>, then you're still good to go.
Otherwise, your code might need to be modified a little bit. Since
-both C<prototype.js> and C<scriptaculous.js> are removed by default,
+both F<prototype.js> and F<scriptaculous.js> are removed by default,
one trivial choice is to simply bring them back. That is as easy as
-adding a C<Prototypism> plugin to your Jifty application.
+adding a B<Prototypism> plugin to your Jifty application.
If you dislike the whole Prototypism like us, you can choose to
re-write your code with jQuery. In the section L</"From Prototype
-to jQuery"> below, we provid some known pattern that can be applied to
+to jQuery"> below, we provide some known pattern that can be applied to
If you hack Jifty internal, please make sure you've read the following
@@ -46,7 +46,7 @@
=head1 Jifty API
landed. Especially those internal functions to process form elements.
The Prototype-based old way is to extend Form object and the
@@ -55,15 +55,15 @@
Prototype library can destroy those Jifty functions.
The new jQuery-fashioned way is to always extend internal functions
-under Jifty object. Form becomes Jifty.Form, Form.Element becomes
-Jifty.Form.Element, and so on. The detail list of these defined
+under Jifty object. C<Form becomes C<Jifty.Form>, C<Form.Element> becomes
+C<Jifty.Form.Element>, and so on. The detail list of these defined
those functions are internal functions that you probably should not
use them directly.
=head1 From Prototype to jQuery
you'd like to remove PrototypeJS library, here are some dummy rules to
More information about the Jifty-commit