Skip to content

Commit

Permalink
Added comments to TaskFactory.js
Browse files Browse the repository at this point in the history
  • Loading branch information
druttka committed Dec 31, 2012
1 parent 4ec2ccc commit afe73b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/TaskFactory.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
var Hodor = Hodor || {};

// In the browser, reference Task.js. In node / mocha testing, we'll require it
// In the browser, there should be a preceding reference to Task.js.
// Running the tests in mocha on node, we'll use require to bring it in.
var Task = Hodor.Task || require("./Task.js");

Hodor.TaskFactory = (function(){


// object literal should do for now??
var TaskFactory = {
create: function(f){
return new Task(f);
Expand Down

0 comments on commit afe73b2

Please sign in to comment.