Permalink
Browse files

works with coffee script 1.3.0

  • Loading branch information...
1 parent bbfa127 commit b86f5ca81f3c38c2b3443d3fae08b9cb7574befd @russellmcc committed Apr 12, 2012
Showing with 17 additions and 17 deletions.
  1. +15 −15 lib/osc-utilities.coffee
  2. +2 −2 package.json
View
@@ -373,40 +373,40 @@ exports.toOscMessage = (message, strict) ->
address = if message?.address? then message.address else message
throw new Error "message must contain an address" if typeof address isnt "string"
- arguments = message?.arguments
- if (not arguments?) and (message?.args?)
- arguments = message?.args
+ args = message?.args
+ if (not args?) and (message?.args?)
+ args = message?.args
- if arguments is undefined
- arguments = []
+ if args is undefined
+ args = []
- # pack single arguments
- if not IsArray arguments
- old_arg = arguments
- arguments = []
- arguments[0] = old_arg
+ # pack single args
+ if not IsArray args
+ old_arg = args
+ args = []
+ args[0] = old_arg
oscaddr = exports.toOscString address, strict
osctype = ","
- oscarguments = []
+ oscargs = []
- # fill in arguments
- for arg in arguments
+ # fill in args
+ for arg in args
typeCode = exports.argToTypeCode arg, strict
if typeCode?
value = arg?.value
if value is undefined
value = arg
buff = exports.toOscArgument value, exports.oscTypeCodeToTypeString(typeCode), strict
if buff?
- oscarguments.push buff
+ oscargs.push buff
osctype += typeCode
# convert the type tag into an oscString.
osctype = exports.toOscString osctype
# bundle everything together.
- allArgs = exports.concat oscarguments
+ allArgs = exports.concat oscargs
exports.concat [oscaddr, osctype, allArgs]
#
View
@@ -1,6 +1,6 @@
{
"name": "osc-min",
- "version": "0.0.4",
+ "version": "0.0.5",
"main": "lib/index",
"author": {
"name" : "Russell McClellan",
@@ -20,7 +20,7 @@
},
"dependencies" : {
"binpack" : "*",
- "coffee-script" : "1.2.0"
+ "coffee-script" : "1.3.0"
},
"devDependencies" : {
"expresso" : "*",

0 comments on commit b86f5ca

Please sign in to comment.