Skip to content
This repository
  • 2 commits
  • 1 file changed
  • 0 comments
  • 2 contributors

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/ect.js
2  lib/ect.js
@@ -54,7 +54,7 @@
54 54
55 55 read = function (file) {
56 56 if (Object.prototype.toString.call(ect.options.root) === '[object Object]') {
57   - var data = eval('(ect.options.root.' + file + ')');
  57 + var data = file.split('.').reduce(function (currentContext, key) { return currentContext[key]; }, ect.options.root);
58 58 if (Object.prototype.toString.call(data) === '[object String]') {
59 59 return data;
60 60 } else {

No commit comments for this range

Something went wrong with that request. Please try again.