Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unify answer templates

  * Include `define` definition everywhere
  * Do not require underscore
  • Loading branch information...
commit 974563ce164ebc6dbf5ed0c31c3b82bd2475dcb3 1 parent afbdb65
@adrianheine adrianheine authored
Showing with 4 additions and 2 deletions.
  1. +2 −0  app/async.js
  2. +1 −1  app/flowControl.js
  3. +1 −1  app/logicalOperators.js
View
2  app/async.js
@@ -1,3 +1,5 @@
+if (typeof define !== 'function') { var define = require('amdefine')(module); }
+
define(function() {
return {
async : function() {
View
2  app/flowControl.js
@@ -1,6 +1,6 @@
if (typeof define !== 'function') { var define = require('amdefine')(module); }
-define([ 'use!underscore' ], function(_) {
+define(function() {
return {
fizzBuzz : function(num) {
// write a function that receives a number as its argument;
View
2  app/logicalOperators.js
@@ -1,6 +1,6 @@
if (typeof define !== 'function') { var define = require('amdefine')(module); }
-define([ 'use!underscore' ], function(_) {
+define(function() {
return {
or : function(a, b) {
Please sign in to comment.
Something went wrong with that request. Please try again.