diff --git a/scripts/ex/class.js b/scripts/ex/class.js new file mode 100644 index 0000000..2ad90b7 --- /dev/null +++ b/scripts/ex/class.js @@ -0,0 +1,14 @@ +/** + * Basic class declaration example + */ + +var Dog = Class( 'Dog', +{ + 'public bark': function() + { + console.log( 'Woof!' ); + } +} ); + +Dog().bark(); + diff --git a/scripts/ui.js b/scripts/ui.js index 94bd016..6644cea 100644 --- a/scripts/ui.js +++ b/scripts/ui.js @@ -61,6 +61,13 @@ return $trybox || ( function createTryBox() { + $txt = $( '