Skip to content

Commit

Permalink
chore(all): prepare release 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Apr 11, 2015
1 parent ebef746 commit ac39f46
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 22 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-templating",
"version": "0.10.1",
"version": "0.10.2",
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
"keywords": [
"aurelia",
Expand Down
7 changes: 4 additions & 3 deletions dist/amd/bindable-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _

this.attribute = this.attribute || _util.hyphenate(this.name);
this.defaultBindingMode = this.defaultBindingMode || _aureliaBinding.ONE_WAY;
this.changeHandler = this.changeHandler || null;
this.owner = null;
}

Expand All @@ -52,7 +53,7 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _
var name = this.name,
handlerName;

if (this.changeHandler === undefined) {
if (this.changeHandler === null) {
handlerName = name + 'Changed';
if (handlerName in target.prototype) {
this.changeHandler = handlerName;
Expand Down Expand Up @@ -81,7 +82,7 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _
return;
}

if (this.changeHandler !== undefined) {
if (this.changeHandler !== null) {
selfSubscriber = function (newValue, oldValue) {
return executionContext[_this.changeHandler](newValue, oldValue);
};
Expand Down Expand Up @@ -114,7 +115,7 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _
observer.call();
} else if (attribute) {
boundProperties.push({ observer: observer, binding: attribute.createBinding(executionContext) });
} else if (this.defaultValue) {
} else if (this.defaultValue !== undefined) {
executionContext[this.name] = this.defaultValue;
observer.call();
}
Expand Down
5 changes: 3 additions & 2 deletions dist/amd/html-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ define(['exports', 'aurelia-metadata', 'aurelia-binding', 'aurelia-task-queue',
}).registerWith(target, this);
}

if (properties.length === 1) {
current = properties[0];
current = properties[0];

if (properties.length === 1 && current.name === 'value') {
current.isDynamic = current.hasOptions = this.hasDynamicOptions;
current.defineOn(target, this);
} else {
Expand Down
7 changes: 4 additions & 3 deletions dist/commonjs/bindable-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var BindableProperty = (function () {

this.attribute = this.attribute || _hyphenate.hyphenate(this.name);
this.defaultBindingMode = this.defaultBindingMode || _ONE_WAY$TWO_WAY$ONE_TIME.ONE_WAY;
this.changeHandler = this.changeHandler || null;
this.owner = null;
}

Expand All @@ -57,7 +58,7 @@ var BindableProperty = (function () {
var name = this.name,
handlerName;

if (this.changeHandler === undefined) {
if (this.changeHandler === null) {
handlerName = name + 'Changed';
if (handlerName in target.prototype) {
this.changeHandler = handlerName;
Expand Down Expand Up @@ -86,7 +87,7 @@ var BindableProperty = (function () {
return;
}

if (this.changeHandler !== undefined) {
if (this.changeHandler !== null) {
selfSubscriber = function (newValue, oldValue) {
return executionContext[_this.changeHandler](newValue, oldValue);
};
Expand Down Expand Up @@ -119,7 +120,7 @@ var BindableProperty = (function () {
observer.call();
} else if (attribute) {
boundProperties.push({ observer: observer, binding: attribute.createBinding(executionContext) });
} else if (this.defaultValue) {
} else if (this.defaultValue !== undefined) {
executionContext[this.name] = this.defaultValue;
observer.call();
}
Expand Down
5 changes: 3 additions & 2 deletions dist/commonjs/html-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ var HtmlBehaviorResource = (function (_ResourceType) {
}).registerWith(target, this);
}

if (properties.length === 1) {
current = properties[0];
current = properties[0];

if (properties.length === 1 && current.name === 'value') {
current.isDynamic = current.hasOptions = this.hasDynamicOptions;
current.defineOn(target, this);
} else {
Expand Down
7 changes: 4 additions & 3 deletions dist/es6/bindable-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class BindableProperty {

this.attribute = this.attribute || hyphenate(this.name);
this.defaultBindingMode = this.defaultBindingMode || ONE_WAY;
this.changeHandler = this.changeHandler || null;
this.owner = null;
}

Expand All @@ -36,7 +37,7 @@ export class BindableProperty {
var name = this.name,
handlerName;

if(this.changeHandler === undefined){
if(this.changeHandler === null){
handlerName = name + 'Changed';
if(handlerName in target.prototype){
this.changeHandler = handlerName;
Expand All @@ -62,7 +63,7 @@ export class BindableProperty {
return;
}

if(this.changeHandler !== undefined){
if(this.changeHandler !== null){
selfSubscriber = (newValue, oldValue) => executionContext[this.changeHandler](newValue, oldValue);
}

Expand Down Expand Up @@ -92,7 +93,7 @@ export class BindableProperty {
observer.call();
}else if(attribute){
boundProperties.push({observer:observer, binding:attribute.createBinding(executionContext)});
}else if(this.defaultValue){
}else if(this.defaultValue !== undefined){
executionContext[this.name] = this.defaultValue;
observer.call();
}
Expand Down
5 changes: 3 additions & 2 deletions dist/es6/html-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ export class HtmlBehaviorResource extends ResourceType {
}).registerWith(target, this);
}

if(properties.length === 1){ //default for custom attributes
current = properties[0];
current = properties[0];

if(properties.length === 1 && current.name === 'value'){ //default for custom attributes
current.isDynamic = current.hasOptions = this.hasDynamicOptions;
current.defineOn(target, this);
} else{ //custom attribute with options
Expand Down
7 changes: 4 additions & 3 deletions dist/system/bindable-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ System.register(['core-js', './util', 'aurelia-binding'], function (_export) {

this.attribute = this.attribute || hyphenate(this.name);
this.defaultBindingMode = this.defaultBindingMode || ONE_WAY;
this.changeHandler = this.changeHandler || null;
this.owner = null;
}

Expand All @@ -57,7 +58,7 @@ System.register(['core-js', './util', 'aurelia-binding'], function (_export) {
var name = this.name,
handlerName;

if (this.changeHandler === undefined) {
if (this.changeHandler === null) {
handlerName = name + 'Changed';
if (handlerName in target.prototype) {
this.changeHandler = handlerName;
Expand Down Expand Up @@ -86,7 +87,7 @@ System.register(['core-js', './util', 'aurelia-binding'], function (_export) {
return;
}

if (this.changeHandler !== undefined) {
if (this.changeHandler !== null) {
selfSubscriber = function (newValue, oldValue) {
return executionContext[_this.changeHandler](newValue, oldValue);
};
Expand Down Expand Up @@ -119,7 +120,7 @@ System.register(['core-js', './util', 'aurelia-binding'], function (_export) {
observer.call();
} else if (attribute) {
boundProperties.push({ observer: observer, binding: attribute.createBinding(executionContext) });
} else if (this.defaultValue) {
} else if (this.defaultValue !== undefined) {
executionContext[this.name] = this.defaultValue;
observer.call();
}
Expand Down
5 changes: 3 additions & 2 deletions dist/system/html-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ System.register(['aurelia-metadata', 'aurelia-binding', 'aurelia-task-queue', '.
}).registerWith(target, this);
}

if (properties.length === 1) {
current = properties[0];
current = properties[0];

if (properties.length === 1 && current.name === 'value') {
current.isDynamic = current.hasOptions = this.hasDynamicOptions;
current.defineOn(target, this);
} else {
Expand Down
12 changes: 12 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### 0.10.2 (2015-04-11)


#### Bug Fixes

* **bindable-property:**
* set default if not undefined ([98e479ad](http://github.com/aurelia/templating/commit/98e479ad621197db2335340cc7bea052e658bf76))
* ensure changeHandler is always defined, but null by default ([6de4f87e](http://github.com/aurelia/templating/commit/6de4f87e5115819eaa1dc5ff2fab1febfd07ff8a))
* **html-behavior:** custom attrs with one property that is not value should be options ([8486dc45](http://github.com/aurelia/templating/commit/8486dc45a0196ffffbf2c2b9663cab538cfaf22b))
* **html-bheavior:** incorrect identification of options attributes ([ebef7461](http://github.com/aurelia/templating/commit/ebef746164c90feb1d9861f1a599eb4fb0925a25))


### 0.10.1 (2015-04-09)


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-templating",
"version": "0.10.1",
"version": "0.10.2",
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit ac39f46

Please sign in to comment.