Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
JC - Changed 'function(Y)' to 'function(Y,NAME)'
Browse files Browse the repository at this point in the history
and 'Y.mojito.controller' to 'Y.mojito.controllers
[NAME]' in the controllers.
  • Loading branch information
Isao Yagi committed May 10, 2012
1 parent 969d916 commit 9742d8e
Show file tree
Hide file tree
Showing 31 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('PagerMojit', function(Y) {
YUI.add('PagerMojit', function(Y, NAME) {

var PAGE_SIZE = 10;
/**
* Constructor for the Controller class.
* @class Controller
* @constructor
*/
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('RoutingMojit', function(Y) {
Y.mojito.controller = {
YUI.add('RoutingMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('device', function(Y){
Y.mojito.controller = {
YUI.add('device', function(Y, NAME){
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('device', function(Y) {
YUI.add('device', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('framed', function(Y) {
Y.mojito.controller = {
YUI.add('framed', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('MainMojit', function(Y) {
YUI.add('MainMojit', function(Y, NAME) {

/**
* The MainMojit module.
Expand All @@ -18,7 +18,7 @@ YUI.add('MainMojit', function(Y) {
* @class Controller
* @constructor
*/
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

/**
* Method corresponding to the 'index' action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('GenURLMojit', function(Y) {
Y.mojito.controller = {
YUI.add('GenURLMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('OhHai', function(Y) {
YUI.add('OhHai', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

index: function(ac) {
ac.done();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('HelloMojit', function(Y) {
YUI.add('HelloMojit', function(Y, NAME) {

/**
* The HelloMojit module.
Expand All @@ -18,7 +18,7 @@ YUI.add('HelloMojit', function(Y) {
* @class Controller
* @constructor
*/
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('framed', function(Y) {
YUI.add('framed', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('MasterMojit', function(Y) {
YUI.add('MasterMojit', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('ReceiverMojitBinderIndex', function(Y,NAME) {
YUI.add('ReceiverMojitBinderIndex', function(Y, NAME) {

Y.namespace('mojito.binders')[NAME] = {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('ReceiverMojit', function(Y) {
YUI.add('ReceiverMojit', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('SenderMojit', function(Y) {
YUI.add('SenderMojit', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('i18n', function(Y) {
Y.mojito.controller = {
YUI.add('i18n', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('flickr', function(Y) {
YUI.add('flickr', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('BodyMojit', function(Y) {
YUI.add('BodyMojit', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('FooterMojit', function(Y) {
Y.mojito.controller = {
YUI.add('FooterMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('FrameMojit', function(Y) {
YUI.add('FrameMojit', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('HeaderMojit', function(Y) {
Y.mojito.controller = {
YUI.add('HeaderMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('scroll', function(Y) {
YUI.add('scroll', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('simple', function(Y) {
YUI.add('simple', function(Y, NAME) {
/**
* The simple module.
*
Expand All @@ -16,7 +16,7 @@ YUI.add('simple', function(Y) {
* @class Controller
* @constructor
*/
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('SimpleMojit', function(Y) {
YUI.add('SimpleMojit', function(Y, NAME) {

/**
* The SimpleMojit module.
Expand All @@ -18,7 +18,7 @@ YUI.add('SimpleMojit', function(Y) {
* @class Controller
* @constructor
*/
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ YUI.add('log', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('simple', function(Y, NAME) {
Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('flickr', function(Y) {
YUI.add('flickr', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('ContactUs', function(Y) {
YUI.add('ContactUs', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('CookieMojit', function(Y) {
YUI.add('CookieMojit', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('QueryMojit', function(Y) {
Y.mojito.controller = {
YUI.add('QueryMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('Notepad', function(Y) {
YUI.add('Notepad', function(Y, NAME) {

Y.mojito.controller = {
Y.mojito.controllers[NAME] = {

index: function(ac) {
ac.done();
Expand Down
2 changes: 1 addition & 1 deletion examples/sandbox/ex1/mojits/Samuel/models/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* See the accompanying LICENSE file for terms.
*/

YUI.add('SamuelModel', function(Y,NAME) {
YUI.add('SamuelModel', function(Y, NAME) {

Y.mojito.models['default'] = {

Expand Down

0 comments on commit 9742d8e

Please sign in to comment.