Plato on Github
Report Home
src/animation.js
Maintainability
130.33
Lines of code
24
Difficulty
11.57
Estimated Errors
0.16
Function weight
By Complexity
By SLOC
define('lyria/animation', ['mixer', 'eventmap'], function(mixer, EventMap) { var Animation = (function() { var Animation = function($elem, options) { this.$elem = $elem; this.frame.width = 0 || options.width; this.frame.height = 0 || options.height; this.frame.current = 0; this.sprite.width; this.sprite.height; this.sprite.image = new Image(); // Mix-in eventmap mixer([this, Animation.prototype], new EventMap()); }; Animation.prototype.reset = function() { }; })(); return Animation; });