Browse files

updating code to allow multiple arguments

  • Loading branch information...
1 parent bc3effe commit a024d628c798b5f9c1355847896dedae987e48aa @eluberoff eluberoff committed Oct 24, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/nib/positions.styl
View
6 lib/nib/positions.styl
@@ -3,8 +3,10 @@
-pos(type, args)
i = 0
position: unquote(type)
- {args[i]}: args[i + 1] is a 'unit' ? args[i += 1] : 0
- {args[i += 1]}: args[i + 1] is a 'unit' ? args[i += 1] : 0
+ for j in (1..4)
+ if length(args) > i
+ {args[i]}: args[i + 1] is a 'unit' ? args[i += 1] : 0
+ i += 1
/*
* Position utility.

0 comments on commit a024d62

Please sign in to comment.