Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-rc.1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 24, 2016
1 parent 5531a87 commit 40ac0c7
Show file tree
Hide file tree
Showing 26 changed files with 644 additions and 96 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": "1.0.0-rc.1.0.3",
"version": "1.0.0-rc.1.0.4",
"description": "A modern databinding library for JavaScript and HTML.",
"license": "MIT",
"keywords": [
Expand Down
21 changes: 13 additions & 8 deletions dist/amd/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1141,15 +1141,16 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure

ModifyArrayObserver.for = function _for(taskQueue, array) {
if (!('__array_observer__' in array)) {
var observer = ModifyArrayObserver.create(taskQueue, array);
Reflect.defineProperty(array, '__array_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(array, '__array_observer__', {
value: ModifyArrayObserver.create(taskQueue, array),
enumerable: false, configurable: false
});
}
return array.__array_observer__;
};

ModifyArrayObserver.create = function create(taskQueue, array) {
var observer = new ModifyArrayObserver(taskQueue, array);
return observer;
return new ModifyArrayObserver(taskQueue, array);
};

return ModifyArrayObserver;
Expand Down Expand Up @@ -3128,8 +3129,10 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure

ModifyMapObserver.for = function _for(taskQueue, map) {
if (!('__map_observer__' in map)) {
var observer = ModifyMapObserver.create(taskQueue, map);
Reflect.defineProperty(map, '__map_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(map, '__map_observer__', {
value: ModifyMapObserver.create(taskQueue, map),
enumerable: false, configurable: false
});
}
return map.__map_observer__;
};
Expand Down Expand Up @@ -5226,8 +5229,10 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure

