From 9edf7f879543385ad8a6474375397a8d21a226fe Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 15 Apr 2017 14:19:56 +0000
Subject: [PATCH] Remove decodeEntities function that is no longer needed

---
 index.js  |    2 +-
 common.js |    7 -------
 2 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/common.js b/common.js
index 1f236aa..32022dc 100644
--- a/common.js
+++ b/common.js
@@ -159,10 +159,3 @@
 	deleteChildren(element);
 	element.appendChild(document.createTextNode(text));
 }
-
-// Other functions
-var decodeEntitiesTextArea = document.createElement('textarea');
-function decodeEntities(text) {
-	decodeEntitiesTextArea.innerHTML = text;
-	return decodeEntitiesTextArea.value;
-}
diff --git a/index.js b/index.js
index 30ff195..ea79123 100644
--- a/index.js
+++ b/index.js
@@ -387,7 +387,7 @@
 			if(data[i].id > 6000) continue;
 			var opt = document.createElement('option');
 			opt.value = data[i].id;
-			setText(opt, decodeEntities(data[i].name));
+			setText(opt, data[i].name);
 			stop_name_autocomplete.appendChild(opt);
 		}
 		

--
Gitblit v1.9.1