Permalink
Browse files

Fixed out of scope call to redtext.val()

redtxt.val() was throwing an error since it was not in scope. Changed to use redfnval instead.
  • Loading branch information...
1 parent 17cc06e commit f1ca6012f7f8be02fcbebb3377ed6ccc4654219c @jimklo jimklo committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jscouch.couchdb.js
View
@@ -98,7 +98,7 @@
// Then run each of the keys through the reduce function. If a
// given group has more than 2 keys, then we invoke rereduce
// just to illustrate how rereduce works
- var redfn = eval('foo=(function(keys, values, rereduce) {' + redtxt.val() + '})');
+ var redfn = eval('foo=(function(keys, values, rereduce) {' + redfnval + '})');
$.each(groups, function(i, e) {
if (e.value.length > 2) {
var k1 = e.key.slice(0, e.key.length/2);

0 comments on commit f1ca601

Please sign in to comment.