use push instead of concat #47

Merged
merged 1 commit into from May 2, 2012

2 participants

@yuest

example:
a = []
a.push([1,2]) // a = [[1,2]]
b = []
b.concat([1,2]) // b = [1,2]

Yuest Wang safer to use .push() instead of .concat()
example:
a = []
a.push([1,2]) // a = [[1,2]]
b = []
b.concat([1,2]) // b = [1,2]
5b90fd9
@jbr jbr merged commit 2d96bdb into jbr:master May 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment