aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-10 20:12:07 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-10 20:12:07 -0800
commit5150cdbf72421f6c37f27d93fb8965dc38bea625 (patch)
tree0637e9b23e5c5a9e4946b896794f4083398cdef4 /ext/fg/js
parent19ffd1a0d35afbd06d5c6cb869ff13728d6ea483 (diff)
misc bug fixes, version bump1.1.2
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/display-frame.js2
-rw-r--r--ext/fg/js/source-element.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/display-frame.js b/ext/fg/js/display-frame.js
index bd070b63..bc2e15df 100644
--- a/ext/fg/js/display-frame.js
+++ b/ext/fg/js/display-frame.js
@@ -61,7 +61,7 @@ window.displayFrame = new class extends Display {
api_showKanjiDefs({definitions, options, context}) {
window.scrollTo(0, 0);
- this.showKanjiDefs(defintions, options, context);
+ this.showKanjiDefs(definitions, options, context);
}
api_showOrphaned() {
diff --git a/ext/fg/js/source-element.js b/ext/fg/js/source-element.js
index d3cc42a1..69fbc5ab 100644
--- a/ext/fg/js/source-element.js
+++ b/ext/fg/js/source-element.js
@@ -39,7 +39,7 @@ class TextSourceElement {
case 'IMG':
return this.element.getAttribute('alt');
default:
- return this.element.value;
+ return this.element.value || '';
}
}