jupiterjs / jquerymx

jQuery MVC Extensions. jQuery extensions that makes all the annoying stuff easier.
http://javascriptmvc.com
553 stars 374 forks source link

Documentation bug in Controller tutorial #146

Open cotsog opened 11 years ago

cotsog commented 11 years ago

Hi,

I think there is an error in the controller tutorial more precisely in:

JavaScriptMVC > Tutorials > Get Started with jQueryMX > Controller > Overview

URL is http://javascriptmvc.com/docs.html#!mvc.controller.

The error is in this phrase:

"The helper method name is the controller's name underscored, with any periods replaced with underscores. For example, the helper for $.Controller('App.FooBar') is $(el).appfoobar()."

it should be:

"The helper method name is the controller's name underscored, with any periods replaced with underscores. For example, the helper for $.Controller('App.FooBar') is $(el).app_foobar()."

Also it would be nice to mention that if "controller" is used in the controller's name, it will be removed from the helper method name e.g. the helper for $.Controller('App.Controller.FooBar') is $(el).app_foobar().

Thanks!