1 // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
4 * This method will be called at the start of exports.transform in ManagedReference.html.primary.js
6 exports.preTransform = function (model) {
7 function applyDefaultPrivilegeLevel(item) {
8 if (item.privilege && !item.privlevel) {
9 //console.log('Default "public" privilege for ' + item.uid);
10 item.privlevel = 'public';
13 for (var i=0, len=item.children.length; i < len; i++) {
14 applyDefaultPrivilegeLevel(item.children[i]);
18 applyDefaultPrivilegeLevel(model);
23 * This method will be called at the end of exports.transform in ManagedReference.html.primary.js
25 exports.postTransform = function (model) {