doc-duplicate-functions.html (619B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 <html> 5 <head> 6 <title>Debugger test page</title> 7 </head> 8 <body> 9 <h1> debugger test page2</h1> 10 <script type="text/javascript"> 11 var func; 12 function a() { 13 function render() { 14 console.log('a'); 15 } 16 func = render; 17 } 18 19 function b() { 20 function render() { 21 console.log('b'); 22 } 23 func = render; 24 } 25 </script> 26 </body> 27 </html>