Skip to content

Commit

Permalink
Merge pull request #130 from Kanaye/bug-#129
Browse files Browse the repository at this point in the history
Now cloning __props__ and changed order in 'with'
  • Loading branch information
astoilkov committed Jan 20, 2016
2 parents b72e8cc + f0488a4 commit 4c4ccbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/query/DomQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ define([
$parents: context ? models : [],
$index: this._dataIndex || null,
$parentContext: context || null,
__props__: context && context.__props__
__props__: blocks.clone(context && context.__props__)
};
newContext.$context = newContext;
this._context = newContext;
Expand Down
3 changes: 2 additions & 1 deletion src/query/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,11 @@ define([
if (this._renderMode != VirtualElement.RenderMode.None) {
var renderEndTag = this.renderEndTag;

domQuery.pushContext(value);

if (name) {
domQuery.addProperty(name, value);
}
domQuery.pushContext(value);

this.renderEndTag = function () {
domQuery.popContext();
Expand Down

0 comments on commit 4c4ccbc

Please sign in to comment.