kjellouli / Ayat.js

Ayat.js - Generate Quranic Verses by Topics, Languages, Reciters and other Options
MIT License
17 stars 8 forks source link

sample call in readme has a wrong JSON attribute #5

Closed jburb closed 9 years ago

jburb commented 9 years ago

The sample call reads :

$("#container").Ayat({ topic: 'women'...

This attribute should be "theme", not "topic." Passing topic causes the code to consider the theme unset and return random verses, which could be confusing if you haven't looked through the code.

jburb commented 9 years ago

Note that this change has not shown up on the io page. I'm not sure if that gets synched with the readme automatically or something needs to get triggered?

jburb commented 9 years ago

Fixed in gh-pages branch, as well.