Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed May 6, 2016
1 parent 288ba12 commit e62d6e1
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 41 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.2",
"version": "1.0.0-beta.1.2.3",
"description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.",
"keywords": [
"aurelia",
Expand Down
23 changes: 14 additions & 9 deletions dist/amd/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,23 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}

var _dec, _class2, _class3, _temp, _class4, _temp2;

function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}

var AttributeMap = exports.AttributeMap = function () {
function AttributeMap() {
var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3;

var AttributeMap = exports.AttributeMap = (_temp = _class = function () {
function AttributeMap(svg) {
_classCallCheck(this, AttributeMap);

this.elements = Object.create(null);
this.allElements = Object.create(null);

this.svg = svg;

this.registerUniversal('accesskey', 'accessKey');
this.registerUniversal('contenteditable', 'contentEditable');
this.registerUniversal('tabindex', 'tabIndex');
Expand Down Expand Up @@ -103,6 +105,9 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
};

AttributeMap.prototype.map = function map(elementName, attributeName) {
if (this.svg.isStandardSvgAttribute(elementName, attributeName)) {
return attributeName;
}
elementName = elementName.toLowerCase();
attributeName = attributeName.toLowerCase();
var element = this.elements[elementName];
Expand All @@ -120,7 +125,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
};

return AttributeMap;
}();
}(), _class.inject = [_aureliaBinding.SVGAnalyzer], _temp);

var InterpolationBindingExpression = exports.InterpolationBindingExpression = function () {
function InterpolationBindingExpression(observerLocator, targetProperty, parts, mode, lookupFunctions, attribute) {
Expand Down Expand Up @@ -325,7 +330,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],

return ChildInterpolationBinding;
}()) || _class2);
var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp = _class3 = function () {
var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class3 = function () {
function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) {
_classCallCheck(this, SyntaxInterpreter);

Expand Down Expand Up @@ -496,11 +501,11 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
};

return SyntaxInterpreter;
}(), _class3.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp);
}(), _class3.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp2);

var info = {};

var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp2 = _class4 = function (_BindingLanguage) {
var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) {
_inherits(TemplatingBindingLanguage, _BindingLanguage);

function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) {
Expand Down Expand Up @@ -653,7 +658,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'],
};

