<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1149,11 +1149,11 @@ $.Interaction.add('selectable', {
 		
 		var self = this;
 		this.element.items('collection', 'selected', function(){
-			return self.selected.filter(':visible');
+			return self.getSelected().filter(':visible');
 		});
 		
 		this.element.items('collection', 'selected-all', function(){
-			return self.selected;
+			return self.getSelected();
 		});
 		
 		this.extractListener('select', 'unselect', 'change');
@@ -1285,7 +1285,10 @@ $.Interaction.add('selectable', {
 	
 	getSelected: function()
 	{
-		var selected = this.selected;
+		var anchor = this.element.chain('anchor')
+		var selected = this.selected.filter(function(){
+			return ($(this).parent()[0] == anchor[0]);
+		});
 		this.getNested().each(function(){
 			var selectable = $(this).data('interaction-selectable');
 			selected = selected.add(selectable.getSelected());</diff>
      <filename>build/interaction.js</filename>
    </modified>
    <modified>
      <diff>@@ -21,11 +21,11 @@ $.Interaction.add('selectable', {
 		
 		var self = this;
 		this.element.items('collection', 'selected', function(){
-			return self.selected.filter(':visible');
+			return self.getSelected().filter(':visible');
 		});
 		
 		this.element.items('collection', 'selected-all', function(){
-			return self.selected;
+			return self.getSelected();
 		});
 		
 		this.extractListener('select', 'unselect', 'change');
@@ -157,7 +157,10 @@ $.Interaction.add('selectable', {
 	
 	getSelected: function()
 	{
-		var selected = this.selected;
+		var anchor = this.element.chain('anchor')
+		var selected = this.selected.filter(function(){
+			return ($(this).parent()[0] == anchor[0]);
+		});
 		this.getNested().each(function(){
 			var selectable = $(this).data('interaction-selectable');
 			selected = selected.add(selectable.getSelected());</diff>
      <filename>src/selectable.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fe88cc4b2ddc939528c736d3b4e96543a47a3531</id>
    </parent>
  </parents>
  <author>
    <name>Rizqi Ahmad</name>
    <email>raid_ox@yahoo.de</email>
  </author>
  <url>http://github.com/raid-ox/interaction.js/commit/bddacb1f16974d3ede4b7a19bf452826be3077c8</url>
  <id>bddacb1f16974d3ede4b7a19bf452826be3077c8</id>
  <committed-date>2008-09-09T12:07:07-07:00</committed-date>
  <authored-date>2008-09-09T12:07:07-07:00</authored-date>
  <message>selectable-fix</message>
  <tree>ed1bd1b6504416e3e9b3bfcada7dde70493d04ed</tree>
  <committer>
    <name>Rizqi Ahmad</name>
    <email>raid_ox@yahoo.de</email>
  </committer>
</commit>
