Skip to content

Commit

Permalink
bumped version, fixed typo in Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Demedes committed May 12, 2012
1 parent ce7a117 commit 92d8c46
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -91,7 +91,7 @@ post.save(); // will be prepended to #posts

# Tests

Run tests by opening **test/test.hmtl** in browser.
Run tests by opening **test/test.html** in browser.

# Contributing

Expand Down
2 changes: 1 addition & 1 deletion dist/jewel.js
@@ -1,4 +1,4 @@
/*! Jewel - v0.1.0 - 2012-05-12
/*! Jewel - v0.1.1 - 2012-05-12
* http://github.com/vdemedes/jewel/
* Copyright (c) 2012 Vadim Demedes; Licensed MIT */

Expand Down
2 changes: 1 addition & 1 deletion dist/jewel.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion grunt.js
Expand Up @@ -4,7 +4,7 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
meta: {
version: '0.1.0',
version: '0.1.1',
banner: '/*! Jewel - v<%= meta.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'* http://github.com/vdemedes/jewel/\n' +
Expand Down
10 changes: 5 additions & 5 deletions lib/jewel.coffee
Expand Up @@ -18,7 +18,7 @@ class Jewel
model.find(limit: 1)[0]

model.__defineGetter__ 'last', ->
model.find(limit: 1, order: 'DESC')[0]
model.find(limit: 1, order: 'desc')[0]

model::model = model.model = model
model
Expand All @@ -42,12 +42,12 @@ class Model
results = undefined
if items.length > 0
if options.skip or options.limit or options.order
if options.order == 'DESC'
i = items.length-1
modifier = -1;
if options.order.toLowerCase() is 'desc'
i = items.length - 1
modifier = -1
else
i = 0
modifier = 1;
modifier = 1
results = []
loop_times = 0

Expand Down

0 comments on commit 92d8c46

Please sign in to comment.