Last modified: 2012-10-08 09:07:58 UTC
We noticed that all the members of jQuery.uls.data have changed into functions, which seems a bit strange. In particular, we were using the jQuery.uls.data.autonyms Object before which is a function now. Shouldn't it rather be getAutonyms then? Also for the other functions. Is there a reason to have a function here at all other than restricting other parties write access to the data?
Yes, functions should use verb and objects should use noun naming patterns. This happened in our data structure refactoring. Previously autonyms was a simple object. but now all language data is merged to ISO 639-3 language code key. For eg: as: [Beng, [AS], অসমীয়া] So to abstract this data structure we need functions. Will be fixed soon.
Fixes submitted: * Component: https://github.com/wikimedia/jquery.uls/pull/9 * Extensions: https://gerrit.wikimedia.org/r/#/c/27124/ Tests will be updated after they stabilize in GitHub.