Stop exposing config as a reference. resolves #35

This commit is contained in:
Keegan
2016-03-11 02:25:59 +11:00
parent 3b7c4cda7c
commit b1a6f184ba
5 changed files with 16 additions and 3 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ var configPageHtml = require('./tmp/config-page.html');
var toSource = require('tosource');
var standardComponents = require('./src/scripts/components');
var utils = require('./src/scripts/lib/utils');
var deepcopy = require('deepcopy/build/deepcopy.min');
/**
* @param {Array} config - the Clay config
@@ -27,7 +28,7 @@ function Clay(config, customFn, options) {
options = options || {};
self.config = config;
self.config = deepcopy(config);
self.customFn = customFn || function() {};
self.components = {};
self.meta = {