Permalink
Browse files

gallery-2014.01.22-18-38 jafl gallery-quickedit

  • Loading branch information...
1 parent 355bf1d commit 6a07c706d4fafa6f8b01a178e2ef16dbb6475c5f Eugene Kashida committed Jan 22, 2014

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -635,13 +635,11 @@ Y.extend(QuickEdit, Y.Plugin.Base,
var change = {},
changed = false;
- var field_count = list.size();
- for (var j=0; j<field_count; j++)
+ list.each(function(field)
{
- var field = list.item(j);
- var key = this._getColumnKey(field);
- var qe = this.column_map[key].quickEdit;
- var prev = rec.get(key);
+ var key = this._getColumnKey(field);
+ var qe = this.column_map[key].quickEdit;
+ var prev = rec.get(key);
var val = Y.Lang.trim(field.get('value'));
if (qe.changed ? qe.changed(prev, val) :
@@ -650,7 +648,8 @@ Y.extend(QuickEdit, Y.Plugin.Base,
change[key] = val;
changed = true;
}
- }
+ },
+ this);
if (changed || include_all)
{
@@ -806,7 +805,7 @@ Y.namespace("Plugin");
Y.Plugin.DataTableQuickEdit = QuickEdit;
-}, 'gallery-2013.04.03-19-53', {
+}, 'gallery-2014.01.22-18-38', {
"skinnable": "true",
"requires": [
"datatable-base",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -635,13 +635,11 @@ Y.extend(QuickEdit, Y.Plugin.Base,
var change = {},
changed = false;
- var field_count = list.size();
- for (var j=0; j<field_count; j++)
+ list.each(function(field)
{
- var field = list.item(j);
- var key = this._getColumnKey(field);
- var qe = this.column_map[key].quickEdit;
- var prev = rec.get(key);
+ var key = this._getColumnKey(field);
+ var qe = this.column_map[key].quickEdit;
+ var prev = rec.get(key);
var val = Y.Lang.trim(field.get('value'));
if (qe.changed ? qe.changed(prev, val) :
@@ -650,7 +648,8 @@ Y.extend(QuickEdit, Y.Plugin.Base,
change[key] = val;
changed = true;
}
- }
+ },
+ this);
if (changed || include_all)
{
@@ -806,7 +805,7 @@ Y.namespace("Plugin");
Y.Plugin.DataTableQuickEdit = QuickEdit;
-}, 'gallery-2013.04.03-19-53', {
+}, 'gallery-2014.01.22-18-38', {
"skinnable": "true",
"requires": [
"datatable-base",
@@ -633,13 +633,11 @@ Y.extend(QuickEdit, Y.Plugin.Base,
var change = {},
changed = false;
- var field_count = list.size();
- for (var j=0; j<field_count; j++)
+ list.each(function(field)
{
- var field = list.item(j);
- var key = this._getColumnKey(field);
- var qe = this.column_map[key].quickEdit;
- var prev = rec.get(key);
+ var key = this._getColumnKey(field);
+ var qe = this.column_map[key].quickEdit;
+ var prev = rec.get(key);
var val = Y.Lang.trim(field.get('value'));
if (qe.changed ? qe.changed(prev, val) :
@@ -648,7 +646,8 @@ Y.extend(QuickEdit, Y.Plugin.Base,
change[key] = val;
changed = true;
}
- }
+ },
+ this);
if (changed || include_all)
{
Oops, something went wrong.

0 comments on commit 6a07c70

Please sign in to comment.