Skip to content

Commit

Permalink
Merge branch 'release-2.5.0' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
archetyped committed Aug 14, 2015
2 parents 8b0c1e4 + 4308df0 commit edbd94b
Show file tree
Hide file tree
Showing 29 changed files with 867 additions and 838 deletions.
12 changes: 5 additions & 7 deletions client/js/dev/lib.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2922,11 +2922,11 @@ var Content_Item = {
this._super();
// Add asset properties
var d = this.dom_get();
var key = d.attr('href') || null;
var key = d.attr(this.util.get_attribute('asset')) || null;
var assets = this.get_controller().assets || null;
// Merge asset data with default attributes
if ( this.util.is_string(key) ) {
var attrs = [{}, this._attr_default, {'permalink': key}];
var attrs = [{}, this._attr_default, {'permalink': d.attr('href')}];
if ( this.util.is_obj(assets) ) {
var t = this;
/**
Expand All @@ -2939,10 +2939,6 @@ var Content_Item = {
var ret = {};
if ( key in assets && t.util.is_obj(assets[key]) ) {
ret = assets[key];
// Handle variants
if ( '_parent' in ret ) {
ret = get_assets(ret._parent);
}
}
return ret;
};
Expand Down Expand Up @@ -3024,6 +3020,8 @@ var Content_Item = {
if ( !this.util.is_string(ret) ) {
ret = ( 'source' === mode ) ? this.get_attribute('permalink') : '';
}
// Format
ret = ret.replace('&', '&');
return ret;
},

Expand Down Expand Up @@ -4069,7 +4067,7 @@ var Template = {

_hooks: function() {
// TODO: Refactor to event that can save retrieved tags
//(`dom_init` event called during attribute initialization so tags are not saved)
// (`dom_init` event called during attribute initialization so tags are not saved)
this.on('dom_init', function(ev) {
// Init tag handlers
var tags = this.get_tags(null, null, true);
Expand Down
4 changes: 2 additions & 2 deletions client/js/prod/lib.view.js

Large diffs are not rendered by default.

Loading

0 comments on commit edbd94b

Please sign in to comment.