Fix bugs
This commit is contained in:
parent
9ea3837418
commit
2e5c84868c
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ window.leqsikoni = {
|
|||
},
|
||||
|
||||
words_xxxxx: function(word_id) {
|
||||
window.leqsikoni.words_xxxxx_template()
|
||||
$('#app').html(window.leqsikoni.words_xxxxx_template())
|
||||
|
||||
$.getJSON(
|
||||
'http://localhost:4567/words/' + word_id,
|
||||
|
@ -32,7 +32,7 @@ window.leqsikoni = {
|
|||
},
|
||||
|
||||
words_xxxxx_template: function(options) {
|
||||
if (options === null || typeof(options) !== 'object') {
|
||||
if (!options || typeof(options) !== 'object') {
|
||||
options = {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue