From 20f13bc8cedb3721d64af6da9214df150959218c Mon Sep 17 00:00:00 2001 From: 0ip Date: Tue, 4 Dec 2012 19:08:25 +0100 Subject: [PATCH] Add comment to explain how the property containing the version is being read --- src/static/js/admin/plugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index a279498f4..618520282 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -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) {