hooks.js (296B)
1export { hooks, setHookCallback }; 2 3var hookCallback; 4 5function hooks() { 6 return hookCallback.apply(null, arguments); 7} 8 9// This is done to register the method called with moment() 10// without creating circular dependencies. 11function setHookCallback(callback) { 12 hookCallback = callback; 13}