r9548 - helma-ng/trunk/modules/helma

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090320132814.561833D0D6@mia>
Author: hannes
Date: 2009-03-20 14:28:14 +0100 (Fri, 20 Mar 2009)
New Revision: 9548

Modified:
   helma-ng/trunk/modules/helma/functional.js
Log:
helma.functional: do not assume this object in partial(), people should use bind() for that.

Details at http://dev.helma.org/trac/helma/changeset/9548

Modified: helma-ng/trunk/modules/helma/functional.js
===================================================================
--- helma-ng/trunk/modules/helma/functional.js	2009-03-19 16:00:04 UTC (rev 9547)
+++ helma-ng/trunk/modules/helma/functional.js	2009-03-20 13:28:14 UTC (rev 9548)
@@ -11,7 +11,7 @@
     var pre_args = slice.call(arguments, 1);
     return function() {
         var args = pre_args.concat(slice.call(arguments));
-        return fn.apply(this, args);
+        return fn.apply(null, args);
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.