From ecec9cbd1299f4de65538fbf56d2e61139d7c21a Mon Sep 17 00:00:00 2001 From: Simon Elliott Date: Thu, 14 Nov 2013 13:02:04 +0000 Subject: [PATCH] update scaffold --- grunt-scaffold/root/src/main.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/grunt-scaffold/root/src/main.js b/grunt-scaffold/root/src/main.js index ae90afc..e543fbb 100644 --- a/grunt-scaffold/root/src/main.js +++ b/grunt-scaffold/root/src/main.js @@ -4,13 +4,11 @@ define([ 'css!compiled/css/main.css', 'rv!templates/index.html' ], function(require, strings, css, template ) { - return { - Controller: function(opts) { - this.view = new Ractive({ - el: opts.config.el, - template: template, - data: { message: strings.hello + " World" } - }); - } + return function(opts) { + var view = new Ractive({ + el: opts.el, + template: template, + data: { message: strings.hello + " World" } + }); }; });