Comparing version 0.21.8 to 0.21.9
{ | ||
"name": "alkali", | ||
"author": "Kris Zyp", | ||
"version": "0.21.8", | ||
"version": "0.21.9", | ||
"description": "Reactivity with native JavaScript objects and HTML elements", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -108,4 +108,3 @@ (function (root, factory) { if (typeof define === 'function' && define.amd) { | ||
// a new context to get this | ||
this.contextualized = this.newContext(null, true).specify(Variable) | ||
//return this.contextualized = this.newContext(null, true).specify(Variable) | ||
}, | ||
@@ -112,0 +111,0 @@ merge: function(){ |
@@ -446,2 +446,14 @@ define(function(require) { | ||
}) | ||
test('from empty array', function() { | ||
var a = new VArray() | ||
a.sort() | ||
assert.deepEqual(a.valueOf(), []) | ||
a.push('b') | ||
a.push('a') | ||
a.sort() | ||
assert.deepEqual(a.valueOf(), ['a', 'b']) | ||
var a = new VArray() | ||
a = a.slice(0) | ||
assert.deepEqual(a.valueOf(), []) | ||
}) | ||
test('typedMap', function() { | ||
@@ -448,0 +460,0 @@ var Foo = Variable({ |
@@ -269,2 +269,3 @@ (function (root, factory) { if (typeof define === 'function' && define.amd) { | ||
SyncPromise: SyncPromise, | ||
SyncErrorPromise: SyncErrorPromise, | ||
Promise: has('promise') ? Promise : (function() { | ||
@@ -271,0 +272,0 @@ function Promise(execute) { |
Sorry, the diff of this file is too big to display
976440
12078