From 03769c1f0c654fc392d050b3c3941f9b24bfdb1f Mon Sep 17 00:00:00 2001 From: AndSelm Date: Sun, 12 Jan 2014 15:17:14 +0100 Subject: [PATCH] correctly differentiating between node.js, node-webkit and the browser --- src/observe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observe.js b/src/observe.js index e8ceecc..8dae151 100644 --- a/src/observe.js +++ b/src/observe.js @@ -1613,4 +1613,4 @@ 'delete': PROP_DELETE_TYPE, splice: ARRAY_SPLICE_TYPE }; -})(typeof global !== 'undefined' && global ? global : this || window); +})(typeof global !== 'undefined' && global && typeof module !== 'undefined' && module ? global : this || window);