Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 1, 2016
1 parent a98860b commit 589d107
Show file tree
Hide file tree
Showing 11 changed files with 156 additions and 99 deletions.
4 changes: 2 additions & 2 deletions bower.json
@@ -1,6 +1,6 @@
{
"name": "aurelia-templating-binding",
"version": "1.0.0-beta.1.1.1",
"version": "1.0.0-beta.1.1.2",
"description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.",
"keywords": [
"aurelia",
Expand All @@ -18,7 +18,7 @@
"url": "http://github.com/aurelia/templating-binding"
},
"dependencies": {
"aurelia-binding": "^1.0.0-beta.1.1.0",
"aurelia-binding": "^1.0.0-beta.1.2.1",
"aurelia-logging": "^1.0.0-beta.1.1.1",
"aurelia-templating": "^1.0.0-beta.1.1.0"
}
Expand Down
65 changes: 30 additions & 35 deletions config.js
Expand Up @@ -14,15 +14,15 @@ System.config({
},

map: {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.1.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.1",
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.2.1",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.2",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.1.2",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.0",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.1.0",
"aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0-beta.1.1.4",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.1",
"aurelia-templating": "npm:aurelia-templating@1.0.0-beta.1.1.2",
"babel": "npm:babel-core@5.8.35",
"babel-runtime": "npm:babel-runtime@5.8.35",
"core-js": "npm:core-js@2.0.3",
"core-js": "npm:core-js@2.1.3",
"github:jspm/nodelibs-assert@0.1.0": {
"assert": "npm:assert@1.3.0"
},
Expand All @@ -38,48 +38,43 @@ System.config({
"npm:assert@1.3.0": {
"util": "npm:util@0.10.3"
},
"npm:aurelia-binding@1.0.0-beta.1.1.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3",
"npm:aurelia-binding@1.0.0-beta.1.2.1": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.5",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.0",
"core-js": "npm:core-js@2.0.3"
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.1"
},
"npm:aurelia-dependency-injection@1.0.0-beta.1.1.2": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"core-js": "npm:core-js@2.0.3"
"npm:aurelia-dependency-injection@1.0.0-beta.1.1.4": {
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.2",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.5",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1"
},
"npm:aurelia-loader@1.0.0-beta.1.1.0": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.1.0"
"npm:aurelia-loader@1.0.0-beta.1.1.1": {
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.5",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.1.1"
},
"npm:aurelia-metadata@1.0.0-beta.1.1.3": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"core-js": "npm:core-js@2.0.3"
"npm:aurelia-metadata@1.0.0-beta.1.1.5": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1"
},
"npm:aurelia-pal-browser@1.0.0-beta.1.1.2": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"core-js": "npm:core-js@2.0.3"
"npm:aurelia-pal-browser@1.0.0-beta.1.1.4": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1"
},
"npm:aurelia-task-queue@1.0.0-beta.1.1.0": {
"npm:aurelia-task-queue@1.0.0-beta.1.1.1": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1"
},
"npm:aurelia-templating@1.0.0-beta.1.1.0": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.1.0",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.1.2",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.1.0",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.1",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.3",
"npm:aurelia-templating@1.0.0-beta.1.1.2": {
"aurelia-binding": "npm:aurelia-binding@1.0.0-beta.1.2.1",
"aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.0.0-beta.1.1.4",
"aurelia-loader": "npm:aurelia-loader@1.0.0-beta.1.1.1",
"aurelia-logging": "npm:aurelia-logging@1.0.0-beta.1.1.2",
"aurelia-metadata": "npm:aurelia-metadata@1.0.0-beta.1.1.5",
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.1.0",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.0",
"core-js": "npm:core-js@2.0.3"
"aurelia-path": "npm:aurelia-path@1.0.0-beta.1.1.1",
"aurelia-task-queue": "npm:aurelia-task-queue@1.0.0-beta.1.1.1"
},
"npm:babel-runtime@5.8.35": {
"process": "github:jspm/nodelibs-process@0.1.2"
},
"npm:core-js@2.0.3": {
"npm:core-js@2.1.3": {
"fs": "github:jspm/nodelibs-fs@0.1.2",
"path": "github:jspm/nodelibs-path@0.1.0",
"process": "github:jspm/nodelibs-process@0.1.2",
Expand Down
13 changes: 11 additions & 2 deletions dist/amd/aurelia-templating-binding.js
Expand Up @@ -66,6 +66,15 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
}
};

InterpolationBinding.prototype.updateOneTimeBindings = function updateOneTimeBindings() {
for (var i = 1, ii = this.parts.length; i < ii; i += 2) {
var child = this['childBinding' + i];
if (child.mode === _aureliaBinding.bindingMode.oneTime) {
child.call();
}
}
};

InterpolationBinding.prototype.bind = function bind(source) {
if (this.isBound) {
if (this.source === source) {
Expand Down Expand Up @@ -434,7 +443,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
info.command = parts[1].trim();

if (info.command === 'ref') {
info.expression = new _aureliaBinding.NameExpression(attrValue, info.attrName);
info.expression = new _aureliaBinding.NameExpression(this.parser.parse(attrValue), info.attrName);
info.command = null;
info.attrName = 'ref';
} else {
Expand All @@ -444,7 +453,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
info.attrName = attrName;
info.attrValue = attrValue;
info.command = null;
info.expression = new _aureliaBinding.NameExpression(attrValue, 'element');
info.expression = new _aureliaBinding.NameExpression(this.parser.parse(attrValue), 'element');
} else {
info.attrName = attrName;
info.attrValue = attrValue;
Expand Down
50 changes: 30 additions & 20 deletions dist/aurelia-templating-binding.js
Expand Up @@ -70,6 +70,15 @@ export class InterpolationBinding {
}
}

updateOneTimeBindings() {
for (let i = 1, ii = this.parts.length; i < ii; i += 2) {
let child = this[`childBinding${i}`];
if (child.mode === bindingMode.oneTime) {
child.call();
}
}
}

bind(source) {
if (this.isBound) {
if (this.source === source) {
Expand Down Expand Up @@ -417,6 +426,7 @@ export class SyntaxInterpreter {
}
}

/*eslint indent:0*/
let info = {};

export class TemplatingBindingLanguage extends BindingLanguage {
Expand Down Expand Up @@ -461,7 +471,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
info.command = parts[1].trim();

if (info.command === 'ref') {
info.expression = new NameExpression(attrValue, info.attrName);
info.expression = new NameExpression(this.parser.parse(attrValue), info.attrName);
info.command = null;
info.attrName = 'ref';
} else {
Expand All @@ -471,7 +481,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
info.attrName = attrName;
info.attrValue = attrValue;
info.command = null;
info.expression = new NameExpression(attrValue, 'element');
info.expression = new NameExpression(this.parser.parse(attrValue), 'element');
} else {
info.attrName = attrName;
info.attrValue = attrValue;
Expand All @@ -483,28 +493,28 @@ export class TemplatingBindingLanguage extends BindingLanguage {
}

createAttributeInstruction(resources, element, theInfo, existingInstruction, context) {
let instruction;
let instruction;

if (theInfo.expression) {
if (theInfo.attrName === 'ref') {
return theInfo.expression;
}

if (theInfo.expression) {
if (theInfo.attrName === 'ref') {
return theInfo.expression;
instruction = existingInstruction || BehaviorInstruction.attribute(theInfo.attrName);
instruction.attributes[theInfo.attrName] = theInfo.expression;
} else if (theInfo.command) {
instruction = this.syntaxInterpreter.interpret(
resources,
element,
theInfo,
existingInstruction,
context
);
}

instruction = existingInstruction || BehaviorInstruction.attribute(theInfo.attrName);
instruction.attributes[theInfo.attrName] = theInfo.expression;
} else if (theInfo.command) {
instruction = this.syntaxInterpreter.interpret(
resources,
element,
theInfo,
existingInstruction,
context
);
return instruction;
}

return instruction;
}

parseText(resources, value) {
return this.parseContent(resources, 'textContent', value);
}
Expand Down Expand Up @@ -552,7 +562,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
} else if (char === '}') {
open--;
}
} while (open > 0 && i < ii)
} while (open > 0 && i < ii);

if (open === 0) {
// lazy allocate array
Expand Down
13 changes: 11 additions & 2 deletions dist/commonjs/aurelia-templating-binding.js
Expand Up @@ -75,6 +75,15 @@ var InterpolationBinding = (function () {
}
};

InterpolationBinding.prototype.updateOneTimeBindings = function updateOneTimeBindings() {
for (var i = 1, ii = this.parts.length; i < ii; i += 2) {
var child = this['childBinding' + i];
if (child.mode === _aureliaBinding.bindingMode.oneTime) {
child.call();
}
}
};

InterpolationBinding.prototype.bind = function bind(source) {
if (this.isBound) {
if (this.source === source) {
Expand Down Expand Up @@ -443,7 +452,7 @@ var TemplatingBindingLanguage = (function (_BindingLanguage) {
info.command = parts[1].trim();

if (info.command === 'ref') {
info.expression = new _aureliaBinding.NameExpression(attrValue, info.attrName);
info.expression = new _aureliaBinding.NameExpression(this.parser.parse(attrValue), info.attrName);
info.command = null;
info.attrName = 'ref';
} else {
Expand All @@ -453,7 +462,7 @@ var TemplatingBindingLanguage = (function (_BindingLanguage) {
info.attrName = attrName;
info.attrValue = attrValue;
info.command = null;
info.expression = new _aureliaBinding.NameExpression(attrValue, 'element');
info.expression = new _aureliaBinding.NameExpression(this.parser.parse(attrValue), 'element');
} else {
info.attrName = attrName;
info.attrValue = attrValue;
Expand Down
50 changes: 30 additions & 20 deletions dist/es6/aurelia-templating-binding.js
Expand Up @@ -70,6 +70,15 @@ export class InterpolationBinding {
}
}

updateOneTimeBindings() {
for (let i = 1, ii = this.parts.length; i < ii; i += 2) {
let child = this[`childBinding${i}`];
if (child.mode === bindingMode.oneTime) {
child.call();
}
}
}

bind(source) {
if (this.isBound) {
if (this.source === source) {
Expand Down Expand Up @@ -417,6 +426,7 @@ export class SyntaxInterpreter {
}
}

/*eslint indent:0*/
let info = {};

export class TemplatingBindingLanguage extends BindingLanguage {
Expand Down Expand Up @@ -461,7 +471,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
info.command = parts[1].trim();

if (info.command === 'ref') {
info.expression = new NameExpression(attrValue, info.attrName);
info.expression = new NameExpression(this.parser.parse(attrValue), info.attrName);
info.command = null;
info.attrName = 'ref';
} else {
Expand All @@ -471,7 +481,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
info.attrName = attrName;
info.attrValue = attrValue;
info.command = null;
info.expression = new NameExpression(attrValue, 'element');
info.expression = new NameExpression(this.parser.parse(attrValue), 'element');
} else {
info.attrName = attrName;
info.attrValue = attrValue;
Expand All @@ -483,28 +493,28 @@ export class TemplatingBindingLanguage extends BindingLanguage {
}

createAttributeInstruction(resources, element, theInfo, existingInstruction, context) {
let instruction;
let instruction;

if (theInfo.expression) {
if (theInfo.attrName === 'ref') {
return theInfo.expression;
}

if (theInfo.expression) {
if (theInfo.attrName === 'ref') {
return theInfo.expression;
instruction = existingInstruction || BehaviorInstruction.attribute(theInfo.attrName);
instruction.attributes[theInfo.attrName] = theInfo.expression;
} else if (theInfo.command) {
instruction = this.syntaxInterpreter.interpret(
resources,
element,
theInfo,
existingInstruction,
context
);
}

instruction = existingInstruction || BehaviorInstruction.attribute(theInfo.attrName);
instruction.attributes[theInfo.attrName] = theInfo.expression;
} else if (theInfo.command) {
instruction = this.syntaxInterpreter.interpret(
resources,
element,
theInfo,
existingInstruction,
context
);
return instruction;
}

return instruction;
}

parseText(resources, value) {
return this.parseContent(resources, 'textContent', value);
}
Expand Down Expand Up @@ -552,7 +562,7 @@ export class TemplatingBindingLanguage extends BindingLanguage {
} else if (char === '}') {
open--;
}
} while (open > 0 && i < ii)
} while (open > 0 && i < ii);

if (open === 0) {
// lazy allocate array
Expand Down

0 comments on commit 589d107

Please sign in to comment.