Permalink
Browse files

find() is faster than children() for this case - http://jsperf.com/wh…

  • Loading branch information...
1 parent 667c703 commit 34c83d5364497424fc86ab117b3e92ffa5b4a725 mdomba committed Dec 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/web/js/source/jquery.yiiactiveform.js
@@ -23,7 +23,7 @@
return o.val();
} else {
var c = [];
- o.children(':checked').each(function () {
+ o.find(':checked').each(function () {
c.push(this.value);
});
return c.join(',');

0 comments on commit 34c83d5

Please sign in to comment.