Fix lint errors

This commit is contained in:
yflory
2017-05-09 18:10:02 +02:00
parent 50c8a859e6
commit ff16084719
6 changed files with 22 additions and 33 deletions

View File

@@ -91,7 +91,7 @@ define([
};
}());
var getHeadingText = function () {
exp.getHeadingText = function () {
var lines = editor.getValue().split(/\n/);
var text = '';

View File

@@ -4,7 +4,7 @@ define(function () {
module.create = function (UserList, Title, cfg) {
var exp = {};
var updateMetadata = exp.update = function (shjson) {
exp.update = function (shjson) {
// Extract the user list (metadata) from the hyperjson
var json = (!shjson || typeof shjson !== "string") ? "" : JSON.parse(shjson);
var titleUpdated = false;

View File

@@ -24,7 +24,7 @@ define(function () {
var $title;
exp.setToolbar = function (toolbar) {
$title = toolbar && toolbar.title;
}
};
exp.getTitle = function () { return exp.title; };
var isDefaultTitle = exp.isDefaultTitle = function (){return exp.title === exp.defaultTitle;};
@@ -73,7 +73,7 @@ define(function () {
onRename: renameCb,
suggestName: suggestTitle,
defaultName: exp.defaultTitle
}
};
};
return exp;