Revision | 0108332721bce4783d3ce6b36d24cf1fed590962 (tree) |
---|---|
Zeit | 2017-09-24 18:39:33 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
Support browsers that doesn't support String.normalize
@@ -176,6 +176,10 @@ window.addEventListener && window.addEventListener('DOMContentLoaded', function( | ||
176 | 176 | } |
177 | 177 | function prepareKanaMap() { |
178 | 178 | if (kanaMap !== null) return; |
179 | + if (!String.prototype.normalize) { | |
180 | + kanaMap = {}; | |
181 | + return; | |
182 | + } | |
179 | 183 | var dakuten = '\uFF9E'; |
180 | 184 | var maru = '\uFF9F'; |
181 | 185 | var map = {}; |