ModifySetObserver.for = function _for(taskQueue, set) {
if (!('__set_observer__' in set)) {
var observer = ModifySetObserver.create(taskQueue, set);
Reflect.defineProperty(set, '__set_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(set, '__set_observer__', {
value: ModifySetObserver.create(taskQueue, set),
enumerable: false, configurable: false
});
}
return set.__set_observer__;
};
Expand Down
12 changes: 6 additions & 6 deletions dist/aurelia-binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export declare interface NameExpression {
/**
* Provides the base class from which the classes that represent expression tree nodes are derived.
*/
export declare interface Expression {
export declare class Expression {
/**
* Evaluates the expression using the provided scope and lookup functions.
*/
Expand All @@ -294,7 +294,7 @@ export declare interface Expression {
/**
* An expression that accesses a property on the scope.
*/
export declare interface AccessScope extends Expression {
export declare class AccessScope extends Expression {
/**
* The property name.
*/
Expand All @@ -308,7 +308,7 @@ export declare interface AccessScope extends Expression {
/**
* An expression that accesses a property on an object.
*/
export declare interface AccessMember extends Expression {
export declare class AccessMember extends Expression {
/**
* The property name.
*/
Expand All @@ -322,7 +322,7 @@ export declare interface AccessMember extends Expression {
/**
* An expression that accesses a property on an object using a key.
*/
export declare interface AccessKeyed extends Expression {
export declare class AccessKeyed extends Expression {
/**
* The property name.
*/
Expand All @@ -336,7 +336,7 @@ export declare interface AccessKeyed extends Expression {
/**
* A binding behavior expression.
*/
export declare class BindingBehavior implements Expression {
export declare class BindingBehavior extends Expression {
evaluate(scope: Scope, lookupFunctions: LookupFunctions): any;
assign(scope: Scope, value: any, lookupFunctions: LookupFunctions): void;
connect(binding: Binding, scope: Scope): void;
Expand All @@ -345,7 +345,7 @@ export declare class BindingBehavior implements Expression {
/**
* A value converter expression.
*/
export declare class ValueConverter implements Expression {
export declare class ValueConverter extends Expression {
evaluate(scope: Scope, lookupFunctions: LookupFunctions): any;
assign(scope: Scope, value: any, lookupFunctions: LookupFunctions): void;
connect(binding: Binding, scope: Scope): void;
Expand Down
30 changes: 13 additions & 17 deletions dist/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1127,18 +1127,16 @@ class ModifyArrayObserver extends ModifyCollectionObserver {
*/
static for(taskQueue, array) {
if (!('__array_observer__' in array)) {
let observer = ModifyArrayObserver.create(taskQueue, array);
Reflect.defineProperty(
array,
'__array_observer__',
{ value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(array, '__array_observer__', {
value: ModifyArrayObserver.create(taskQueue, array),
enumerable: false, configurable: false
});
}
return array.__array_observer__;
}

static create(taskQueue, array) {
let observer = new ModifyArrayObserver(taskQueue, array);
return observer;
return new ModifyArrayObserver(taskQueue, array);
}
}

Expand Down Expand Up @@ -2998,11 +2996,10 @@ class ModifyMapObserver extends ModifyCollectionObserver {
*/
static for(taskQueue, map) {
if (!('__map_observer__' in map)) {
let observer = ModifyMapObserver.create(taskQueue, map);
Reflect.defineProperty(
map,
'__map_observer__',
{ value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(map, '__map_observer__', {
value: ModifyMapObserver.create(taskQueue, map),
enumerable: false, configurable: false
});
}
return map.__map_observer__;
}
Expand Down Expand Up @@ -4954,11 +4951,10 @@ class ModifySetObserver extends ModifyCollectionObserver {
*/
static for(taskQueue, set) {
if (!('__set_observer__' in set)) {
let observer = ModifySetObserver.create(taskQueue, set);
Reflect.defineProperty(
set,
'__set_observer__',
{ value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(set, '__set_observer__', {
value: ModifySetObserver.create(taskQueue, set),
enumerable: false, configurable: false
});
}
return set.__set_observer__;
}
Expand Down
21 changes: 13 additions & 8 deletions dist/commonjs/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1094,15 +1094,16 @@ var ModifyArrayObserver = function (_ModifyCollectionObse) {

ModifyArrayObserver.for = function _for(taskQueue, array) {
if (!('__array_observer__' in array)) {
var observer = ModifyArrayObserver.create(taskQueue, array);
Reflect.defineProperty(array, '__array_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(array, '__array_observer__', {
value: ModifyArrayObserver.create(taskQueue, array),
enumerable: false, configurable: false
});
}
return array.__array_observer__;
};

ModifyArrayObserver.create = function create(taskQueue, array) {
var observer = new ModifyArrayObserver(taskQueue, array);
return observer;
return new ModifyArrayObserver(taskQueue, array);
};

return ModifyArrayObserver;
Expand Down Expand Up @@ -3081,8 +3082,10 @@ var ModifyMapObserver = function (_ModifyCollectionObse2) {

ModifyMapObserver.for = function _for(taskQueue, map) {
if (!('__map_observer__' in map)) {
var observer = ModifyMapObserver.create(taskQueue, map);
Reflect.defineProperty(map, '__map_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(map, '__map_observer__', {
value: ModifyMapObserver.create(taskQueue, map),
enumerable: false, configurable: false
});
}
return map.__map_observer__;
};
Expand Down Expand Up @@ -5179,8 +5182,10 @@ var ModifySetObserver = function (_ModifyCollectionObse3) {

ModifySetObserver.for = function _for(taskQueue, set) {
if (!('__set_observer__' in set)) {
var observer = ModifySetObserver.create(taskQueue, set);
Reflect.defineProperty(set, '__set_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(set, '__set_observer__', {
value: ModifySetObserver.create(taskQueue, set),
enumerable: false, configurable: false
});
}
return set.__set_observer__;
};
Expand Down
21 changes: 13 additions & 8 deletions dist/es2015/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1028,15 +1028,16 @@ let ModifyArrayObserver = class ModifyArrayObserver extends ModifyCollectionObse

static for(taskQueue, array) {
if (!('__array_observer__' in array)) {
let observer = ModifyArrayObserver.create(taskQueue, array);
Reflect.defineProperty(array, '__array_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(array, '__array_observer__', {
value: ModifyArrayObserver.create(taskQueue, array),
enumerable: false, configurable: false
});
}
return array.__array_observer__;
}

static create(taskQueue, array) {
let observer = new ModifyArrayObserver(taskQueue, array);
return observer;
return new ModifyArrayObserver(taskQueue, array);
}
};

Expand Down Expand Up @@ -2840,8 +2841,10 @@ let ModifyMapObserver = class ModifyMapObserver extends ModifyCollectionObserver

static for(taskQueue, map) {
if (!('__map_observer__' in map)) {
let observer = ModifyMapObserver.create(taskQueue, map);
Reflect.defineProperty(map, '__map_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(map, '__map_observer__', {
value: ModifyMapObserver.create(taskQueue, map),
enumerable: false, configurable: false
});
}
return map.__map_observer__;
}
Expand Down Expand Up @@ -4721,8 +4724,10 @@ let ModifySetObserver = class ModifySetObserver extends ModifyCollectionObserver

static for(taskQueue, set) {
if (!('__set_observer__' in set)) {
let observer = ModifySetObserver.create(taskQueue, set);
Reflect.defineProperty(set, '__set_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(set, '__set_observer__', {
value: ModifySetObserver.create(taskQueue, set),
enumerable: false, configurable: false
});
}
return set.__set_observer__;
}
Expand Down
21 changes: 13 additions & 8 deletions dist/native-modules/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,15 +1062,16 @@ var ModifyArrayObserver = function (_ModifyCollectionObse) {

ModifyArrayObserver.for = function _for(taskQueue, array) {
if (!('__array_observer__' in array)) {
var observer = ModifyArrayObserver.create(taskQueue, array);
Reflect.defineProperty(array, '__array_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(array, '__array_observer__', {
value: ModifyArrayObserver.create(taskQueue, array),
enumerable: false, configurable: false
});
}
return array.__array_observer__;
};

ModifyArrayObserver.create = function create(taskQueue, array) {
var observer = new ModifyArrayObserver(taskQueue, array);
return observer;
return new ModifyArrayObserver(taskQueue, array);
};

return ModifyArrayObserver;
Expand Down Expand Up @@ -3047,8 +3048,10 @@ var ModifyMapObserver = function (_ModifyCollectionObse2) {

ModifyMapObserver.for = function _for(taskQueue, map) {
if (!('__map_observer__' in map)) {
var observer = ModifyMapObserver.create(taskQueue, map);
Reflect.defineProperty(map, '__map_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(map, '__map_observer__', {
value: ModifyMapObserver.create(taskQueue, map),
enumerable: false, configurable: false
});
}
return map.__map_observer__;
};
Expand Down Expand Up @@ -5141,8 +5144,10 @@ var ModifySetObserver = function (_ModifyCollectionObse3) {

ModifySetObserver.for = function _for(taskQueue, set) {
if (!('__set_observer__' in set)) {
var observer = ModifySetObserver.create(taskQueue, set);
Reflect.defineProperty(set, '__set_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(set, '__set_observer__', {
value: ModifySetObserver.create(taskQueue, set),
enumerable: false, configurable: false
});
}
return set.__set_observer__;
};
Expand Down
21 changes: 13 additions & 8 deletions dist/system/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1306,15 +1306,16 @@ System.register(['aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aureli

ModifyArrayObserver.for = function _for(taskQueue, array) {
if (!('__array_observer__' in array)) {
var observer = ModifyArrayObserver.create(taskQueue, array);
Reflect.defineProperty(array, '__array_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(array, '__array_observer__', {
value: ModifyArrayObserver.create(taskQueue, array),
enumerable: false, configurable: false
});
}
return array.__array_observer__;
};

ModifyArrayObserver.create = function create(taskQueue, array) {
var observer = new ModifyArrayObserver(taskQueue, array);
return observer;
return new ModifyArrayObserver(taskQueue, array);
};

return ModifyArrayObserver;
Expand Down Expand Up @@ -3212,8 +3213,10 @@ System.register(['aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aureli

ModifyMapObserver.for = function _for(taskQueue, map) {
if (!('__map_observer__' in map)) {
var observer = ModifyMapObserver.create(taskQueue, map);
Reflect.defineProperty(map, '__map_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(map, '__map_observer__', {
value: ModifyMapObserver.create(taskQueue, map),
enumerable: false, configurable: false
});
}
return map.__map_observer__;
};
Expand Down Expand Up @@ -5338,8 +5341,10 @@ System.register(['aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aureli

ModifySetObserver.for = function _for(taskQueue, set) {
if (!('__set_observer__' in set)) {
var observer = ModifySetObserver.create(taskQueue, set);
Reflect.defineProperty(set, '__set_observer__', { value: observer, enumerable: false, configurable: false });
Reflect.defineProperty(set, '__set_observer__', {
value: ModifySetObserver.create(taskQueue, set),
enumerable: false, configurable: false
});
}
return set.__set_observer__;
};
Expand Down
10 changes: 10 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.0.0-rc.1.0.4"></a>
# [1.0.0-rc.1.0.4](https://github.com/aurelia/binding/compare/1.0.0-rc.1.0.3...v1.0.0-rc.1.0.4) (2016-07-24)


### Bug Fixes

* **definitions:** use classes for expressions ([8181cf5](https://github.com/aurelia/binding/commit/8181cf5)), closes [#436](https://github.com/aurelia/binding/issues/436)



<a name="1.0.0-rc.1.0.3"></a>
# [1.0.0-rc.1.0.3](https://github.com/aurelia/binding/compare/1.0.0-rc.1.0.2...v1.0.0-rc.1.0.3) (2016-07-12)

Expand Down
2 changes: 1 addition & 1 deletion doc/api.json

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions doc/example-dist/binding-checkboxes/objects-matcher/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<form>
<h4>Products</h4>
<label>
<input type="checkbox" model.bind="{ id: 0, name: 'Motherboard' }"
matcher.bind="productMatcher"
checked.bind="selectedProducts">
Motherboard
</label>
<label>
<input type="checkbox" model.bind="{ id: 1, name: 'CPU' }"
matcher.bind="productMatcher"
checked.bind="selectedProducts">
Motherboard
</label>
<label>
<input type="checkbox" model.bind="{ id: 2, name: 'Memory' }"
matcher.bind="productMatcher"
checked.bind="selectedProducts">
Motherboard
</label>

Selected products:
<ul>
<li repeat.for="product of selectedProducts">${product.id} - ${product.name}</li>
</ul>
</form>
</template>
Loading

0 comments on commit 40ac0c7

Please sign in to comment.