Skip to content

Commit

Permalink
chore(all): prepare release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Sep 7, 2016
1 parent 0220123 commit 690cd1e
Show file tree
Hide file tree
Showing 13 changed files with 119 additions and 80 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./node_modules/aurelia-tools/.eslintrc.json",
"rules": {
"consistent-return": 0
"consistent-return": 0,
"no-cond-assign": 0
}
}
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.3",
"version": "1.0.4",
"description": "A modern databinding library for JavaScript and HTML.",
"license": "MIT",
"keywords": [
Expand Down
30 changes: 15 additions & 15 deletions dist/amd/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3712,16 +3712,16 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure
}
}
} else if (newValue.length) {
var pairs = newValue.split(/(?:;|:(?!\/))\s*/);
for (var _i22 = 0, length = pairs.length; _i22 < length; _i22++) {
style = pairs[_i22].trim();
var rx = /\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g;
var pair = void 0;
while ((pair = rx.exec(newValue)) !== null) {
style = pair[1];
if (!style) {
continue;
}

styles[style] = version;

this.element.style[style] = pairs[++_i22];
this.element.style[style] = pair[2];
}
}
}
Expand Down Expand Up @@ -4035,8 +4035,8 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure
var count = 0;
var value = [];

for (var _i23 = 0, ii = options.length; _i23 < ii; _i23++) {
var _option = options.item(_i23);
for (var _i22 = 0, ii = options.length; _i22 < ii; _i22++) {
var _option = options.item(_i22);
if (!_option.selected) {
continue;
}
Expand Down Expand Up @@ -4171,8 +4171,8 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure

if (newValue !== null && newValue !== undefined && newValue.length) {
names = newValue.split(/\s+/);
for (var _i24 = 0, length = names.length; _i24 < length; _i24++) {
name = names[_i24];
for (var _i23 = 0, length = names.length; _i23 < length; _i23++) {
name = names[_i23];
if (name === '') {
continue;
}
Expand Down Expand Up @@ -4265,9 +4265,9 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure
function createComputedObserver(obj, propertyName, descriptor, observerLocator) {
var dependencies = descriptor.get.dependencies;
if (!(dependencies instanceof ComputedExpression)) {
var _i25 = dependencies.length;
while (_i25--) {
dependencies[_i25] = observerLocator.parser.parse(dependencies[_i25]);
var _i24 = dependencies.length;
while (_i24--) {
dependencies[_i24] = observerLocator.parser.parse(dependencies[_i24]);
}
dependencies = descriptor.get.dependencies = new ComputedExpression(propertyName, dependencies);
}
Expand Down Expand Up @@ -4561,8 +4561,8 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure
};

ObserverLocator.prototype.getAdapterObserver = function getAdapterObserver(obj, propertyName, descriptor) {
for (var _i26 = 0, ii = this.adapters.length; _i26 < ii; _i26++) {
var adapter = this.adapters[_i26];
for (var _i25 = 0, ii = this.adapters.length; _i25 < ii; _i25++) {
var adapter = this.adapters[_i25];
var observer = adapter.getObserver(obj, propertyName, descriptor);
if (observer) {
return observer;
Expand Down Expand Up @@ -5331,7 +5331,7 @@ define(['exports', 'aurelia-logging', 'aurelia-pal', 'aurelia-task-queue', 'aure
var oldValue = this[innerPropertyName];
this[innerPropertyName] = newValue;
if (this[callbackName]) {
this[callbackName](newValue, oldValue);
this[callbackName](newValue, oldValue, key);
}
};

Expand Down
26 changes: 24 additions & 2 deletions dist/aurelia-binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,23 @@ export declare interface NameExpression {
createBinding(target: any): Binding;
}

/**
* An expression AST visitor.
*/
export interface ExpressionVisitor {}

/**
* Visits an expression AST and returns the string equivalent.
*/
export class Unparser implements ExpressionVisitor {
constructor(buffer: string[]);
}

/**
* Clones an expression AST.
*/
export class ExpressionCloner implements ExpressionVisitor {}

/**
* Provides the base class from which the classes that represent expression tree nodes are derived.
*/
Expand All @@ -301,6 +318,11 @@ export declare class Expression {
* Subscribes a binding instance to the property change events along the path of the expression.
*/
connect(binding: Binding, scope: Scope): void;
/**
* Accepts an expression visitor.
*/
accept(visitor: ExpressionVisitor): void;

}

/**
Expand Down Expand Up @@ -411,8 +433,8 @@ export declare class Conditional extends Expression {
* A literal primitive (null, undefined, number, boolean).
*/
export declare class LiteralPrimitive extends Expression {
value: null|undefined|number|boolean;
constructor(value: null|undefined|number|boolean);
value: any;
constructor(value: any);
}

/**
Expand Down
12 changes: 6 additions & 6 deletions dist/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3526,14 +3526,14 @@ export class StyleObserver {
}
}
} else if (newValue.length) {
let pairs = newValue.split(/(?:;|:(?!\/))\s*/);
for (let i = 0, length = pairs.length; i < length; i++) {
style = pairs[i].trim();
let rx = /\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g;
let pair;
while ((pair = rx.exec(newValue)) !== null) {
style = pair[1];
if ( !style ) { continue; }

styles[style] = version;

this.element.style[style] = pairs[++i];
this.element.style[style] = pair[2];
}
}
}
Expand Down Expand Up @@ -5058,7 +5058,7 @@ export function observable(targetOrConfig: any, key: string, descriptor?: Proper
let oldValue = this[innerPropertyName];
this[innerPropertyName] = newValue;
if (this[callbackName]) {
this[callbackName](newValue, oldValue);
this[callbackName](newValue, oldValue, key);
}
};

Expand Down
30 changes: 15 additions & 15 deletions dist/commonjs/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3665,16 +3665,16 @@ var StyleObserver = exports.StyleObserver = function () {
}
}
} else if (newValue.length) {
var pairs = newValue.split(/(?:;|:(?!\/))\s*/);
for (var _i22 = 0, length = pairs.length; _i22 < length; _i22++) {
style = pairs[_i22].trim();
var rx = /\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g;
var pair = void 0;
while ((pair = rx.exec(newValue)) !== null) {
style = pair[1];
if (!style) {
continue;
}

styles[style] = version;

this.element.style[style] = pairs[++_i22];
this.element.style[style] = pair[2];
}
}
}
Expand Down Expand Up @@ -3988,8 +3988,8 @@ var SelectValueObserver = exports.SelectValueObserver = (_dec9 = subscriberColle
var count = 0;
var value = [];

for (var _i23 = 0, ii = options.length; _i23 < ii; _i23++) {
var _option = options.item(_i23);
for (var _i22 = 0, ii = options.length; _i22 < ii; _i22++) {
var _option = options.item(_i22);
if (!_option.selected) {
continue;
}
Expand Down Expand Up @@ -4124,8 +4124,8 @@ var ClassObserver = exports.ClassObserver = function () {

if (newValue !== null && newValue !== undefined && newValue.length) {
names = newValue.split(/\s+/);
for (var _i24 = 0, length = names.length; _i24 < length; _i24++) {
name = names[_i24];
for (var _i23 = 0, length = names.length; _i23 < length; _i23++) {
name = names[_i23];
if (name === '') {
continue;
}
Expand Down Expand Up @@ -4218,9 +4218,9 @@ var ComputedExpression = exports.ComputedExpression = function (_Expression19) {
function createComputedObserver(obj, propertyName, descriptor, observerLocator) {
var dependencies = descriptor.get.dependencies;
if (!(dependencies instanceof ComputedExpression)) {
var _i25 = dependencies.length;
while (_i25--) {
dependencies[_i25] = observerLocator.parser.parse(dependencies[_i25]);
var _i24 = dependencies.length;
while (_i24--) {
dependencies[_i24] = observerLocator.parser.parse(dependencies[_i24]);
}
dependencies = descriptor.get.dependencies = new ComputedExpression(propertyName, dependencies);
}
Expand Down Expand Up @@ -4514,8 +4514,8 @@ var ObserverLocator = exports.ObserverLocator = (_temp = _class11 = function ()
};

ObserverLocator.prototype.getAdapterObserver = function getAdapterObserver(obj, propertyName, descriptor) {
for (var _i26 = 0, ii = this.adapters.length; _i26 < ii; _i26++) {
var adapter = this.adapters[_i26];
for (var _i25 = 0, ii = this.adapters.length; _i25 < ii; _i25++) {
var adapter = this.adapters[_i25];
var observer = adapter.getObserver(obj, propertyName, descriptor);
if (observer) {
return observer;
Expand Down Expand Up @@ -5284,7 +5284,7 @@ function observable(targetOrConfig, key, descriptor) {
var oldValue = this[innerPropertyName];
this[innerPropertyName] = newValue;
if (this[callbackName]) {
this[callbackName](newValue, oldValue);
this[callbackName](newValue, oldValue, key);
}
};

Expand Down
12 changes: 6 additions & 6 deletions dist/es2015/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3366,16 +3366,16 @@ export let StyleObserver = class StyleObserver {
}
}
} else if (newValue.length) {
let pairs = newValue.split(/(?:;|:(?!\/))\s*/);
for (let i = 0, length = pairs.length; i < length; i++) {
style = pairs[i].trim();
let rx = /\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g;
let pair;
while ((pair = rx.exec(newValue)) !== null) {
style = pair[1];
if (!style) {
continue;
}

styles[style] = version;

this.element.style[style] = pairs[++i];
this.element.style[style] = pair[2];
}
}
}
Expand Down Expand Up @@ -4825,7 +4825,7 @@ export function observable(targetOrConfig, key, descriptor) {
let oldValue = this[innerPropertyName];
this[innerPropertyName] = newValue;
if (this[callbackName]) {
this[callbackName](newValue, oldValue);
this[callbackName](newValue, oldValue, key);
}
};

Expand Down
30 changes: 15 additions & 15 deletions dist/native-modules/aurelia-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -3630,16 +3630,16 @@ export var StyleObserver = function () {
}
}
} else if (newValue.length) {
var pairs = newValue.split(/(?:;|:(?!\/))\s*/);
for (var _i22 = 0, length = pairs.length; _i22 < length; _i22++) {
style = pairs[_i22].trim();
var rx = /\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g;
var pair = void 0;
while ((pair = rx.exec(newValue)) !== null) {
style = pair[1];
if (!style) {
continue;
}

styles[style] = version;

this.element.style[style] = pairs[++_i22];
this.element.style[style] = pair[2];
}
}
}
Expand Down Expand Up @@ -3951,8 +3951,8 @@ export var SelectValueObserver = (_dec9 = subscriberCollection(), _dec9(_class10
var count = 0;
var value = [];

for (var _i23 = 0, ii = options.length; _i23 < ii; _i23++) {
var _option = options.item(_i23);
for (var _i22 = 0, ii = options.length; _i22 < ii; _i22++) {
var _option = options.item(_i22);
if (!_option.selected) {
continue;
}
Expand Down Expand Up @@ -4087,8 +4087,8 @@ export var ClassObserver = function () {

if (newValue !== null && newValue !== undefined && newValue.length) {
names = newValue.split(/\s+/);
for (var _i24 = 0, length = names.length; _i24 < length; _i24++) {
name = names[_i24];
for (var _i23 = 0, length = names.length; _i23 < length; _i23++) {
name = names[_i23];
if (name === '') {
continue;
}
Expand Down Expand Up @@ -4181,9 +4181,9 @@ export var ComputedExpression = function (_Expression19) {
export function createComputedObserver(obj, propertyName, descriptor, observerLocator) {
var dependencies = descriptor.get.dependencies;
if (!(dependencies instanceof ComputedExpression)) {
var _i25 = dependencies.length;
while (_i25--) {
dependencies[_i25] = observerLocator.parser.parse(dependencies[_i25]);
var _i24 = dependencies.length;
while (_i24--) {
dependencies[_i24] = observerLocator.parser.parse(dependencies[_i24]);
}
dependencies = descriptor.get.dependencies = new ComputedExpression(propertyName, dependencies);
}
Expand Down Expand Up @@ -4479,8 +4479,8 @@ export var ObserverLocator = (_temp = _class11 = function () {
};

ObserverLocator.prototype.getAdapterObserver = function getAdapterObserver(obj, propertyName, descriptor) {
for (var _i26 = 0, ii = this.adapters.length; _i26 < ii; _i26++) {
var adapter = this.adapters[_i26];
for (var _i25 = 0, ii = this.adapters.length; _i25 < ii; _i25++) {
var adapter = this.adapters[_i25];
var observer = adapter.getObserver(obj, propertyName, descriptor);
if (observer) {
return observer;
Expand Down Expand Up @@ -5246,7 +5246,7 @@ export function observable(targetOrConfig, key, descriptor) {
var oldValue = this[innerPropertyName];
this[innerPropertyName] = newValue;
if (this[callbackName]) {
this[callbackName](newValue, oldValue);
this[callbackName](newValue, oldValue, key);
}
};

Expand Down
Loading

0 comments on commit 690cd1e

Please sign in to comment.