dist/tao.js in tao_on_rails-0.5.2 vs dist/tao.js in tao_on_rails-0.5.3

- old
+ new

@@ -27710,10 +27710,14 @@ (function() { var TaoModule, slice = [].slice; TaoModule = (function() { + var id; + + id = 0; + TaoModule.extend = function(obj) { var key, ref, val; if (!(obj && typeof obj === 'object')) { throw new Error('TaoModule.extend: param should be an object'); } @@ -27791,10 +27795,11 @@ function TaoModule(options) { var key, val; if (options == null) { options = {}; } + this.id = ++id; this._attributes = {}; if (typeof options === 'object') { for (key in options) { val = options[key]; this[key] = val; @@ -27875,10 +27880,10 @@ return $(this).removeClass('disabled'); }); }; TaoApplication.prototype._initI18n = function() { - if (I18n && this.locale) { + if (window.I18n && this.locale) { return I18n.locale = this.locale; } }; TaoApplication.prototype._initIcons = function($page) {