Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed build with the new version of coffeescript (#84)

  • Loading branch information...
commit 3cbb32c56e38a9447cf7d3f6e30dc7f74fcfaed4 1 parent 35f3d0c
Joseph Gentle josephg authored
2  src/client/connection.coffee
View
@@ -12,7 +12,7 @@
# reference.
if WEB?
- types ||= exports.types
+ types = exports.types
throw new Error 'Must load browserchannel before this library' unless window.BCSocket
{BCSocket} = window
else
2  src/types/text-composable.coffee
View
@@ -14,7 +14,7 @@
p = -> #require('util').debug
i = -> #require('util').inspect
-exports ?= {}
+exports = if WEB? then {} else module.exports
exports.name = 'text-composable'
6 test/version.coffee
View
@@ -3,14 +3,14 @@ web = require './helpers/webclient'
fs = require 'fs'
-package = JSON.parse fs.readFileSync("#{__dirname}/../package.json")
+p = require '../package.json'
module.exports =
'node version': (test) ->
test.ok node.version
- test.strictEqual node.version, package.version
+ test.strictEqual node.version, p.version
test.done()
'web version': (test) ->
- test.strictEqual web.version, package.version
+ test.strictEqual web.version, p.version
test.done()
Please sign in to comment.
Something went wrong with that request. Please try again.