Template:GenericEventProperties

  • Revision slug: Template:GenericEventProperties
  • Revision title: Template:GenericEventProperties
  • Revision id: 432039
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

<% // make sure that we have an array of properties if ( !( $0 instanceof Array ) ) { $0 = [$0]; } var i = -1, length = $0.length, prop; // loop on the properties while ( ++i < length ) { prop = $0[i]; %> <%= $prop.name; %> <%- template("readOnlyInline") %> <%= $prop.type; %> <%= $prop.description; %> <% } %>

Revision Source

<%
// make sure that we have an array of properties
if ( !( $0 instanceof Array ) ) { $0 = [$0]; }
  
var i = -1,
    length = $0.length,
    prop;

// loop on the properties
while ( ++i < length ) {
    prop = $0[i];

%><tr>
  <td><code><%= $prop.name; %></code> <%- template("readOnlyInline") %></td>
  <td><%= $prop.type; %></td>
  <td><%= $prop.description; %></td>
</tr><%

} %>
Revert to this revision