1
0
mirror of synced 2024-11-30 00:26:03 +03:00

Array data with custom key (string) isn't returning matches. fixes #1179

This commit is contained in:
Igor Vaynberg 2013-04-11 19:15:16 -07:00
parent fd07c11484
commit 4a0851bce5

View File

@ -441,7 +441,7 @@ the specific language governing permissions and limitations under the Apache Lic
text = dataItem.text; text = dataItem.text;
// if text is not a function we assume it to be a key name // if text is not a function we assume it to be a key name
if (!$.isFunction(text)) { if (!$.isFunction(text)) {
dataText = data.text; // we need to store this in a separate variable because in the next step data gets reset and data.text is no longer available dataText = dataItem.text; // we need to store this in a separate variable because in the next step data gets reset and data.text is no longer available
text = function (item) { return item[dataText]; }; text = function (item) { return item[dataText]; };
} }
} }
@ -2641,7 +2641,6 @@ the specific language governing permissions and limitations under the Apache Lic
// multi // multi
buildChangeDetails: function (old, current) { buildChangeDetails: function (old, current) {
console.log("current", current, "old", old);
var current = current.slice(0), var current = current.slice(0),
old = old.slice(0); old = old.slice(0);