Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (15 sloc) 0.636 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# The sandbox class acts as a facade for a module.
# All sandboxes refer to the same core module
class Sandbox

  # ## Create a sandbox
  #
  # Parameters:
  #
  # - (Object) core - The core object of scaleApp
  # - (String) instanceId - The instance id
  # - (Object) options - The options object for that instance
  constructor: (@core, @instanceId, @options = {}) ->
    throw new TypeError "core was not defined" unless @core?
    throw new TypeError "no id was specified" unless instanceId?
    throw new TypeError "id is not a string" unless typeof instanceId is "string"

module.exports = Sandbox if module?.exports?
Something went wrong with that request. Please try again.