This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'routers/base' | |
], function (BaseRouter) { | |
"use strict"; | |
return BaseRouter.extend({ | |
appRoutes: { | |
'groups': 'showGroups', | |
'groups/:id': 'showLearners' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'marionette', | |
'views/layouts/groups', | |
'views/group/collection', | |
'views/learner/collection', | |
'collections/api/group', | |
'collections/api/learner' | |
], function ( | |
Marionette, | |
GroupsLayout, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'marionette', | |
'collections/client/tab', | |
'views/tab/model' | |
], function (Marionette, TabCollection, TabModelView) { | |
"use strict"; | |
return Marionette.CollectionView.extend({ | |
initialize: function (options) { | |
this.setSelected(options.id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Jasmine Spec Runner</title> | |
<script data-main="./app/scripts/config.js" src="./app/scripts/lib/require.js"></script> | |
<link rel="stylesheet" type="text/css" href="./node_modules/grunt-contrib-jasmine/vendor/jasmine-1.3.0/jasmine.css"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Jasmine Spec Runner</title> | |
<script data-main="./<%= options.requireConfig.config %>" src="<%= options.requireConfig.requirejs %>"></script> | |
<% css.forEach(function(style){ %> | |
<link rel="stylesheet" type="text/css" href="<%= style %>"> | |
<% }) %> | |
<% with (scripts) { %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
// Metadata. | |
pkg: grunt.file.readJSON('package.json'), | |
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | |
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
// Metadata. | |
pkg: grunt.file.readJSON('package.json'), | |
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + | |
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | |
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require([ | |
// Core | |
'app', | |
'backbone', | |
'marionette', | |
// Plugins & Patches | |
'string', | |
'jquery.cookie', | |
'marionette.formview' | |
], function (app, Backbone, Marionette) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.config({ | |
deps: ["main"], | |
paths: { | |
// Core | |
'jquery': 'lib/jquery', | |
'underscore': 'lib/underscore', | |
'json2': 'lib/json2', | |
'backbone': 'lib/backbone', | |
'marionette': 'lib/backbone.marionette', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global Backbone,define*/ | |
;(function (root, factory) { | |
"use strict"; | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(['marionette','jquery','underscore'], factory); | |
} else { | |
// Browser globals | |
root.Marionette.FormView = factory(root.Marionette,root.jQuery,root._); |