Skip to content

Commit

Permalink
chore(all): prepare release 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Nov 12, 2015
1 parent 5c8be37 commit 699f482
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-binding",
"version": "0.11.1",
"version": "0.11.2",
"description": "A modern databinding library for JavaScript and HTML.",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ define(['exports', 'core-js', 'aurelia-pal', 'aurelia-task-queue', 'aurelia-meta
array['splice'] = function () {
var methodCallResult = arrayProto['splice'].apply(array, arguments);
var index = arguments[0];
if (index >= array.length) {
if (index >= array.length && array.length > 0) {
index = array.length - 1;
} else if (-index >= array.length) {
index = 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ class ModifyArrayObserver extends ModifyCollectionObserver {
array['splice'] = function() {
var methodCallResult = arrayProto['splice'].apply(array, arguments);
var index = arguments[0];
if (index >= array.length) {
if (index >= array.length && array.length > 0) {
index = array.length - 1;
} else if (-index >= array.length) {
index = 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ var ModifyArrayObserver = (function (_ModifyCollectionObserver2) {
array['splice'] = function () {
var methodCallResult = arrayProto['splice'].apply(array, arguments);
var index = arguments[0];
if (index >= array.length) {
if (index >= array.length && array.length > 0) {
index = array.length - 1;
} else if (-index >= array.length) {
index = 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/es6/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ class ModifyArrayObserver extends ModifyCollectionObserver {
array['splice'] = function() {
var methodCallResult = arrayProto['splice'].apply(array, arguments);
var index = arguments[0];
if (index >= array.length) {
if (index >= array.length && array.length > 0) {
index = array.length - 1;
} else if (-index >= array.length) {
index = 0;
Expand Down
2 changes: 1 addition & 1 deletion dist/system/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ System.register(['core-js', 'aurelia-pal', 'aurelia-task-queue', 'aurelia-metada
array['splice'] = function () {
var methodCallResult = arrayProto['splice'].apply(array, arguments);
var index = arguments[0];
if (index >= array.length) {
if (index >= array.length && array.length > 0) {
index = array.length - 1;
} else if (-index >= array.length) {
index = 0;
Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.11.2 (2015-11-12)


#### Bug Fixes

* **ArrayObserver:** fix error when removing last array item ([5c8be37b](http://github.com/aurelia/binding/commit/5c8be37b7d73d432586a51ff4e213ce89aa215c2))


### 0.11.1 (2015-11-11)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-binding",
"version": "0.11.1",
"version": "0.11.2",
"description": "A modern databinding library for JavaScript and HTML.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 699f482

Please sign in to comment.