Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.3.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jun 19, 2016
1 parent aecc83a commit daf4d83
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 39 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": "1.0.0-beta.3.0.5",
"version": "1.0.0-beta.3.0.6",
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
"keywords": [
"aurelia",
Expand Down
18 changes: 12 additions & 6 deletions dist/amd/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -1113,12 +1113,18 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
};

ShadowDOM.distributeView = function distributeView(view, slots, projectionSource, index, destinationOverride) {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
var nodes = new Array(ii);
var nodes = void 0;

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
if (view === null) {
nodes = noNodes;
} else {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
nodes = new Array(ii);

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
}
}

ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride);
Expand Down Expand Up @@ -1431,7 +1437,7 @@ define(['exports', 'aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aureli
children[i].bind(bindingContext, overrideContext, true);
}

if (this.hasSlots && this.contentView !== null) {
if (this.hasSlots) {
ShadowDOM.distributeView(this.contentView, this.slots);
}
};
Expand Down
18 changes: 12 additions & 6 deletions dist/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,12 +1332,18 @@ export class ShadowDOM {
}

static distributeView(view, slots, projectionSource, index, destinationOverride) {
let childNodes = view.fragment.childNodes;
let ii = childNodes.length;
let nodes = new Array(ii);
let nodes;

for (let i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
if (view === null) {
nodes = noNodes;
} else {
let childNodes = view.fragment.childNodes;
let ii = childNodes.length;
nodes = new Array(ii);

for (let i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
}
}

ShadowDOM.distributeNodes(
Expand Down Expand Up @@ -1821,7 +1827,7 @@ export class View {
children[i].bind(bindingContext, overrideContext, true);
}

if (this.hasSlots && this.contentView !== null) {
if (this.hasSlots) {
ShadowDOM.distributeView(this.contentView, this.slots);
}
}
Expand Down
18 changes: 12 additions & 6 deletions dist/commonjs/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -1094,12 +1094,18 @@ var ShadowDOM = exports.ShadowDOM = (_temp3 = _class11 = function () {
};

ShadowDOM.distributeView = function distributeView(view, slots, projectionSource, index, destinationOverride) {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
var nodes = new Array(ii);
var nodes = void 0;

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
if (view === null) {
nodes = noNodes;
} else {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
nodes = new Array(ii);

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
}
}

ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride);
Expand Down Expand Up @@ -1412,7 +1418,7 @@ var View = exports.View = function () {
children[i].bind(bindingContext, overrideContext, true);
}

if (this.hasSlots && this.contentView !== null) {
if (this.hasSlots) {
ShadowDOM.distributeView(this.contentView, this.slots);
}
};
Expand Down
18 changes: 12 additions & 6 deletions dist/es2015/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,12 +931,18 @@ export let ShadowDOM = (_temp3 = _class11 = class ShadowDOM {
}

static distributeView(view, slots, projectionSource, index, destinationOverride) {
let childNodes = view.fragment.childNodes;
let ii = childNodes.length;
let nodes = new Array(ii);
let nodes;

for (let i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
if (view === null) {
nodes = noNodes;
} else {
let childNodes = view.fragment.childNodes;
let ii = childNodes.length;
nodes = new Array(ii);

for (let i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
}
}

ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride);
Expand Down Expand Up @@ -1240,7 +1246,7 @@ export let View = class View {
children[i].bind(bindingContext, overrideContext, true);
}

if (this.hasSlots && this.contentView !== null) {
if (this.hasSlots) {
ShadowDOM.distributeView(this.contentView, this.slots);
}
}
Expand Down
18 changes: 12 additions & 6 deletions dist/native-modules/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -1059,12 +1059,18 @@ export var ShadowDOM = (_temp3 = _class11 = function () {
};

ShadowDOM.distributeView = function distributeView(view, slots, projectionSource, index, destinationOverride) {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
var nodes = new Array(ii);
var nodes = void 0;

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
if (view === null) {
nodes = noNodes;
} else {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
nodes = new Array(ii);

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
}
}

ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride);
Expand Down Expand Up @@ -1376,7 +1382,7 @@ export var View = function () {
children[i].bind(bindingContext, overrideContext, true);
}

if (this.hasSlots && this.contentView !== null) {
if (this.hasSlots) {
ShadowDOM.distributeView(this.contentView, this.slots);
}
};
Expand Down
18 changes: 12 additions & 6 deletions dist/system/aurelia-templating.js
Original file line number Diff line number Diff line change
Expand Up @@ -1624,12 +1624,18 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
};

ShadowDOM.distributeView = function distributeView(view, slots, projectionSource, index, destinationOverride) {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
var nodes = new Array(ii);
var nodes = void 0;

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
if (view === null) {
nodes = noNodes;
} else {
var childNodes = view.fragment.childNodes;
var ii = childNodes.length;
nodes = new Array(ii);

for (var i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
}
}

ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride);
Expand Down Expand Up @@ -1928,7 +1934,7 @@ System.register(['aurelia-logging', 'aurelia-metadata', 'aurelia-pal', 'aurelia-
children[i].bind(bindingContext, overrideContext, true);
}

if (this.hasSlots && this.contentView !== null) {
if (this.hasSlots) {
ShadowDOM.distributeView(this.contentView, this.slots);
}
};
Expand Down
10 changes: 10 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.0.0-beta.3.0.6"></a>
# [1.0.0-beta.3.0.6](https://github.com/aurelia/templating/compare/1.0.0-beta.3.0.5...v1.0.0-beta.3.0.6) (2016-06-19)


### Bug Fixes

* **shadow-dom:** handle elements with no content ([aecc83a](https://github.com/aurelia/templating/commit/aecc83a)), closes [#388](https://github.com/aurelia/templating/issues/388)



### 1.0.0-beta.2.0.1 (2016-05-31)


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": "1.0.0-beta.3.0.5",
"version": "1.0.0-beta.3.0.6",
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
"keywords": [
"aurelia",
Expand Down
2 changes: 1 addition & 1 deletion src/shadow-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export class ShadowDOM {
} else {
let childNodes = view.fragment.childNodes;
let ii = childNodes.length;
let nodes = new Array(ii);
nodes = new Array(ii);

for (let i = 0; i < ii; ++i) {
nodes[i] = childNodes[i];
Expand Down

0 comments on commit daf4d83

Please sign in to comment.