jshint compliance. gotta keep those tests green
This commit is contained in:
@@ -2,6 +2,7 @@ define([
|
|||||||
'/bower_components/hyperjson/hyperjson.js',
|
'/bower_components/hyperjson/hyperjson.js',
|
||||||
'/bower_components/jquery/dist/jquery.min.js',
|
'/bower_components/jquery/dist/jquery.min.js',
|
||||||
], function (Hyperjson) {
|
], 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 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);
|
var hjson = JSON.parse(shjson);
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
define(function () {
|
define([
|
||||||
|
'/bower_components/jquery/dist/jquery.min.js',
|
||||||
|
], function () {
|
||||||
|
var $ = window.jQuery;
|
||||||
var Clipboard = {};
|
var Clipboard = {};
|
||||||
|
|
||||||
// copy arbitrary text to the clipboard
|
// copy arbitrary text to the clipboard
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ define([
|
|||||||
var setPadAttribute = common.setPadAttribute = function (attr, value, cb) {
|
var setPadAttribute = common.setPadAttribute = function (attr, value, cb) {
|
||||||
Store.set([getHash(), attr].join('.'), value, function (err, data) {
|
Store.set([getHash(), attr].join('.'), value, function (err, data) {
|
||||||
cb(err, data);
|
cb(err, data);
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var getPadAttribute = common.getPadAttribute = function (attr, cb) {
|
var getPadAttribute = common.getPadAttribute = function (attr, cb) {
|
||||||
@@ -95,7 +95,7 @@ define([
|
|||||||
if (recentPadsStr) {
|
if (recentPadsStr) {
|
||||||
try {
|
try {
|
||||||
recentPads = JSON.parse(recentPadsStr);
|
recentPads = JSON.parse(recentPadsStr);
|
||||||
} catch (err) {
|
} catch (E) {
|
||||||
// couldn't parse the localStorage?
|
// couldn't parse the localStorage?
|
||||||
// just overwrite it.
|
// just overwrite it.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user