Permalink
Browse files

gallery-2011.06.01-20-18 jafl gallery-treeble

  • Loading branch information...
1 parent a499be3 commit f662ecd857ac5e56f2283660f299b43122524111 YUI Builder committed Jun 1, 2011
Showing with 6 additions and 8 deletions.
  1. +6 −8 src/gallery-treeble/js/TreebleDataSource.js
@@ -911,21 +911,19 @@ Y.extend(TreebleDataSource, Y.DataSource.Local,
{
if (this._callback)
{
- var r = this._callback.request;
- for (var key in r)
+ Y.Object.some(this._callback.request, function(value, key)
{
- if (!r.hasOwnProperty(key) ||
- key == 'startIndex' || key == 'resultCount')
+ if (key == 'startIndex' || key == 'resultCount')
{
- continue;
+ return false;
}
- if (r[key] !== e.request[key])
+ if (value !== e.request[key])
{
this._open = [];
- break;
+ return true;
}
- }
+ });
}
this._callback = e;

0 comments on commit f662ecd

Please sign in to comment.