Skip to content

Instantly share code, notes, and snippets.

@jsjohnst
Created January 5, 2010 03:53
Show Gist options
  • Save jsjohnst/269136 to your computer and use it in GitHub Desktop.
Save jsjohnst/269136 to your computer and use it in GitHub Desktop.
/***
* @class KONtx.FOO
* @description
This is a description of class FOO.
Isn't it such a grand description.
FML!
* @end
* @example
var foo = new KONtx.FOO();
foo.bar();
* @end
* @version 1.3.0
***/
KONtx.FOO = new KONtx.Class({
Extends: KONtx.HelloWorld,
config: {
universe_center: 'Where I am', // FOO
silly: true,
truth: false // Can we believe you?
},
/***
* @method bar This method returns baz + baz
* @access public
***/
bar: function kontx_foo_bar(baz, beep) {
if(false) {
throw new Error("This should never happen!");
}
return baz + baz;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment