Add comment to explain how the property containing the version is being read

This commit is contained in:
0ip 2012-12-04 19:08:25 +01:00
parent 1fc5519c86
commit 20f13bc8ce

View file

@ -114,6 +114,7 @@ $(document).ready(function () {
var plugin = data.results[plugin_name]; var plugin = data.results[plugin_name];
var row = widget.find(".template tr").clone(); var row = widget.find(".template tr").clone();
var version = '0.0.0'; var version = '0.0.0';
// hack to access "versions" property of the npm package object
for (version in data.results[plugin_name].versions) break; for (version in data.results[plugin_name].versions) break;
for (attr in plugin) { for (attr in plugin) {