renamed nonce var hcourse
authorSeth Woodworth <seth@sethish.com>
Sun, 15 Jan 2012 15:34:07 +0000 (10:34 -0500)
committerSeth Woodworth <seth@sethish.com>
Sun, 15 Jan 2012 15:34:07 +0000 (10:34 -0500)
models.js

index ee349313c8d557f540c17676c056c4798a317f5b..bf83af792a49fdfb2deb3823378fb66088007ab5 100644 (file)
--- a/models.js
+++ b/models.js
@@ -180,7 +180,7 @@ var HarvardCourses = new Schema( {
 });
 
 HarvardCourses.virtual( 'sanitized' ).get(function() {
-    var class = {
+    var hcourse = {
         _id     : this._id,
         title   : this.name,
         field   : this.field,
@@ -191,7 +191,7 @@ HarvardCourses.virtual( 'sanitized' ).get(function() {
         room    : this.room,
         faculty : this.faculty
         }
-    return class
+    return hcourse
 })
 
 // courses