1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

More coding style consistency

This commit is contained in:
Jermolene 2014-01-03 10:54:00 +00:00
parent 1a74e2538c
commit 027421f5e6
3 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ exports.parse = function() {
this.parser.pos = rowMatch.index + rowMatch[0].length;
} else {
// 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: []};
table.children.push(rowContainer);
currRowType = rowType;

View File

@ -28,7 +28,7 @@ DownloadSaver.prototype.save = function(text,method,callback) {
// Set up the link
var link = document.createElement("a");
link.setAttribute("target","_blank");
if(Blob != undefined) {
if(Blob !== undefined) {
var blob = new Blob([text], {type: "text/html"});
link.setAttribute("href", URL.createObjectURL(blob));
} else {

View File

@ -18,7 +18,7 @@ Code thanks to John Resig, http://ejohn.org/blog/comparing-document-position/
*/
exports.domContains = function(a,b) {
return a.contains ?
a != b && a.contains(b) :
a !== b && a.contains(b) :
!!(a.compareDocumentPosition(b) & 16);
};