jshint compliance

pull/1/head
ansuz 8 years ago
parent 3ba94a1ba2
commit d187945e94

@ -103,10 +103,10 @@ Version 1
if (!href) { return ret; }
if (href.slice(-1) !== '/') { href += '/'; }
var idx;
if (!/^https*:\/\//.test(href)) {
var idx = href.indexOf('/#');
idx = href.indexOf('/#');
ret.type = href.slice(1, idx);
ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash);
@ -118,7 +118,7 @@ Version 1
ret.type = type;
return '';
});
var idx = href.indexOf('/#');
idx = href.indexOf('/#');
ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash);
return ret;

@ -3,7 +3,7 @@ define([
'/bower_components/marked/marked.min.js',
'/bower_components/diff-dom/diffDOM.js'
],function ($, Marked) {
var DiffMd = {}
var DiffMd = {};
var DiffDOM = window.diffDOM;
var renderer = DiffMd.renderer = new Marked.Renderer();
@ -90,7 +90,7 @@ define([
return patch;
};
var apply = DiffMd.apply = function (newHtml, $content) {
DiffMd.apply = function (newHtml, $content) {
var id = $content.attr('id');
if (!id) { throw new Error("The element must have a valid id"); }
var $div = $('<div>', {id: id}).append(newHtml);

@ -172,7 +172,7 @@ define([
};
exp.uploadCancel = function (cb) {
rpc.send('UPLOAD_CANCEL', void 0, function (e, res) {
rpc.send('UPLOAD_CANCEL', void 0, function (e) {
if (e) { return void cb(e); }
cb();
});

Loading…
Cancel
Save