* @private
*/
Interchange.prototype._events = function() {
- $(window).on('resize.fndtn.interchange', Foundation.util.throttle(this._reflow.bind(this), 50));
+ $(window).on('resize.zf.interchange', Foundation.util.throttle(this._reflow.bind(this), 50));
};
/**
// Replacing images
if (this.$element[0].nodeName === 'IMG') {
this.$element.attr('src', path).load(function() {
- _this.$element.trigger('replaced.zf.interchange');
_this.currentPath = path;
});
}
$.get(path, function(response) {
_this.$element.html(response);
$(response).foundation();
- _this.$element.trigger('replaced.zf.interchange');
_this.currentPath = path;
});
}
+ this.$element.trigger('replaced.zf.interchange');
};
/**
* Destroys an instance of interchange.