Commit 147ede8a authored by Siddhant Sanyam's avatar Siddhant Sanyam

Fixed a spelling mistake, changed back to __proto__ will soon fix that

parent 0f383b3f
...@@ -33,7 +33,7 @@ var JSONTextDocument = function() { ...@@ -33,7 +33,7 @@ var JSONTextDocument = function() {
this.type = "text"; this.type = "text";
} }
JSONTextDocument.prototype = new JSONDocuement(); JSONTextDocument.prototype = new JSONDocument();
JSONTextDocument.prototype.saveEdition = function(content) { JSONTextDocument.prototype.saveEdition = function(content) {
this.setContent(content); this.setContent(content);
......
...@@ -211,7 +211,7 @@ Document.states = { ...@@ -211,7 +211,7 @@ Document.states = {
} }
getCurrentDocument = function() { getCurrentDocument = function() {
var doc = JSON.parse(localStorage.getItem("currentDocument")); var doc = JSON.parse(localStorage.getItem("currentDocument"));
doc.prototype = JSONDocument.prototype; doc.__proto__ = JSONDocument.prototype;
return doc; return doc;
} }
setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON.stringify(doc));} setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON.stringify(doc));}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment