Add comment to explain how the property containing the version is being read
This commit is contained in:
parent
1fc5519c86
commit
20f13bc8ce
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue