Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 29, 2016
1 parent 7495334 commit f0d42a5
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 13 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-binding",
"version": "1.0.0-beta.1.2.0",
"version": "1.0.0-beta.1.2.1",
"description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.",
"keywords": [
"aurelia",
Expand Down
5 changes: 3 additions & 2 deletions dist/amd/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
return _aureliaBinding.bindingMode.twoWay;
}

if (context && attrName in context.attributes) {
return context.attributes[attrName].defaultBindingMode || _aureliaBinding.bindingMode.oneWay;
if (context && attrName in context.attributes && context.attributes[attrName] && context.attributes[attrName].defaultBindingMode >= _aureliaBinding.bindingMode.oneTime) {
return context.attributes[attrName].defaultBindingMode;
}

return _aureliaBinding.bindingMode.oneWay;
Expand Down Expand Up @@ -458,6 +458,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
_this.emptyStringExpression = _this.parser.parse('\'\'');
syntaxInterpreter.language = _this;
_this.attributeMap = syntaxInterpreter.attributeMap = {
'accesskey': 'accessKey',
'contenteditable': 'contentEditable',
'for': 'htmlFor',
'tabindex': 'tabIndex',
Expand Down
8 changes: 6 additions & 2 deletions dist/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ export class SyntaxInterpreter {
return bindingMode.twoWay;
}

if (context && attrName in context.attributes) {
return context.attributes[attrName].defaultBindingMode || bindingMode.oneWay;
if (context
&& attrName in context.attributes
&& context.attributes[attrName]
&& context.attributes[attrName].defaultBindingMode >= bindingMode.oneTime) {
return context.attributes[attrName].defaultBindingMode;
}

return bindingMode.oneWay;
Expand Down Expand Up @@ -449,6 +452,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
this.emptyStringExpression = this.parser.parse('\'\'');
syntaxInterpreter.language = this;
this.attributeMap = syntaxInterpreter.attributeMap = {
'accesskey': 'accessKey',
'contenteditable': 'contentEditable',
'for': 'htmlFor',
'tabindex': 'tabIndex',
Expand Down
5 changes: 3 additions & 2 deletions dist/commonjs/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ var SyntaxInterpreter = exports.SyntaxInterpreter = function () {
return _aureliaBinding.bindingMode.twoWay;
}

if (context && attrName in context.attributes) {
return context.attributes[attrName].defaultBindingMode || _aureliaBinding.bindingMode.oneWay;
if (context && attrName in context.attributes && context.attributes[attrName] && context.attributes[attrName].defaultBindingMode >= _aureliaBinding.bindingMode.oneTime) {
return context.attributes[attrName].defaultBindingMode;
}

return _aureliaBinding.bindingMode.oneWay;
Expand Down Expand Up @@ -425,6 +425,7 @@ var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = function (_B
_this.emptyStringExpression = _this.parser.parse('\'\'');
syntaxInterpreter.language = _this;
_this.attributeMap = syntaxInterpreter.attributeMap = {
'accesskey': 'accessKey',
'contenteditable': 'contentEditable',
'for': 'htmlFor',
'tabindex': 'tabIndex',
Expand Down
5 changes: 3 additions & 2 deletions dist/es2015/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ export let SyntaxInterpreter = class SyntaxInterpreter {
return bindingMode.twoWay;
}

if (context && attrName in context.attributes) {
return context.attributes[attrName].defaultBindingMode || bindingMode.oneWay;
if (context && attrName in context.attributes && context.attributes[attrName] && context.attributes[attrName].defaultBindingMode >= bindingMode.oneTime) {
return context.attributes[attrName].defaultBindingMode;
}

return bindingMode.oneWay;
Expand Down Expand Up @@ -381,6 +381,7 @@ export let TemplatingBindingLanguage = class TemplatingBindingLanguage extends B
this.emptyStringExpression = this.parser.parse('\'\'');
syntaxInterpreter.language = this;
this.attributeMap = syntaxInterpreter.attributeMap = {
'accesskey': 'accessKey',
'contenteditable': 'contentEditable',
'for': 'htmlFor',
'tabindex': 'tabIndex',
Expand Down
5 changes: 3 additions & 2 deletions dist/system/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
return bindingMode.twoWay;
}

if (context && attrName in context.attributes) {
return context.attributes[attrName].defaultBindingMode || bindingMode.oneWay;
if (context && attrName in context.attributes && context.attributes[attrName] && context.attributes[attrName].defaultBindingMode >= bindingMode.oneTime) {
return context.attributes[attrName].defaultBindingMode;
}

return bindingMode.oneWay;
Expand Down Expand Up @@ -460,6 +460,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
_this.emptyStringExpression = _this.parser.parse('\'\'');
syntaxInterpreter.language = _this;
_this.attributeMap = syntaxInterpreter.attributeMap = {
'accesskey': 'accessKey',
'contenteditable': 'contentEditable',
'for': 'htmlFor',
'tabindex': 'tabIndex',
Expand Down
13 changes: 13 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### 1.0.0-beta.1.2.1 (2016-03-29)


#### Bug Fixes

* **SyntaxInterpreter:** enable specifying oneTime default binding mode ([74953349](http://github.com/aurelia/templating-binding/commit/74953349afb71538cbee4e73498ea5d3584f5f62))


#### Features

* **attributeMap:** map accesskey ([5d9b1315](http://github.com/aurelia/templating-binding/commit/5d9b1315224cd737c5d613f42eee6bda6db9e858))


### 1.0.0-beta.1.2.0 (2016-03-22)

#### Bug Fixes
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-binding",
"version": "1.0.0-beta.1.2.0",
"version": "1.0.0-beta.1.2.1",
"description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.",
"keywords": [
"aurelia",
Expand Down
2 changes: 1 addition & 1 deletion src/syntax-interpreter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class SyntaxInterpreter {
}

if (context
&& attrName in context.attributes
&& attrName in context.attributes
&& context.attributes[attrName]
&& context.attributes[attrName].defaultBindingMode >= bindingMode.oneTime) {
return context.attributes[attrName].defaultBindingMode;
Expand Down

0 comments on commit f0d42a5

Please sign in to comment.