Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: derbyjs/racer
base: 39375327b9
...
head fork: derbyjs/racer
compare: 46bb0e2c68
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 8 files changed
  • 0 commit comments
  • 1 contributor
View
3  src/adapters/journal-memory.coffee
@@ -1,8 +1,7 @@
-transaction = null
+transaction = require '../transaction.server'
{deepCopy} = require '../util'
exports = module.exports = (racer) ->
- {transaction} = racer
racer.registerAdapter 'journal', 'Memory', JournalMemory
exports.useWith = server: true, browser: false
View
4 src/racer.browser.coffee
@@ -9,7 +9,9 @@ isReady = model = null
exports = module.exports = (racer) ->
racer.merge
- # socket argument makes it easier to test - see test/util/model
+ # `init` should be called (by the developer) with the specified arguments
+ # when the browser loads the app.
+ # `socket` argument makes it easier to test - see test/util/model
init: ([clientId, memory, count, onLoad, startId, ioUri], socket) ->
model = new racer.Model
model._clientId = clientId
View
1  src/racer.server.coffee
@@ -11,7 +11,6 @@ module.exports = (racer) ->
session: require './session'
Store: Store = require './Store'
- transaction: require './transaction.server'
transports: ['websocket', 'xhr-polling']
View
2  test/Model/events.mocha.coffee
@@ -1,5 +1,5 @@
{expect} = require '../util'
-{transaction} = require '../../lib/racer'
+transaction = require '../../lib/transaction'
{mockSocketModel, BrowserModel: Model} = require '../util/model'
describe 'Model events', ->
View
2  test/Model/ref.mocha.coffee
@@ -1,5 +1,5 @@
{expect, calls} = require '../util'
-{transaction} = require '../../lib/racer'
+transaction = require '../../lib/transaction'
{mockSocketModel, BrowserModel: Model} = require '../util/model'
describe 'Model.ref', ->
View
3  test/Model/txns.diff.mocha.coffee
@@ -1,5 +1,6 @@
{expect} = require '../util'
-{Model, transaction} = require '../../lib/racer'
+{Model} = require '../../lib/racer'
+transaction = require '../../lib/transaction'
{mockSocketEcho, mockSocketModel} = require '../util/model'
mirrorTest = (done, init, callback) ->
View
2  test/Model/txns.mocha.coffee
@@ -1,5 +1,5 @@
{expect, calls} = require '../util'
-{transaction} = require '../../lib/racer'
+transaction = require '../../lib/transaction'
{mockSocketModel, mockSocketEcho, BrowserModel: Model} = require '../util/model'
describe 'Model transaction handling', ->
View
2  test/util/model.coffee
@@ -13,7 +13,7 @@ exports.createBrowserRacer = createBrowserRacer = (plugins) ->
return browserRacer
exports.BrowserModel = BrowserModel = createBrowserRacer().Model
-{transaction} = require '../../lib/racer'
+transaction = require '../../lib/transaction'
# Create a model connected to a server sockets mock. Good for testing

No commit comments for this range

Something went wrong with that request. Please try again.