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

Commit

Permalink
Merge pull request #397 from mridgway/shareFix
Browse files Browse the repository at this point in the history
Fixed examples so that they should work with shareYUIInstance
  • Loading branch information
mridgway committed Aug 17, 2012
2 parents c43de63 + e68dc44 commit bb31661
Show file tree
Hide file tree
Showing 121 changed files with 170 additions and 170 deletions.
@@ -1,6 +1,6 @@
YUI.add('myMojit', function(Y, NAME) {

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

init: function(config) {
this.config = config;
Expand Down
Expand Up @@ -12,7 +12,7 @@ YUI.add('PagerMojit', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -16,7 +16,7 @@ YUI.add('PagerMojit-tests', function(Y) {
name: 'PagerMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.PagerMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('RoutingMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -16,7 +16,7 @@ YUI.add('RoutingMojit-tests', function(Y) {
name: 'RoutingMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.RoutingMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('device', function(Y, NAME){
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('device-tests', function(Y) {
name: 'device user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.device;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -16,7 +16,7 @@ YUI.add('device-tests', function(Y) {
name: 'device user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.device;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('framed', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('framed-tests', function(Y) {
name: 'framed user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.framed;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -18,7 +18,7 @@ YUI.add('MainMojit', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {

/**
* Method corresponding to the 'index' action.
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('GenURLMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('GenURLMojit-tests', function(Y) {
name: 'GenURLMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.GenURLMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

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

index: function(ac) {
ac.done();
Expand Down
Expand Up @@ -18,7 +18,7 @@ YUI.add('HelloMojit', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('HelloMojit-tests', function(Y) {
name: 'HelloMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.HelloMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('framed-tests', function(Y) {
name: 'framed user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.framed;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

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

init: function(config) {
this.config = config;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('i18n', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('i18n-tests', function(Y) {
name: 'i18n user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.i18n;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('flickr-tests', function(Y) {
name: 'flickr user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.flickr;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('BodyMojit-tests', function(Y) {
name: 'BodyMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.BodyMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('FooterMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('FooterMojit-tests', function(Y) {
name: 'FooterMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.FooterMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('FrameMojit-tests', function(Y) {
name: 'FrameMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.FrameMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('HeaderMojit', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('HeaderMojit-tests', function(Y) {
name: 'HeaderMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.HeaderMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -16,7 +16,7 @@ YUI.add('simple', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('simple-tests', function(Y) {
name: 'simple user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.simple;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -18,7 +18,7 @@ YUI.add('SimpleMojit', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('SimpleMojit-tests', function(Y) {
name: 'SimpleMojit user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.SimpleMojit;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -12,7 +12,7 @@ YUI.add('log', function(Y, NAME) {
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {

init: function(config) {
this.config = config;
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('log-tests', function(Y) {
name: 'log user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.log;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -5,7 +5,7 @@
*/

YUI.add('simple', function(Y, NAME) {
Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down
Expand Up @@ -15,7 +15,7 @@ YUI.add('simple-tests', function(Y) {
name: 'simple user tests',

setUp: function() {
controller = Y.mojito.controller;
controller = Y.mojito.controllers.simple;
},
tearDown: function() {
controller = null;
Expand Down
Expand Up @@ -6,7 +6,7 @@

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

Y.mojito.controllers[NAME] = {
Y.namespace('mojito.controllers')[NAME] = {
init: function(config) {
this.config = config;
},
Expand Down

0 comments on commit bb31661

Please sign in to comment.