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

Version Path
templus_models-1.5.14 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.12 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.11 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.10 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.9 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.8 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.7 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.6 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.5 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.4 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.3 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.2 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.5.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.4.4 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.4.3 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.4.2 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.2.6 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.2.5 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache
templus_models-1.2.4 test/dummy/tmp/cache/assets/development/sprockets/v3.0/Rsy0T5-nfV3-3kFijPuPliExzUyqLNSGBvtVLMZFXeM.cache