--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.jshintrc Sat Jul 01 00:45:09 2017 +0800
+ "curly" : true, // true: Require {} for every new block or scope
+ "eqeqeq" : true, // true: Require triple equals (===) for comparison
+ "globals" : {"_": false, "Backbone": false}
--- a/static/js/backbone.shard.js Sat Jul 01 00:34:05 2017 +0800
+++ b/static/js/backbone.shard.js Sat Jul 01 00:45:09 2017 +0800
.on('all', function(event, model) {
- if (event == 'change') {
+ if (event === 'change') {
if (this._filter(model) && _(this.models).contains(model)) {
this.trigger.apply(this, arguments);
--- a/static/js/framework/models.js Sat Jul 01 00:34:05 2017 +0800
+++ b/static/js/framework/models.js Sat Jul 01 00:45:09 2017 +0800
var Model = Backbone.Model.extend({
var url = Backbone.Model.prototype.url.call(this);
- return url[url.length - 1] == '/' ? url : url + '/';
+ return url[url.length - 1] === '/' ? url : url + '/';
--- a/static/js/framework/views/base.js Sat Jul 01 00:34:05 2017 +0800
+++ b/static/js/framework/views/base.js Sat Jul 01 00:45:09 2017 +0800
initialize: function(options) {
if ('plurals' in options) {
this.makeTitle = function(n) {
- return n + ' ' + options.plurals[n == 1 ? 0 : 1];
+ return n + ' ' + options.plurals[n === 1 ? 0 : 1];
--- a/static/js/ui.js Sat Jul 01 00:34:05 2017 +0800
+++ b/static/js/ui.js Sat Jul 01 00:45:09 2017 +0800
fruitbar.xhrs.done = function() {
return _(this).all(function(xhr) {
- return xhr.readyState == 4;
+ return xhr.readyState === 4;
fruitbar.xhrs.abort = function() {