okam-core
Version:
The extension for small program framework
19 lines (15 loc) • 399 B
JavaScript
/**
* @file Page helper
* @author sparklewhy@gmail.com
*/
;
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);
}