Sha256: 06ddf886828da6a41c9ff4598d1452f7dc604816bb89eeda01f7603e4c71dc23

Contents?: true

Size: 1.89 KB

Versions: 8

Compression:

Stored size: 1.89 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI""expandable_tree/hashchange.js;FI"
pathname;TI"t/home/nyitrai/RubymineProjects/jquery_sortable_tree/app/assets/javascripts/expandable_tree/hashchange.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+
ÍSI"length;Ti•I"digest;TI"%7283e9234047915c54b1f4db695edaf1;FI"source;TI"•(function() {
  this._arrays_diff = function(a, b) {
    return b.filter(function(i) {
      return !(a.indexOf(i) > -1);
    });
  };

  this.expandable_tree_hashchange = function(hash_event) {
    var btn, diff_ids, id, new_arr, new_hash, new_url, oEvent, old_arr, old_hash, old_url, _i, _len, _results;
    if (window.skip_expandable_tree_hashchange) {
      window.skip_expandable_tree_hashchange = false;
      return true;
    }
    hash_and_cookie_accordance();
    oEvent = hash_event.originalEvent;
    new_url = oEvent.newURL;
    old_url = oEvent.oldURL;
    new_hash = new_url.split('#')[1];
    old_hash = old_url.split('#')[1];
    if (!(('#' + new_hash).match(TSTconst.re()) || ('#' + old_hash).match(TSTconst.re()))) {
      return false;
    }
    new_arr = _nested_set_hash_arr(new_hash);
    old_arr = _nested_set_hash_arr(old_hash);
    diff_ids = new_arr.length >= old_arr.length ? _arrays_diff(old_arr, new_arr) : _arrays_diff(new_arr, old_arr);
    _results = [];
    for (_i = 0, _len = diff_ids.length; _i < _len; _i++) {
      id = diff_ids[_i];
      btn = $("[data-node-id=" + id + "] > .item .expand");
      btn.click();
      _results.push(setTimeout(function() {
        return window.skip_expandable_tree_hashchange = false;
      }));
    }
    return _results;
  };

  $(window).bind('hashchange', function(hash_event) {
    return expandable_tree_hashchange(hash_event);
  });

}).call(this);
;TI"required_assets_digest;TI"%3e862b6c6aeeed6bbd80caf7bf5b1c12;FI"
_version;TI"%3e3098c8a5e9a7f3b984ba95ac600637;F

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
jquery_sortable_tree-3.1.2 spec/dummy_app/tmp/cache/assets/development/sprockets/bc96c4fb801c05f926e1bc3fa935418b
jquery_sortable_tree-3.1.2 spec/dummy_app/tmp/cache/assets/development/sprockets/e8b94e5699ca066cbff81d9ed6727dbf
jquery_sortable_tree-3.1.1 spec/dummy_app/tmp/cache/assets/development/sprockets/bc96c4fb801c05f926e1bc3fa935418b
jquery_sortable_tree-3.1.1 spec/dummy_app/tmp/cache/assets/development/sprockets/e8b94e5699ca066cbff81d9ed6727dbf
jquery_sortable_tree-3.1.0 spec/dummy_app/tmp/cache/assets/development/sprockets/bc96c4fb801c05f926e1bc3fa935418b
jquery_sortable_tree-3.1.0 spec/dummy_app/tmp/cache/assets/development/sprockets/e8b94e5699ca066cbff81d9ed6727dbf
jquery_sortable_tree-3.0.0 spec/dummy_app/tmp/cache/assets/development/sprockets/bc96c4fb801c05f926e1bc3fa935418b
jquery_sortable_tree-3.0.0 spec/dummy_app/tmp/cache/assets/development/sprockets/e8b94e5699ca066cbff81d9ed6727dbf