dist/tao.js in tao_on_rails-0.5.0 vs dist/tao.js in tao_on_rails-0.5.1

- old
+ new

@@ -27854,10 +27854,13 @@ this._initUjs(); return this._initTurbolinks(); }; TaoApplication.prototype._initGon = function() { + if (!window.gon) { + return; + } $.extend(this, window.gon); return window.gon = null; }; TaoApplication.prototype._initUjs = function() { @@ -27939,9 +27942,10 @@ var $page; $page = $('body > .tao-page'); if (!($page.length > 0)) { return; } + _this._initGon(); _this._initIcons($page); _this._initPage($page); return _this.trigger('page-load', [_this.currentPage]); }; })(this));