From 86330e922dfa2e3deba70df4dd174ac961299617 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 10 Aug 2015 06:28:06 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=A2=20Adding=20css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle.js | 634 +++++++++++++++++++++++++++------------------- index.html | 4 +- js/app.js | 11 +- package.json | 2 + webpack.config.js | 7 +- 5 files changed, 390 insertions(+), 268 deletions(-) diff --git a/bundle.js b/bundle.js index 0f458e5..74b48b0 100644 --- a/bundle.js +++ b/bundle.js @@ -46,12 +46,14 @@ /*global app, $on */ __webpack_require__(1); - __webpack_require__(2); - __webpack_require__(3); - __webpack_require__(4); __webpack_require__(5); - __webpack_require__(6); + //require('todomvc-common'); __webpack_require__(7); + __webpack_require__(8); + __webpack_require__(9); + __webpack_require__(10); + __webpack_require__(11); + __webpack_require__(12); (function () { 'use strict'; @@ -68,277 +70,387 @@ this.controller = new app.Controller(this.model, this.view); } - var todo = new Todo('todos-vanillajs'); + var todo; function setView() { todo.controller.setView(document.location.hash); } - $on(window, 'load', setView); + + $on(window, 'load', function() { + todo = new Todo('todos-vanillajs'); + setView(); + }); $on(window, 'hashchange', setView); })(); /***/ }, /* 1 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - /* global _ */ - (function () { - 'use strict'; + // style-loader: Adds some css to the DOM by adding a