summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2017-02-03 18:02:19 +0000
committerJacob Schatz <jschatz@gitlab.com>2017-02-03 18:02:19 +0000
commit538a6875d3b53f909e9b5b6ef396a457cbcae760 (patch)
tree503cf693557a3e9992a7276bc804cfd579658892 /vendor
parent3213dfd797fec7014f7fa38ef110cfb785c297a8 (diff)
parentaa91f508369a795878b3ee95556302cdb55d9f6c (diff)
downloadgitlab-ce-538a6875d3b53f909e9b5b6ef396a457cbcae760.tar.gz
Merge branch '25624-anticipate-obstacles-to-removing-turbolinks' into 'master'
Remove Turbolinks Closes #25624 See merge request !8570
Diffstat (limited to 'vendor')
-rw-r--r--vendor/assets/javascripts/jquery.turbolinks.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/vendor/assets/javascripts/jquery.turbolinks.js b/vendor/assets/javascripts/jquery.turbolinks.js
deleted file mode 100644
index fd6e95e75d5..00000000000
--- a/vendor/assets/javascripts/jquery.turbolinks.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Generated by CoffeeScript 1.7.1
-
-/*
-jQuery.Turbolinks ~ https://github.com/kossnocorp/jquery.turbolinks
-jQuery plugin for drop-in fix binded events problem caused by Turbolinks
-
-The MIT License
-Copyright (c) 2012-2013 Sasha Koss & Rico Sta. Cruz
- */
-
-(function() {
- var $, $document;
-
- $ = window.jQuery || (typeof require === "function" ? require('jquery') : void 0);
-
- $document = $(document);
-
- $.turbo = {
- version: '2.1.0',
- isReady: false,
- use: function(load, fetch) {
- return $document.off('.turbo').on("" + load + ".turbo", this.onLoad).on("" + fetch + ".turbo", this.onFetch);
- },
- addCallback: function(callback) {
- if ($.turbo.isReady) {
- callback($);
- }
- return $document.on('turbo:ready', function() {
- return callback($);
- });
- },
- onLoad: function() {
- $.turbo.isReady = true;
- return $document.trigger('turbo:ready');
- },
- onFetch: function() {
- return $.turbo.isReady = false;
- },
- register: function() {
- $(this.onLoad);
- return $.fn.ready = this.addCallback;
- }
- };
-
- $.turbo.register();
-
- $.turbo.use('page:load', 'page:fetch');
-
-}).call(this);