Skip to content

Commit

Permalink
Merge pull request tastejs#589 from callmehiphop/gh-pages
Browse files Browse the repository at this point in the history
Updated Enyo/Backbone lab to not remove the Learn sidebar.
  • Loading branch information
stephenplusplus committed Jun 4, 2013
2 parents cd885dd + e5ba68d commit 2843490
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
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);
});

0 comments on commit 2843490

Please sign in to comment.