Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comments and junk

  • Loading branch information...
commit 0531535389f344e565c5815277c4382bd7ddeb2e 1 parent f332753
Gus authored
Showing with 13 additions and 10 deletions.
  1. +2 −2 README.md
  2. +1 −1  grunt.js
  3. +10 −7 lib/lilmodel.js
4 README.md
View
@@ -1,4 +1,4 @@
-# model
+# lilmodel
The best project ever.
@@ -23,5 +23,5 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
_(Nothing yet)_
## License
-Copyright (c) 2012 August Hovland
+Copyright (c) 2012 August Hovland
Licensed under the MIT license.
2  grunt.js
View
@@ -36,4 +36,4 @@ module.exports = function(grunt) {
// Default task.
grunt.registerTask('default', 'lint test');
-};
+};
17 lib/lilmodel.js
View
@@ -1,8 +1,8 @@
/**
* lilmodel
- * https://github.com/ahovland-nokia/model
+ * https://github.com/gushov/lilmodel
*
- * Copyright (c) 2012 August Hovland
+ * Copyright (c) 2012 Gus Hovland
* Licensed under the MIT license.
*/
@@ -84,7 +84,7 @@
if (validator.isValid) {
sync(method, this, next);
} else {
- next(validator.error);
+ next(validator.error, this);
}
},
@@ -110,10 +110,13 @@
sync('delete', this, next);
},
- //******** DELETE TEMP FUNCTION*********//
- serialize: function () {
- return this;
+ /**
+ * Call next with self
+ */
+ next: function (next) {
+ next(null, this);
}
+
};
exports.sync = function (handler) {
@@ -169,4 +172,4 @@
};
-}(typeof exports === 'undefined' ? (this.lilmodel = {}) : exports));
+}(typeof exports === 'object' && exports || (this.lilmodel = {})));
Please sign in to comment.
Something went wrong with that request. Please try again.