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