return TemplatingBindingLanguage;
}(_aureliaTemplating.BindingLanguage), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp2);
}(_aureliaTemplating.BindingLanguage), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3);
function configure(config) {
config.container.registerSingleton(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage);
config.container.registerAlias(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage);
Expand Down
14 changes: 9 additions & 5 deletions dist/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import * as LogManager from 'aurelia-logging';
import {camelCase,bindingMode,connectable,enqueueBindingConnect,Parser,ObserverLocator,EventManager,ListenerExpression,BindingExpression,CallExpression,NameExpression} from 'aurelia-binding';
import {camelCase,SVGAnalyzer,bindingMode,connectable,enqueueBindingConnect,Parser,ObserverLocator,EventManager,ListenerExpression,BindingExpression,CallExpression,NameExpression} from 'aurelia-binding';
import {BehaviorInstruction,BindingLanguage} from 'aurelia-templating';

/**
* Mapping between html element attributes and javascript object properties.
*/
export class AttributeMap {
static inject = [SVGAnalyzer];

elements = Object.create(null);
allElements = Object.create(null);

constructor() {
constructor(svg) {
this.svg = svg;

this.registerUniversal('accesskey', 'accessKey');
this.registerUniversal('contenteditable', 'contentEditable');
this.registerUniversal('tabindex', 'tabIndex');
Expand Down Expand Up @@ -57,6 +58,9 @@ export class AttributeMap {
* Returns the javascript property name for a particlar HTML attribute.
*/
map(elementName, attributeName) {
if (this.svg.isStandardSvgAttribute(elementName, attributeName)) {
return attributeName;
}
elementName = elementName.toLowerCase();
attributeName = attributeName.toLowerCase();
const element = this.elements[elementName];
Expand Down
21 changes: 13 additions & 8 deletions dist/commonjs/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.TemplatingBindingLanguage = exports.SyntaxInterpreter = exports.ChildInterpolationBinding = exports.InterpolationBinding = exports.InterpolationBindingExpression = exports.AttributeMap = undefined;

var _dec, _class2, _class3, _temp, _class4, _temp2;
var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3;

exports.configure = configure;

Expand All @@ -25,13 +25,15 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var AttributeMap = exports.AttributeMap = function () {
function AttributeMap() {
var AttributeMap = exports.AttributeMap = (_temp = _class = function () {
function AttributeMap(svg) {
_classCallCheck(this, AttributeMap);

this.elements = Object.create(null);
this.allElements = Object.create(null);

this.svg = svg;

this.registerUniversal('accesskey', 'accessKey');
this.registerUniversal('contenteditable', 'contentEditable');
this.registerUniversal('tabindex', 'tabIndex');
Expand Down Expand Up @@ -70,6 +72,9 @@ var AttributeMap = exports.AttributeMap = function () {
};

AttributeMap.prototype.map = function map(elementName, attributeName) {
if (this.svg.isStandardSvgAttribute(elementName, attributeName)) {
return attributeName;
}
elementName = elementName.toLowerCase();
attributeName = attributeName.toLowerCase();
var element = this.elements[elementName];
Expand All @@ -87,7 +92,7 @@ var AttributeMap = exports.AttributeMap = function () {
};

return AttributeMap;
}();
}(), _class.inject = [_aureliaBinding.SVGAnalyzer], _temp);

var InterpolationBindingExpression = exports.InterpolationBindingExpression = function () {
function InterpolationBindingExpression(observerLocator, targetProperty, parts, mode, lookupFunctions, attribute) {
Expand Down Expand Up @@ -292,7 +297,7 @@ var ChildInterpolationBinding = exports.ChildInterpolationBinding = (_dec = (0,

return ChildInterpolationBinding;
}()) || _class2);
var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp = _class3 = function () {
var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class3 = function () {
function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) {
_classCallCheck(this, SyntaxInterpreter);

Expand Down Expand Up @@ -463,11 +468,11 @@ var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp = _class3 = function
};

return SyntaxInterpreter;
}(), _class3.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp);
}(), _class3.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp2);

var info = {};

var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp2 = _class4 = function (_BindingLanguage) {
var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) {
_inherits(TemplatingBindingLanguage, _BindingLanguage);

function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) {
Expand Down Expand Up @@ -620,7 +625,7 @@ var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp2 = _c
};

return TemplatingBindingLanguage;
}(_aureliaTemplating.BindingLanguage), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp2);
}(_aureliaTemplating.BindingLanguage), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3);
function configure(config) {
config.container.registerSingleton(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage);
config.container.registerAlias(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage);
Expand Down
23 changes: 14 additions & 9 deletions dist/es2015/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
var _dec, _class2, _class3, _temp, _class4, _temp2;
var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3;

import * as LogManager from 'aurelia-logging';
import { camelCase, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, NameExpression } from 'aurelia-binding';
import { camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, NameExpression } from 'aurelia-binding';
import { BehaviorInstruction, BindingLanguage } from 'aurelia-templating';

export let AttributeMap = class AttributeMap {
export let AttributeMap = (_temp = _class = class AttributeMap {

constructor() {
constructor(svg) {
this.elements = Object.create(null);
this.allElements = Object.create(null);

this.svg = svg;

this.registerUniversal('accesskey', 'accessKey');
this.registerUniversal('contenteditable', 'contentEditable');
this.registerUniversal('tabindex', 'tabIndex');
Expand Down Expand Up @@ -48,6 +50,9 @@ export let AttributeMap = class AttributeMap {
}

map(elementName, attributeName) {
if (this.svg.isStandardSvgAttribute(elementName, attributeName)) {
return attributeName;
}
elementName = elementName.toLowerCase();
attributeName = attributeName.toLowerCase();
const element = this.elements[elementName];
Expand All @@ -63,7 +68,7 @@ export let AttributeMap = class AttributeMap {
}
return camelCase(attributeName);
}
};
}, _class.inject = [SVGAnalyzer], _temp);

export let InterpolationBindingExpression = class InterpolationBindingExpression {
constructor(observerLocator, targetProperty, parts, mode, lookupFunctions, attribute) {
Expand Down Expand Up @@ -257,7 +262,7 @@ export let ChildInterpolationBinding = (_dec = connectable(), _dec(_class2 = cla
}
}) || _class2);

export let SyntaxInterpreter = (_temp = _class3 = class SyntaxInterpreter {
export let SyntaxInterpreter = (_temp2 = _class3 = class SyntaxInterpreter {

constructor(parser, observerLocator, eventManager, attributeMap) {
this.parser = parser;
Expand Down Expand Up @@ -425,11 +430,11 @@ export let SyntaxInterpreter = (_temp = _class3 = class SyntaxInterpreter {

return instruction;
}
}, _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp);
}, _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2);

let info = {};

export let TemplatingBindingLanguage = (_temp2 = _class4 = class TemplatingBindingLanguage extends BindingLanguage {
export let TemplatingBindingLanguage = (_temp3 = _class4 = class TemplatingBindingLanguage extends BindingLanguage {

constructor(parser, observerLocator, syntaxInterpreter, attributeMap) {
super();
Expand Down Expand Up @@ -575,7 +580,7 @@ export let TemplatingBindingLanguage = (_temp2 = _class4 = class TemplatingBindi
parts[partIndex] = value.substr(pos);
return parts;
}
}, _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp2);
}, _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3);

export function configure(config) {
config.container.registerSingleton(BindingLanguage, TemplatingBindingLanguage);
Expand Down
22 changes: 14 additions & 8 deletions dist/system/aurelia-templating-binding.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], function (_export, _context) {
var LogManager, camelCase, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, NameExpression, BehaviorInstruction, BindingLanguage, _dec, _class2, _class3, _temp, _class4, _temp2, AttributeMap, InterpolationBindingExpression, InterpolationBinding, ChildInterpolationBinding, SyntaxInterpreter, info, TemplatingBindingLanguage;
var LogManager, camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, NameExpression, BehaviorInstruction, BindingLanguage, _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3, AttributeMap, InterpolationBindingExpression, InterpolationBinding, ChildInterpolationBinding, SyntaxInterpreter, info, TemplatingBindingLanguage;

function _possibleConstructorReturn(self, call) {
if (!self) {
Expand Down Expand Up @@ -46,6 +46,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
LogManager = _aureliaLogging;
}, function (_aureliaBinding) {
camelCase = _aureliaBinding.camelCase;
SVGAnalyzer = _aureliaBinding.SVGAnalyzer;
bindingMode = _aureliaBinding.bindingMode;
connectable = _aureliaBinding.connectable;
enqueueBindingConnect = _aureliaBinding.enqueueBindingConnect;
Expand All @@ -61,13 +62,15 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
BindingLanguage = _aureliaTemplating.BindingLanguage;
}],
execute: function () {
_export('AttributeMap', AttributeMap = function () {
function AttributeMap() {
_export('AttributeMap', AttributeMap = (_temp = _class = function () {
function AttributeMap(svg) {
_classCallCheck(this, AttributeMap);

this.elements = Object.create(null);
this.allElements = Object.create(null);

this.svg = svg;

this.registerUniversal('accesskey', 'accessKey');
this.registerUniversal('contenteditable', 'contentEditable');
this.registerUniversal('tabindex', 'tabIndex');
Expand Down Expand Up @@ -106,6 +109,9 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
};

AttributeMap.prototype.map = function map(elementName, attributeName) {
if (this.svg.isStandardSvgAttribute(elementName, attributeName)) {
return attributeName;
}
elementName = elementName.toLowerCase();
attributeName = attributeName.toLowerCase();
var element = this.elements[elementName];
Expand All @@ -123,7 +129,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
};

return AttributeMap;
}());
}(), _class.inject = [SVGAnalyzer], _temp));

_export('AttributeMap', AttributeMap);

Expand Down Expand Up @@ -329,7 +335,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu

_export('ChildInterpolationBinding', ChildInterpolationBinding);

_export('SyntaxInterpreter', SyntaxInterpreter = (_temp = _class3 = function () {
_export('SyntaxInterpreter', SyntaxInterpreter = (_temp2 = _class3 = function () {
function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) {
_classCallCheck(this, SyntaxInterpreter);

Expand Down Expand Up @@ -500,13 +506,13 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
};

return SyntaxInterpreter;
}(), _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp));
}(), _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2));

_export('SyntaxInterpreter', SyntaxInterpreter);

info = {};

_export('TemplatingBindingLanguage', TemplatingBindingLanguage = (_temp2 = _class4 = function (_BindingLanguage) {
_export('TemplatingBindingLanguage', TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) {
_inherits(TemplatingBindingLanguage, _BindingLanguage);

function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) {
Expand Down Expand Up @@ -659,7 +665,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu
};

return TemplatingBindingLanguage;
}(BindingLanguage), _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp2));
}(BindingLanguage), _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3));

_export('TemplatingBindingLanguage', TemplatingBindingLanguage);

Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 1.0.0-beta.1.2.3 (2016-05-05)


#### Bug Fixes

* **AttributeMap:** handle standard SVG attributes ([288ba120](http://github.com/aurelia/templating-binding/commit/288ba120b4a093350b5385b8d657bd5bd5c34b3b))


### 1.0.0-beta.1.2.2 (2016-05-03)


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.2",
"version": "1.0.0-beta.1.2.3",
"description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit e62d6e1

Please sign in to comment.