Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit f3dc94c

Browse files
committed
Add simon game example and remove old files.
1 parent 47cf4ec commit f3dc94c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+27
-32519
lines changed

examples/assets/scripts/App.js renamed to examples/SimonGame/assets/scripts/App.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,18 @@
33
*/
44
require(
55
[
6-
'example1/SimonApp',
7-
'example2/EventBubblingApp',
6+
'SimonApp',
87
'jquery'
98
],
109
function(
1110
SimonApp,
12-
EventBubblingApp,
1311
$
1412
) {
1513
'use strict';
1614

1715
$(document).ready(function () {
1816
var simon = new SimonApp();
1917
simon.appendTo('.js-simonApp');
20-
21-
var bubbling = new EventBubblingApp();
22-
bubbling.appendTo('.js-eventBubblingApp');
2318
});
2419
}
2520
);

examples/assets/scripts/example1/SimonApp.js renamed to examples/SimonGame/assets/scripts/SimonApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ define(function (require, exports, module) { // jshint ignore:line
99
var BaseEvent = require('structurejs/event/BaseEvent');
1010
var TimerEvent = require('structurejs/event/TimerEvent');
1111

12-
var DeviceView = require('example1/view/DeviceView');
13-
var GameVO = require('example1/model/GameVO');
12+
var DeviceView = require('view/DeviceView');
13+
var GameVO = require('model/GameVO');
1414

1515
/**
1616
* Application code for a memory skill game.

examples/assets/scripts/example1/components/DeviceButton.js renamed to examples/SimonGame/assets/scripts/components/DeviceButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ define(function (require, exports, module) { // jshint ignore:line
77
var BaseEvent = require('structurejs/event/BaseEvent');
88

99
var DeviceButtonTemplate = require('hbs!templates/DeviceButtonTemplate');
10-
var GameVO = require('example1/model/GameVO');
10+
var GameVO = require('model/GameVO');
1111

1212
/**
1313
* A generic button class to be used to create the four different colored buttons.

examples/assets/scripts/config.js renamed to examples/SimonGame/assets/scripts/config.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require.config({
1010
jquery: '../vendor/jquery/jquery-1.9.1',
1111
lodash: '../vendor/lodash/lodash.compat',
1212
handlebars: '../vendor/handlebars/handlebars-v1.3.0',
13-
structurejs: '../../../src/',
13+
structurejs: '../../../../src/',
1414

1515
//shortcut paths
1616
templates: '../templates',
@@ -20,28 +20,16 @@ require.config({
2020
text: '../vendor/require/text',
2121
tpl: '../vendor/require/tpl',
2222
json: '../vendor/require/json',
23-
hbs: '../vendor/require-handlebars-plugin/hbs',
24-
25-
//jquery plugins
26-
'bootstrap': '../vendor/bootstrap/bootstrap',
27-
28-
//other plugins
29-
json2: '../vendor/json2'
23+
hbs: '../vendor/require-handlebars-plugin/hbs'
3024
},
3125

3226
shim: {
3327
jquery: {
3428
exports: '$'
3529
},
36-
'bootstrap': {
37-
deps: ['jquery']
38-
},
3930
lodash: {
4031
exports: '_'
4132
},
42-
json2: {
43-
exports: 'JSON'
44-
},
4533
handlebars: {
4634
exports: 'Handlebars'
4735
}
@@ -55,7 +43,5 @@ require.config({
5543
partialsUrl: ''
5644
},
5745
deps: [
58-
'json2',
59-
'handlebars'
6046
]
6147
});

examples/assets/scripts/example1/view/DeviceView.js renamed to examples/SimonGame/assets/scripts/view/DeviceView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ define(function (require, exports, module) { // jshint ignore:line
55
var Extend = require('structurejs/util/Extend');
66
var DOMElement = require('structurejs/display/DOMElement');
77

8-
var DeviceButton = require('example1/components/DeviceButton');
8+
var DeviceButton = require('components/DeviceButton');
99

1010
/**
1111
* The parent view that holds onto the colored buttons.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy