Skip to content

Commit 68cb7ec

Browse files
chore(all): prepare release 1.0.0-beta.3.1.2
1 parent 31981a1 commit 68cb7ec

File tree

10 files changed

+40
-9
lines changed

10 files changed

+40
-9
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-ui-virtualization",
3-
"version": "1.0.0-beta.3.1.1",
3+
"version": "1.0.0-beta.3.1.2",
44
"description": "A plugin that provides a virtualized repeater and other virtualization services.",
55
"keywords": [
66
"aurelia",

dist/amd/virtual-repeat.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t
161161

162162
VirtualRepeat.prototype.bind = function bind(bindingContext, overrideContext) {
163163
this.scope = { bindingContext: bindingContext, overrideContext: overrideContext };
164+
if (this._isAttached) {
165+
this.itemsChanged();
166+
}
164167
};
165168

166169
VirtualRepeat.prototype.call = function call(context, changes) {
@@ -507,7 +510,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t
507510
VirtualRepeat.prototype._calcInitialHeights = function _calcInitialHeights(itemsLength) {
508511
var _this7 = this;
509512

510-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
513+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
511514
return;
512515
}
513516
this._hasCalculatedSizes = true;

dist/aurelia-ui-virtualization.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ export class VirtualRepeat extends AbstractRepeater {
633633

634634
bind(bindingContext, overrideContext): void {
635635
this.scope = { bindingContext, overrideContext };
636+
if (this._isAttached) {
637+
this.itemsChanged();
638+
}
636639
}
637640

638641
call(context, changes): void {
@@ -974,7 +977,7 @@ export class VirtualRepeat extends AbstractRepeater {
974977
}
975978

976979
_calcInitialHeights(itemsLength: number): void {
977-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
980+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
978981
return;
979982
}
980983
this._hasCalculatedSizes = true;

dist/commonjs/virtual-repeat.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ var VirtualRepeat = exports.VirtualRepeat = (_dec = (0, _aureliaTemplating.custo
158158

159159
VirtualRepeat.prototype.bind = function bind(bindingContext, overrideContext) {
160160
this.scope = { bindingContext: bindingContext, overrideContext: overrideContext };
161+
if (this._isAttached) {
162+
this.itemsChanged();
163+
}
161164
};
162165

163166
VirtualRepeat.prototype.call = function call(context, changes) {
@@ -504,7 +507,7 @@ var VirtualRepeat = exports.VirtualRepeat = (_dec = (0, _aureliaTemplating.custo
504507
VirtualRepeat.prototype._calcInitialHeights = function _calcInitialHeights(itemsLength) {
505508
var _this7 = this;
506509

507-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
510+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
508511
return;
509512
}
510513
this._hasCalculatedSizes = true;

dist/es2015/virtual-repeat.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ export let VirtualRepeat = (_dec = customAttribute('virtual-repeat'), _dec2 = in
128128

129129
bind(bindingContext, overrideContext) {
130130
this.scope = { bindingContext, overrideContext };
131+
if (this._isAttached) {
132+
this.itemsChanged();
133+
}
131134
}
132135

133136
call(context, changes) {
@@ -454,7 +457,7 @@ export let VirtualRepeat = (_dec = customAttribute('virtual-repeat'), _dec2 = in
454457
}
455458

456459
_calcInitialHeights(itemsLength) {
457-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
460+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
458461
return;
459462
}
460463
this._hasCalculatedSizes = true;

dist/native-modules/virtual-repeat.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ export var VirtualRepeat = (_dec = customAttribute('virtual-repeat'), _dec2 = in
143143

144144
VirtualRepeat.prototype.bind = function bind(bindingContext, overrideContext) {
145145
this.scope = { bindingContext: bindingContext, overrideContext: overrideContext };
146+
if (this._isAttached) {
147+
this.itemsChanged();
148+
}
146149
};
147150

148151
VirtualRepeat.prototype.call = function call(context, changes) {
@@ -489,7 +492,7 @@ export var VirtualRepeat = (_dec = customAttribute('virtual-repeat'), _dec2 = in
489492
VirtualRepeat.prototype._calcInitialHeights = function _calcInitialHeights(itemsLength) {
490493
var _this7 = this;
491494

492-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
495+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
493496
return;
494497
}
495498
this._hasCalculatedSizes = true;

dist/system/virtual-repeat.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem
193193

194194
VirtualRepeat.prototype.bind = function bind(bindingContext, overrideContext) {
195195
this.scope = { bindingContext: bindingContext, overrideContext: overrideContext };
196+
if (this._isAttached) {
197+
this.itemsChanged();
198+
}
196199
};
197200

198201
VirtualRepeat.prototype.call = function call(context, changes) {
@@ -539,7 +542,7 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem
539542
VirtualRepeat.prototype._calcInitialHeights = function _calcInitialHeights(itemsLength) {
540543
var _this7 = this;
541544

542-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
545+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
543546
return;
544547
}
545548
this._hasCalculatedSizes = true;

dist/temp/aurelia-ui-virtualization.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@ var VirtualRepeat = exports.VirtualRepeat = (_dec4 = (0, _aureliaTemplating.cust
704704

705705
VirtualRepeat.prototype.bind = function bind(bindingContext, overrideContext) {
706706
this.scope = { bindingContext: bindingContext, overrideContext: overrideContext };
707+
if (this._isAttached) {
708+
this.itemsChanged();
709+
}
707710
};
708711

709712
VirtualRepeat.prototype.call = function call(context, changes) {
@@ -1050,7 +1053,7 @@ var VirtualRepeat = exports.VirtualRepeat = (_dec4 = (0, _aureliaTemplating.cust
10501053
VirtualRepeat.prototype._calcInitialHeights = function _calcInitialHeights(itemsLength) {
10511054
var _this11 = this;
10521055

1053-
if (this._viewsLength > 0 && this._itemsLength === itemsLength || itemsLength <= 0) {
1056+
if (this._viewsLength > 0 && this._itemsLength === itemsLength || this._viewsLength > 0 && itemsLength < 0) {
10541057
return;
10551058
}
10561059
this._hasCalculatedSizes = true;

doc/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="1.0.0-beta.3.1.2"></a>
2+
# [1.0.0-beta.3.1.2](https://github.com/aurelia/ui-virtualization/compare/1.0.0-beta.3.1.1...v1.0.0-beta.3.1.2) (2017-10-23)
3+
4+
5+
### Bug Fixes
6+
7+
* **virtual-repeat:** Changing the items to emty array from scrollable list ([0e0b702](https://github.com/aurelia/ui-virtualization/commit/0e0b702))
8+
9+
10+
111
<a name="1.0.0-beta.3.1.1"></a>
212
# [1.0.0-beta.3.1.1](https://github.com/aurelia/ui-virtualization/compare/1.0.0-beta.3.1.0...v1.0.0-beta.3.1.1) (2017-10-02)
313

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-ui-virtualization",
3-
"version": "1.0.0-beta.3.1.1",
3+
"version": "1.0.0-beta.3.1.2",
44
"description": "A plugin that provides a virtualized repeater and other virtualization services.",
55
"keywords": [
66
"aurelia",

0 commit comments

Comments
 (0)