Skip to content

Commit fe7a43d

Browse files
committed
createDocument signature for old firefox, fixes ondras#63
1 parent f6c83db commit fe7a43d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

my-mind.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2840,8 +2840,8 @@ MM.Format.FreeMind = Object.create(MM.Format, {
28402840
mime: {value: "application/x-freemind"}
28412841
});
28422842

2843-
MM.Format.FreeMind.to = function(data) {
2844-
var doc = document.implementation.createDocument(null, null);
2843+
MM.Format.FreeMind.to = function(data) {
2844+
var doc = document.implementation.createDocument("", "", null);
28452845
var map = doc.createElement("map");
28462846

28472847
map.setAttribute("version", "0.9.0");

src/format.freemind.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ MM.Format.FreeMind = Object.create(MM.Format, {
55
mime: {value: "application/x-freemind"}
66
});
77

8-
MM.Format.FreeMind.to = function(data) {
9-
var doc = document.implementation.createDocument(null, null);
8+
MM.Format.FreeMind.to = function(data) {
9+
var doc = document.implementation.createDocument("", "", null);
1010
var map = doc.createElement("map");
1111

1212
map.setAttribute("version", "0.9.0");

0 commit comments

Comments
 (0)