[gnome-js-common] Fix functional.js
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-js-common] Fix functional.js
- Date: Mon, 25 May 2009 05:27:57 -0400 (EDT)
commit 6cabc0edd8405d873b3aea8e96528016fc9049cb
Author: Robert Carr <racarr svn gnome org>
Date: Mon May 25 05:27:49 2009 -0400
Fix functional.js
---
modules/functional.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/functional.js b/modules/functional.js
index b3c1c88..31a5064 100644
--- a/modules/functional.js
+++ b/modules/functional.js
@@ -12,9 +12,12 @@
* This file defines some higher-order methods and functions for
* functional and function-level programming.
*/
-window = this;
+
+// rhino compatibility
+typeof window == 'undefined' && (window = this);
+
/// `Functional` is the namespace for higher-order functions.
-var Functional = this;
+var Functional = window || {};
/**
* This function copies all the public functions in `Functional` except itself
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]