UNPKG

okam-core

Version:

The extension for small program framework

19 lines (15 loc) 399 B
/** * @file Page helper * @author sparklewhy@gmail.com */ 'use strict'; import {extractMethodsToOuterContext} from './methods'; /** * Normalize the page information: add methods reference in the page context * * @param {Object} pageInfo the page information to normalize * @return {Object} */ export function normalizePage(pageInfo) { return extractMethodsToOuterContext(pageInfo); }