Browse files

Removed the example "part8" from the simple examples as it was a dupl…

…icate of "part7".
  • Loading branch information...
1 parent 4208c66 commit 720a5f0a8ce0bc948ef97a4e27ee312b8bacfcef @ricallinson ricallinson committed Apr 19, 2012
View
15 examples/simple/part8/application.json
@@ -1,15 +0,0 @@
-[{
- "settings": [ "master" ],
-
- "specs": {
- "myBase": {
- "type": "HTMLFrameMojit",
- "config": {
- "deploy": true,
- "child": {
- "type": "myMojit"
- }
- }
- }
- }
-}]
View
23 examples/simple/part8/index.js
@@ -1,23 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-
-/*jslint anon:true, sloppy:true, nomen:true, node:true*/
-
-
-process.chdir(__dirname);
-
-
-/**
- * @param {object} config The configuration object containing processing params.
- * @param {object} token Token used to identify the application.
- */
-module.exports = function(config, token) {
- var app = require('./server.js');
-
- // Signal the application is ready, providing the token and app references.
- process.emit('application-ready', token, app);
-};
View
18 examples/simple/part8/mojits/myMojit/binders/index.js
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-YUI.add('myMojitBinder', function(Y, NAME) {
-
- Y.namespace('mojito.binders')[NAME] = {
-
- handleClick: function(event){
-
- alert(event.currentTarget.getContent());
- }
-
- };
-
-});
View
21 examples/simple/part8/mojits/myMojit/controller.server.js
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-YUI.add('myMojit', function(Y) {
-
- Y.mojito.controller = {
-
- index: function(ac) {
-
- ac.models.message.get(function(data){
-
- data.title = ac.intl.lang('TITLE');
-
- ac.done(data);
- });
- }
- };
-}, '0.0.1', {requires: ['mojito-intl-addon']});
View
21 examples/simple/part8/mojits/myMojit/lang/myMojit.js
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-/*globals YUI */
-YUI.add("lang/myMojit", function (Y) {
-
- Y.Intl.add(
-
- "myMojit",
- "en",
-
- {
- TITLE: "My Mojit"
- }
-
- );
-
-}, "0.0.1", { requires: ['intl'] });
View
21 examples/simple/part8/mojits/myMojit/lang/myMojit_en-US.js
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-/*globals YUI */
-YUI.add("lang/myMojit_en-US", function (Y) {
-
- Y.Intl.add(
-
- "myMojit",
- "en-US",
-
- {
- TITLE: "My Mojit in the US"
- }
-
- );
-
-}, "0.0.1", { requires: ['intl'] });
View
21 examples/simple/part8/mojits/myMojit/models/model.server.js
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-YUI.add('myMojitModel', function(Y) {
-
- Y.mojito.models.message = {
-
- get: function(callback) {
-
- var data = {
- msg: 'Mojito is Working.'
- };
-
- callback(data);
- }
- };
-
-});
View
4 examples/simple/part8/mojits/myMojit/views/index.mu.html
@@ -1,4 +0,0 @@
-<h1>{{title}}</h1>
-<div id="{{mojit_guid}}">
- {{msg}}
-</div>
View
9 examples/simple/part8/readme.md
@@ -1,9 +0,0 @@
-Start the Mojito application;
-
-> mojito start
-
-Then view in a browser;
-
-http://localhost:8666/
-
-You can click on the text.
View
9 examples/simple/part8/routes.json
@@ -1,9 +0,0 @@
-[{
- "settings": [ "master" ],
-
- "index": {
- "verbs": ["get"],
- "path": "/",
- "call": "myBase.index"
- }
-}]
View
7 examples/simple/part8/server.js
@@ -1,7 +0,0 @@
-/*
- * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
- * Copyrights licensed under the New BSD License.
- * See the accompanying LICENSE file for terms.
- */
-
-module.exports = require('mojito').createServer({dir:__dirname});

0 comments on commit 720a5f0

Please sign in to comment.