dresscode-botex
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -5,2 +5,3 @@ Botex.MutableArray = Bricks.inherit(Bricks.Observer, { | ||
this._value = value ? value.slice(0) : []; | ||
this._count = new Quantum.Quant(this._value.length); | ||
this._dependents = []; | ||
@@ -46,2 +47,3 @@ }, | ||
this._value.splice.apply(this._value, [start, deleteCount].concat(insertItems)); | ||
this._count.setValue(this._value.length); | ||
this._dependents.forEach(function(dependent) { | ||
@@ -54,3 +56,3 @@ dependent.dependent.splice(start, deleteCount, insertItems.map(dependent.callback, dependent.ctx)); | ||
getCount: function() { | ||
return this._value.length; | ||
return this._count; | ||
}, | ||
@@ -57,0 +59,0 @@ |
{ | ||
"name": "dresscode-botex", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "dresscode-bricks": "latest", |
43141
1149