jshint compliance. gotta keep those tests green

This commit is contained in:
ansuz 2016-07-28 17:52:26 +02:00
parent 1f24d7126c
commit 0ada6a3d0a
3 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,7 @@ define([
'/bower_components/hyperjson/hyperjson.js',
'/bower_components/jquery/dist/jquery.min.js',
], function (Hyperjson) {
var $ = window.jQuery;
var shjson = '["BODY",{"class":"cke_editable cke_editable_themed cke_contents_ltr cke_show_borders","spellcheck":"false"},[["P",{},["This is ",["STRONG",{},["CryptPad"]],", the zero knowledge realtime collaborative editor.",["BR",{},[]],"What you type here is encrypted so only people who have the link can access it.",["BR",{},[]],"Even the server cannot see what you type."]],["P",{},[["SMALL",{},[["I",{},["What you see here, what you hear here, when you leave here, let it stay here"]]]],["BR",{"type":"_moz"},[]]]]]]';
var hjson = JSON.parse(shjson);

View File

@ -1,4 +1,7 @@
define(function () {
define([
'/bower_components/jquery/dist/jquery.min.js',
], function () {
var $ = window.jQuery;
var Clipboard = {};
// copy arbitrary text to the clipboard

View File

@ -79,7 +79,7 @@ define([
var setPadAttribute = common.setPadAttribute = function (attr, value, cb) {
Store.set([getHash(), attr].join('.'), value, function (err, data) {
cb(err, data);
})
});
};
var getPadAttribute = common.getPadAttribute = function (attr, cb) {
@ -95,7 +95,7 @@ define([
if (recentPadsStr) {
try {
recentPads = JSON.parse(recentPadsStr);
} catch (err) {
} catch (E) {
// couldn't parse the localStorage?
// just overwrite it.
}