Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

comments and junk

  • Loading branch information...
commit 0531535389f344e565c5815277c4382bd7ddeb2e 1 parent f332753
Gus authored

Showing 3 changed files with 13 additions and 10 deletions. Show diff stats Hide diff stats

  1. +2 2 README.md
  2. +1 1  grunt.js
  3. +10 7 lib/lilmodel.js
4 README.md
Source Rendered
... ... @@ -1,4 +1,4 @@
1   -# model
  1 +# lilmodel
2 2
3 3 The best project ever.
4 4
@@ -23,5 +23,5 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
23 23 _(Nothing yet)_
24 24
25 25 ## License
26   -Copyright (c) 2012 August Hovland
  26 +Copyright (c) 2012 August Hovland
27 27 Licensed under the MIT license.
2  grunt.js
@@ -36,4 +36,4 @@ module.exports = function(grunt) {
36 36 // Default task.
37 37 grunt.registerTask('default', 'lint test');
38 38
39   -};
  39 +};
17 lib/lilmodel.js
... ... @@ -1,8 +1,8 @@
1 1 /**
2 2 * lilmodel
3   - * https://github.com/ahovland-nokia/model
  3 + * https://github.com/gushov/lilmodel
4 4 *
5   - * Copyright (c) 2012 August Hovland
  5 + * Copyright (c) 2012 Gus Hovland
6 6 * Licensed under the MIT license.
7 7 */
8 8
@@ -84,7 +84,7 @@
84 84 if (validator.isValid) {
85 85 sync(method, this, next);
86 86 } else {
87   - next(validator.error);
  87 + next(validator.error, this);
88 88 }
89 89
90 90 },
@@ -110,10 +110,13 @@
110 110 sync('delete', this, next);
111 111 },
112 112
113   - //******** DELETE TEMP FUNCTION*********//
114   - serialize: function () {
115   - return this;
  113 + /**
  114 + * Call next with self
  115 + */
  116 + next: function (next) {
  117 + next(null, this);
116 118 }
  119 +
117 120 };
118 121
119 122 exports.sync = function (handler) {
@@ -169,4 +172,4 @@
169 172
170 173 };
171 174
172   -}(typeof exports === 'undefined' ? (this.lilmodel = {}) : exports));
  175 +}(typeof exports === 'object' && exports || (this.lilmodel = {})));

0 comments on commit 0531535

Please sign in to comment.
Something went wrong with that request. Please try again.