update documentation example

This commit is contained in:
rolux 2012-06-25 09:29:50 +02:00
parent 2194a5fb8b
commit f91a513ee8

View file

@ -108,7 +108,7 @@ My.favorite = (function() {
}, },
keys = Object.keys(favorite); keys = Object.keys(favorite);
favorite.any = favorite[ favorite.any = favorite[
keys[Math.floor(+new Date / 86400) * keys.length] keys[Math.floor(+new Date / 86400) % keys.length]
]; ];
return favorite; return favorite;
}()); }());
@ -355,7 +355,7 @@ My.Box <f> A very simple colored box
self <o> Shared private object self <o> Shared private object
([options[, self]]) -> <o> Box object ([options[, self]]) -> <o> Box object
change <!> Fires when the color of the box changes change <!> Fires when the color of the box changes
color <n> Value between `0` and `255` color <[n]> RGB value
> My.Box({color: [0, 255, 0]}).getHSL() > My.Box({color: [0, 255, 0]}).getHSL()
[120, 1, 0.5] [120, 1, 0.5]
> My.Box().setHSL(240, 1, 0.5).options('color') > My.Box().setHSL(240, 1, 0.5).options('color')
@ -468,7 +468,7 @@ My.ExtendedBox = function(options, self) {
}; };
/* /*
The last item will get added to the 'Objects' section. The next item will get added to the 'Objects' section.
*/ */
//@ Objects //@ Objects