Sha256: ea5fd340a7a8f7916d8de9632d2694227b5a215ef7425d21409ff1bfc5b4567b
Contents?: true
Size: 1.43 KB
Versions: 23
Compression:
Stored size: 1.43 KB
Contents
I"°(function() { var Wiselinks; Wiselinks = (function() { function Wiselinks($target, options) { if ($target == null) { $target = $('body'); } this.options = options != null ? options : {}; this._try_jquery(); this.options = $.extend(this._defaults(), this.options); if (this.enabled()) { if (this.options.disable_suid) { History.options.disableSuid = true; } this.page = new _Wiselinks.Page($target, this.options); } } Wiselinks.prototype.enabled = function() { return !History.emulated.pushState || this.options.html4 === true; }; Wiselinks.prototype.load = function(url, target, render) { if (render == null) { render = 'template'; } return this.page.load(url, target, render); }; Wiselinks.prototype.reload = function() { return this.page.reload(); }; Wiselinks.prototype._defaults = function() { return { disable_suid: true, html4: true, html4_root_path: '/', html4_normalize_path: true, target_missing: null, assets_digest: $("meta[name='assets-digest']").attr("content") }; }; Wiselinks.prototype._try_jquery = function() { if (window.jQuery == null) { throw new Error("[Wiselinks] jQuery is not loaded"); } }; return Wiselinks; })(); window.Wiselinks = Wiselinks; }).call(this); :ET
Version data entries
23 entries across 23 versions & 1 rubygems