diff options
author | Felipe Lopez Toledo <zer.subzero@gmail.com> | 2009-09-10 23:20:26 (GMT) |
---|---|---|
committer | Felipe Lopez Toledo <zer.subzero@gmail.com> | 2009-09-10 23:20:26 (GMT) |
commit | 03706675d29817020889ff08b9943fd651f8ef75 (patch) | |
tree | 5c0e3f69d8cff6900252a3ea76f2e320dc41c950 | |
parent | 439049cf4f1b13abf2c28379e32b73a6dcf96c0b (diff) |
some little clean ups
-rwxr-xr-x | js/jquery.karma.js | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/js/jquery.karma.js b/js/jquery.karma.js index 98571c4..7438bb6 100755 --- a/js/jquery.karma.js +++ b/js/jquery.karma.js @@ -31,7 +31,7 @@ /** * @fileOverview Contains karma library -* @version 0.5 +* @version 0.08 * @author Felipe Lopez Toledo <zer.subzero@gmail.com> */ @@ -90,16 +90,17 @@ var clone = function( obj ){ } /** - * Karma - * @name Karma - * @class Represents a Karma (master) object. - * @param {String | Object } options Constructor arguments - * @param {String | Object } [options.container] Target DIV-class that will contain any canvas element created using Karma functions - * @param {String} [options.language] +Karma +@name Karma +@class Represents a Karma (master) object. +@param {String | Object } options Constructor arguments +@param {String | Object } [options.container] Target DIV-class that will contain + any canvas element created using Karma functions +@param {String} [options.language] */ var Karma = function(options ) { var that = this; - this.version = "0.3 alpha"; + this.version = "0.08"; // //relative path to the po, images, sounds, etc. from the html //defined here: http://wiki.sugarlabs.org/go/Karma/Bundle_layout @@ -637,7 +638,7 @@ var KSurface = Class( //mainContainer: '',//must be overwritten by Karma.container id: '',//must be overwritten by the Karma.surface OR user container: '', //must be overwritten by Karma.container OR user - paths: '', //must be overwritten by Karma.paths + width: 100, height: 100, fps: 24, @@ -659,7 +660,7 @@ var KSurface = Class( this.width = this.canvas.width; this.height = this.canvas.height; if (!this.id){ - this.id = this.canvas.id; + this.id = this.canvas.id; } } if ( this.canvas.getContext ) { @@ -744,8 +745,8 @@ var KSurface = Class( this.ctx.clearRect( x || 0, y || 0, - width || this.canvas.width, - height || this.canvas.height + width || this.width, + height || this.height ); }, draw: function ( ) { @@ -1066,9 +1067,6 @@ Karma function. It's a shotcut for calling 'new Karma(..)' **/ $.karma = function (options) { var k =new Karma( options ); - //var x = new KMedia( "file1", "image", {localized: true} ); - //var x = new KImage({file: "ball.png", localized: false, z: 0}); - return k; } })(jQuery);
\ No newline at end of file |