Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1824)

Unified Diff: chrome/common/extensions/docs/server2/jsc_view.py

Issue 2714773003: Extension Docs: Correct how enum values are rendered. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/jsc_view.py
diff --git a/chrome/common/extensions/docs/server2/jsc_view.py b/chrome/common/extensions/docs/server2/jsc_view.py
index 2bf46d709ab56e10792650061310f7ed429ca0c2..0bdfe1e8eeb7a3b5e289cbd68a93a65ffd5f9a8b 100644
--- a/chrome/common/extensions/docs/server2/jsc_view.py
+++ b/chrome/common/extensions/docs/server2/jsc_view.py
@@ -429,6 +429,7 @@ class _JSCViewBuilder(object):
for value in type_.enum_values]
if len(dst_dict['enum_values']) > 0:
dst_dict['enum_values'][-1]['last'] = True
+ dst_dict['enum_values'][0]['first'] = True
elif type_.instance_of is not None:
dst_dict['simple_type'] = type_.instance_of
else:
« no previous file with comments | « chrome/common/extensions/docs/server2/app.yaml ('k') | chrome/common/extensions/docs/templates/private/type.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698