Small typo fixes in JavascriptRefactoring wiki page. git-svn-id: http://soc.googlecode.com/svn/wiki@3250 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/JavascriptRefactoring.wiki b/JavascriptRefactoring.wiki index 61d179f..ed38914 100644 --- a/JavascriptRefactoring.wiki +++ b/JavascriptRefactoring.wiki
@@ -5,12 +5,12 @@ In any way, we need: -1. to separate Javascript code in *modules*, and use Javascript language features to _namespace correctly_ those modules. +1. To separate Javascript code in *modules*, and use Javascript language features to _namespace correctly_ those modules. -2. to keep as much Javascript code as possible *outside* Django templates +2. To keep as much Javascript code as possible *outside* Django templates. 3. To put HTML strings *outside* Javascript code, eventually developing a little function to load those templates and then, for templating, something that emulates {{{ sprintf() }}} or begin to use [http://plugins.jquery.com/project/jquerytemplate jQuery Template plugin]. 4. Use {{{ jQuery.noConflict() }}} (after loading any library/plugin) and giving jQuery a different namespace like {{{ $j }}} to avoid conflicts if we ever want to integrate other libraries ({{{ $ }}} namespace is very well overused) -The proposal is to create a {{{ melange }}} namespace and begin adding sub-namespace to it for every feature we need. We might want to add {{{ models }}}, {{{ logic }}} and {{{ templates }}} subdirectories to the {{{ content/js }}} as well, to keep an homogeneous structure with the python code. +The proposal is to create a {{{ melange }}} namespace and begin adding sub-namespace to it for every feature we need. We might want to add {{{ models }}}, {{{ logic }}} and {{{ templates }}} subdirectories to the {{{ content/js }}} as well, to keep an homogeneous structure with the python code. \ No newline at end of file