forked from 0x2620/oxjs
Only return Ox.Element if exactly one jquery element is return.
Fixes use of find, children
This commit is contained in:
parent
771d2be37b
commit
ac4dd51ed7
6 changed files with 14 additions and 16 deletions
|
|
@ -181,10 +181,7 @@ Ox.TreeList = function(options, self) {
|
|||
function toggleItem(item, expanded) {
|
||||
var $img, pos;
|
||||
item.expanded = expanded;
|
||||
//fixme why does
|
||||
//that.$element.find('.OxItem').each(function() {
|
||||
//only return one element?
|
||||
$(that.$element).find('.OxItem').each(function() {
|
||||
that.find('.OxItem').each(function() {
|
||||
var $item = $(this);
|
||||
if ($item.data('id') == item.id) {
|
||||
$img = $item.find('.OxToggle');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue