Skip to content

Commit

Permalink
Fixed out of scope call to redtext.val()
Browse files Browse the repository at this point in the history
redtxt.val() was throwing an error since it was not in scope. Changed to use redfnval instead.
  • Loading branch information
jimklo committed Feb 8, 2012
1 parent 17cc06e commit f1ca601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jscouch.couchdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f1ca601

Please sign in to comment.