Skip to content

Commit 5dd968c

Browse files
committed
"indices" + interim build
1 parent 844cf57 commit 5dd968c

14 files changed

+116
-79
lines changed

demo/adapterSync/adapterSync.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h1 class="page-header page-header-exapmle">Adapter: append, prepend and remove
6868
The initial data set consists of 40 items and can be extended/reduced unlimitedly.
6969
</p>
7070
<p>
71-
The implementation of the Server factory is not trivial, it is based on indicies variations.
71+
The implementation of the Server factory is not trivial, it is based on indices variations.
7272
Also you may see that new items would not be appended (via 'Append one item' or
7373
'Insert some after index' buttons) to the viewport immediately if the EOF (end of file) is not reached.
7474
The same is true for prepend operations ('Prepend one item'): BOF (begin of file) must be reached,

demo/adapterSync/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ angular.module('server', []).factory('Server',
108108
}
109109
}
110110
this.data.splice(i, 1);
111-
this.setIndicies();
111+
this.setIndices();
112112
return this.returnDeferredResult(indexRemoved);
113113
}
114114
}
@@ -128,14 +128,14 @@ angular.module('server', []).factory('Server',
128128
item = this.generateItem(index + 1);
129129
item.content += params;
130130
this.data.splice(i + 1, 0, item);
131-
this.setIndicies();
131+
this.setIndices();
132132
return this.returnDeferredResult(item);
133133
}
134134
}
135135
return this.returnDeferredResult(null);
136136
},
137137

138-
setIndicies: function () {
138+
setIndices: function () {
139139
if(!this.data.length) {
140140
this.firstIndex = 1;
141141
this.lastIndex = 1;

demo/append/append.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1 class="page-header page-header-exapmle">Adapter: append and prepend sync</h1
2222
This sample demonstrates an ability to append and prepend new items to the initial data set via adapter.
2323
New appended and prepended items have to be synced with the real data source.
2424
For this purpose a special Server module was implemented to emulate the remote.
25-
The Server hides all indicies magic, so the front-end controller logic (ui-scroll datasource implementation) looks very simple.
25+
The Server hides all indices magic, so the front-end controller logic (ui-scroll datasource implementation) looks very simple.
2626
</p>
2727
<p>
2828
Two methods are implemented on the controller's scope: prepend and append.

demo/outOfBuffer/outOfBuffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ app.factory('Server', [
105105
if (this.data[i].id === itemId) {
106106
var indexRemoved = this.data[i].index;
107107
this.data.splice(i, 1);
108-
this.setIndicies();
108+
this.setIndices();
109109
return this.returnDeferredResult(indexRemoved);
110110
}
111111
}
112112
return this.returnDeferredResult(false);
113113
},
114114

115-
setIndicies: function() {
115+
setIndices: function() {
116116
if(!this.data.length) {
117117
this.firstIndex = 1;
118118
this.lastIndex = 1;

dist/ui-scroll-grid.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll-grid.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll-grid.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll-grid.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll.js

Lines changed: 66 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)