Animatron/player — pull request #49 by shamansir (2012-09-24 18:47:40+00:00)
Title: Loading player size from options or canvas + Tests

Now the order of prefer looks like this:

* If there is no size specified either in `canvas` element or in options, take the default one
* Take the size from options if there is no size specified in `canvas` element
* Take the size from `canvas` element if there is no size specified in options
* If size is specified both in options and in `canvas` element, prefer the first (from options)

----

Size from options is specified like this:

createPlayer('my-canvas', { 'anim': { width: 100, height: 500 } });

Element size is specified like this: