[#174,refactor][s]: rename currentRecords to records on Dataset.

This commit is contained in:
Rufus Pollock
2012-07-05 15:37:17 +01:00
parent 21296aa18c
commit a58f5e5bb0
22 changed files with 62 additions and 62 deletions

View File

@@ -9,10 +9,10 @@ var $el = $('.ex-2');
// On completion the display function will be called
dataset.query({q: 'UK', size: 2}).done(function() {
$('.ex-2').append('Total found: ' + dataset.recordCount);
$('.ex-2').append(' Total returned: ' + dataset.currentRecords.length);
$('.ex-2').append(' Total returned: ' + dataset.records.length);
$('.ex-2').append(
$('<pre />').html(
JSON.stringify(dataset.currentRecords.toJSON(), null, 2)
JSON.stringify(dataset.records.toJSON(), null, 2)
)
);
});