Skip to content

Commit

Permalink
fixed a bug in color canonicalization
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms committed Oct 19, 2011
1 parent 770c617 commit 08a9e2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -247,8 +247,8 @@ Example:

layer = UILayer {x:0, y:0, width:100, height:100}
layer.animated = true
layer.frame.x = 100
# Layer moves 100 px to the right during 500ms
layer.on 'touchstart', ^{ layer.frame.x += 100 }
# Layer moves 100 px to the right during 500ms when touched


### layer.animationDuration ⇄ number (0-inf]
Expand All @@ -260,8 +260,8 @@ Example:
layer = UILayer {x:0, y:0, width:100, height:100}
layer.animated = true
layer.animationDuration = 200
layer.frame.x = 100
# Layer moves 100 px to the right during 200ms
layer.on 'touchstart', ^{ layer.frame.x += 100 }
# Layer moves 100 px to the right during 200ms when touched


### layer.animationTimingFunction ⇄ string
Expand Down
2 changes: 1 addition & 1 deletion src/UILayer/UILayer.mv
Expand Up @@ -33,7 +33,7 @@ DEPRECATED_PROPERTY = ^(oldName, newName) {return {get: ^{
}}}

_canonicalColor = ^(color) {
if (Array.isArray isArray) {
if (Array.isArray color) {
if (color.length == 1) {
# monochrome, no alpha
color = [color,color,color]
Expand Down

0 comments on commit 08a9e2f

Please sign in to comment.