Skip to content

Commit

Permalink
Add definedness check around exports
Browse files Browse the repository at this point in the history
  • Loading branch information
earldouglas committed Jun 11, 2015
1 parent cf7dfdf commit 9e5984e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions teep.js
Expand Up @@ -9,6 +9,8 @@
'use strict';

var edc;
var exports;

(function (edc) {

var array = {
Expand Down Expand Up @@ -215,9 +217,11 @@ var edc;
future: future,
};

for (var i in edc.teep) {
if (edc.teep.hasOwnProperty(i)) {
exports[i] = edc.teep[i];
if (exports) {
for (var i in edc.teep) {
if (edc.teep.hasOwnProperty(i)) {
exports[i] = edc.teep[i];
}
}
}

Expand Down

0 comments on commit 9e5984e

Please sign in to comment.