Skip to content

Instantly share code, notes, and snippets.

@junichiro
Created January 25, 2010 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junichiro/285713 to your computer and use it in GitHub Desktop.
Save junichiro/285713 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
var d = new MyApp();
d.init();
});
if( typeof( window.MyApp ) == "undefined") {
// MyApp コンストラクタ
var MyApp = function() { return this; };
// Version
MyApp.VERSION = '0.01';
// MyApp オブジェクトのプロパティ
MyApp.prototype.basepath = '';
MyApp.prototype.lock = '0';
MyApp.prototype.wait_minutes = 1;
MyApp.prototype.timer_started = '0';
MyApp.prototype.init = function ( arg ) {
var __this = this;
__this.status_init( arg );
__this.event_init( arg );
}
MyApp.prototype.status_init = function ( arg ) {
// code
}
MyApp.prototype.event_init = function ( arg ) {
// code
}
MyApp.prototype.myfunc = function ( arg ) {
// code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment