codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<!doctype html> <html> <head> <title>JSKK Testing</title> </head> <body> <script type="text/javascript" src="js/thirdparty/jskk/jskk.min-1.0.0.js"></script> <script type="text/javascript"> $JSKK.Class.create ( { $namespace: 'application', $name: 'Main' } ) ( { foo: function(){ console.log('static foo function called'); } }, { bar: function(){ console.log('member bar dunction called'); } } ) $JSKK.Class.create ( { $namespace: 'application', $name: 'Sub', $extends: application.Main } ) ( { }, { } ) application.Main.foo(); application.Sub.foo(); // Why does this line fail?? </script> </body> </html>
Private
[
?
]
Run code
Submit