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

pull/1255/head
0ip 2012-12-04 19:08:25 +01:00
parent 1fc5519c86
commit 20f13bc8ce
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ $(document).ready(function () {
var plugin = data.results[plugin_name];
var row = widget.find(".template tr").clone();
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 (attr in plugin) {