mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-03 11:28:01 +00:00
More coding style consistency
This commit is contained in:
@@ -149,7 +149,7 @@ exports.parse = function() {
|
|||||||
this.parser.pos = rowMatch.index + rowMatch[0].length;
|
this.parser.pos = rowMatch.index + rowMatch[0].length;
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, create a new row if this one is of a different type
|
// Otherwise, create a new row if this one is of a different type
|
||||||
if(rowType != currRowType) {
|
if(rowType !== currRowType) {
|
||||||
rowContainer = {type: "element", tag: rowContainerTypes[rowType], children: []};
|
rowContainer = {type: "element", tag: rowContainerTypes[rowType], children: []};
|
||||||
table.children.push(rowContainer);
|
table.children.push(rowContainer);
|
||||||
currRowType = rowType;
|
currRowType = rowType;
|
||||||
|
@@ -28,7 +28,7 @@ DownloadSaver.prototype.save = function(text,method,callback) {
|
|||||||
// Set up the link
|
// Set up the link
|
||||||
var link = document.createElement("a");
|
var link = document.createElement("a");
|
||||||
link.setAttribute("target","_blank");
|
link.setAttribute("target","_blank");
|
||||||
if(Blob != undefined) {
|
if(Blob !== undefined) {
|
||||||
var blob = new Blob([text], {type: "text/html"});
|
var blob = new Blob([text], {type: "text/html"});
|
||||||
link.setAttribute("href", URL.createObjectURL(blob));
|
link.setAttribute("href", URL.createObjectURL(blob));
|
||||||
} else {
|
} else {
|
||||||
|
@@ -18,7 +18,7 @@ Code thanks to John Resig, http://ejohn.org/blog/comparing-document-position/
|
|||||||
*/
|
*/
|
||||||
exports.domContains = function(a,b) {
|
exports.domContains = function(a,b) {
|
||||||
return a.contains ?
|
return a.contains ?
|
||||||
a != b && a.contains(b) :
|
a !== b && a.contains(b) :
|
||||||
!!(a.compareDocumentPosition(b) & 16);
|
!!(a.compareDocumentPosition(b) & 16);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user