cleanup documentation

This commit is contained in:
rolux 2012-07-05 19:47:57 +02:00
parent f4c34d858c
commit b8f88958da

View file

@ -288,18 +288,14 @@ Ox.$ = Ox.element = function(value) {
/*@
Ox.canvas <function> Generic canvas object
# Description --------------------------------------------------------------
Returns an object with the properties: `canvas`, `context`, `data` and
`imageData`.
# Usage --------------------------------------------------------------------
Ox.canvas(width, height) -> <object> canvas
Ox.canvas(image) -> <object> canvas
# Arguments ----------------------------------------------------------------
width <n> Width in px
(width, height) -> <o> canvas
(image) -> <o> canvas
width <n> Width in px
height <n> Height in px
image <e> Image object
image <e> Image object
@*/
Ox.canvas = function() {
var c = {}, isImage = arguments.length == 1,
image = isImage ? arguments[0] : {