Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a couple of JSHint warnings regardings semicolons.

  • Loading branch information...
commit 3326175f1a88e15e2dd0c3a53edb838ea061b060 1 parent 79352be
@NilsLattek authored
View
3  client/js/build.js
@@ -22,8 +22,7 @@
},
{
- name: "main",
- //exclude: ["zepto"]
+ name: "main"
}
]
})
View
4 client/js/views/entries-list.js
@@ -1,11 +1,13 @@
define([
'zepto'
+ , 'underscore'
, 'backbone'
, 'handlebars'
, 'text!templates/entries-list.handlebars'
, 'views/entry-item'
], function(
$
+ , _
, Backbone
, Handlebars
, template
@@ -19,7 +21,7 @@ define([
template: Handlebars.compile(template),
events: {
- "keypress #new-entry": "createOnEnter",
+ "keypress #new-entry": "createOnEnter"
},
initialize: function() {
View
2  client/js/views/entry-item.js
@@ -1,10 +1,12 @@
define([
'zepto'
+ , 'underscore'
, 'backbone'
, 'handlebars'
, 'text!templates/entry-item.handlebars'
], function(
$
+ , _
, Backbone
, Handlebars
, template
View
2  client/js/views/page.js
@@ -12,6 +12,6 @@ define([
if (this.onClose){
this.onClose();
}
- }
+ };
});
View
6 server/controllers/entries.js
@@ -8,7 +8,7 @@ module.exports = {
}
res.json(entries);
- })
+ });
},
@@ -25,6 +25,6 @@ module.exports = {
// when using a database you would return the inserted object, with the new id
res.json(req.body);
- })
+ });
}
-}
+};
View
4 server/models/entry.js
@@ -12,7 +12,7 @@ var Entry = function() {
Entry.all = function(callback) {
if (callback) callback(null, entries);
-}
+};
Entry.add = function(entry, callback) {
// validate using shared module
@@ -26,6 +26,6 @@ Entry.add = function(entry, callback) {
entries.push(entry);
if (callback) callback(null);
-}
+};
module.exports = Entry;
View
4 shared/js/entry-validation.js
@@ -1,5 +1,5 @@
// https://github.com/jrburke/amdefine
-if (typeof define !== 'function') { var define = require('amdefine')(module) }
+if (typeof define !== 'function') { var define = require('amdefine')(module); }
/* require additional modules if needed
define('entry-validation', ['./other-module.js'], function (other-module) {*/
@@ -11,5 +11,5 @@ define('entry-validation', [], function () {
return 'Name should not be empty.';
}
}
- }
+ };
});
View
10 test/server/controllers/entries.test.js
@@ -20,7 +20,7 @@ describe('EntriesController', function() {
// db connection
// create test data
done();
- })
+ });
describe('#index()', function() {
it('should return one entry', function(done) {
@@ -28,10 +28,10 @@ describe('EntriesController', function() {
var string = JSON.stringify(json);
expect(string).to.eql('[{"name":"Contribute to open source"}]');
done();
- }
+ };
entriesController.index(req, res);
- })
- })
+ });
+ });
-})
+});
View
8 test/shared/entry-validation.test.js
@@ -6,11 +6,11 @@ describe('EntryValidation', function() {
it('returns something when no name value is provided', function() {
var result = entryValidation.validate({ "test": "test" });
expect(result).to.be.ok();
- })
+ });
it('returns nothing when a name value is provided', function() {
var result = entryValidation.validate({ "name": "test" });
expect(result).to.not.be.ok();
- })
- })
-})
+ });
+ });
+});
Please sign in to comment.
Something went wrong with that request. Please try again.