Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Enyo/Backbone lab to not remove the Learn sidebar. #589

Merged
merged 1 commit into from
Jun 4, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions labs/dependency-examples/enyo_backbone/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<!doctype html>
<html lang="en">
<html lang="en" data-framework="enyo">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Enyo & Backbone.js • TodoMVC</title>
<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
</head>
<body class="enyo-unselectable">
<!-- Enyo comes with a build and deploy process that will minify and concatenate your files into 2 js files. One for enyo, and one for app code. For the purpose of demonstration, I used the debug loading library to handle the dependency management. The loader nagivates directories for package.js files and injects files they list into the DOM. -->
<script src="bower_components/todomvc-common/base.js"></script>
<script src="enyo/enyo.js"></script>
<script src="js/package.js"></script>
<body>
<div id="todo-container" class="enyo-unselectable">
<!-- Enyo comes with a build and deploy process that will minify and concatenate your files into 2 js files. One for enyo, and one for app code. For the purpose of demonstration, I used the debug loading library to handle the dependency management. The loader nagivates directories for package.js files and injects files they list into the DOM. -->
<script src="bower_components/todomvc-common/base.js"></script>
<script src="enyo/enyo.js"></script>
<script src="js/package.js"></script>
</div>
</body>
</html>
5 changes: 4 additions & 1 deletion labs/dependency-examples/enyo_backbone/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
/*global enyo:false, ToDo:false */
// Once everything is loaded through enyo's dependency management, start the app
enyo.ready(function () {
var container = document.getElementById('todo-container');

window.app = new ToDo.Application();
window.app.render();
// add extra container to prevent enyo from blowing out the learn side bar
window.app.renderInto(container);
});