Commit f8a736d0 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'remove-imports-loader-window-bind' into 'master'

Remove window-binding hack with imports-loader

See merge request !9123
parents 19ff8177 c74b7eb2
...@@ -61,4 +61,4 @@ ...@@ -61,4 +61,4 @@
return Admin; return Admin;
})(); })();
}).call(this); }).call(window);
...@@ -147,4 +147,4 @@ ...@@ -147,4 +147,4 @@
}; };
window.Api = Api; window.Api = Api;
}).call(this); }).call(window);
...@@ -243,4 +243,4 @@ require('es6-promise').polyfill(); ...@@ -243,4 +243,4 @@ require('es6-promise').polyfill();
gl.utils.initTimeagoTimeout(); gl.utils.initTimeagoTimeout();
}); });
}).call(this); }).call(window);
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
return Aside; return Aside;
})(); })();
}).call(this); }).call(window);
...@@ -59,4 +59,4 @@ ...@@ -59,4 +59,4 @@
return Autosave; return Autosave;
})(); })();
}).call(this); }).call(window);
...@@ -377,4 +377,4 @@ var emojiAliases = require('emoji-aliases'); ...@@ -377,4 +377,4 @@ var emojiAliases = require('emoji-aliases');
return AwardsHandler; return AwardsHandler;
})(); })();
}).call(this); }).call(window);
...@@ -25,4 +25,4 @@ var autosize = require('vendor/autosize'); ...@@ -25,4 +25,4 @@ var autosize = require('vendor/autosize');
autosize.update($fields); autosize.update($fields);
return $fields.css('resize', 'vertical'); return $fields.css('resize', 'vertical');
}); });
}).call(this); }).call(window);
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
return e.preventDefault(); return e.preventDefault();
}); });
}); });
}).call(this); }).call(window);
...@@ -74,4 +74,4 @@ require('../extensions/jquery'); ...@@ -74,4 +74,4 @@ require('../extensions/jquery');
return $this.tooltip('hide'); return $this.tooltip('hide');
}); });
}); });
}).call(this); }).call(window);
...@@ -59,4 +59,4 @@ require('../extensions/jquery'); ...@@ -59,4 +59,4 @@ require('../extensions/jquery');
return hideOrShowHelpBlock($form); return hideOrShowHelpBlock($form);
}); });
}); });
}).call(this); }).call(window);
...@@ -63,4 +63,4 @@ ...@@ -63,4 +63,4 @@
return BlobFileDropzone; return BlobFileDropzone;
})(); })();
}).call(this); }).call(window);
...@@ -20,4 +20,4 @@ require('./template_selector'); ...@@ -20,4 +20,4 @@ require('./template_selector');
return BlobGitignoreSelector; return BlobGitignoreSelector;
})(gl.TemplateSelector); })(gl.TemplateSelector);
}).call(this); }).call(window);
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
return BlobGitignoreSelectors; return BlobGitignoreSelectors;
})(); })();
}).call(this); }).call(window);
...@@ -25,4 +25,4 @@ require('./template_selector'); ...@@ -25,4 +25,4 @@ require('./template_selector');
return BlobLicenseSelector; return BlobLicenseSelector;
})(gl.TemplateSelector); })(gl.TemplateSelector);
}).call(this); }).call(window);
...@@ -12,4 +12,4 @@ require('./edit_blob'); ...@@ -12,4 +12,4 @@ require('./edit_blob');
var blob = new EditBlob(url, $('.js-edit-blob-form').data('blob-language')); var blob = new EditBlob(url, $('.js-edit-blob-form').data('blob-language'));
new NewCommitForm($('.js-edit-blob-form')); new NewCommitForm($('.js-edit-blob-form'));
}); });
}).call(this); }).call(window);
...@@ -85,4 +85,4 @@ ...@@ -85,4 +85,4 @@
return EditBlob; return EditBlob;
})(); })();
}).call(this); }).call(window);
...@@ -69,4 +69,4 @@ ...@@ -69,4 +69,4 @@
})(this)); })(this));
window.Breakpoints = Breakpoints; window.Breakpoints = Breakpoints;
}).call(this); }).call(window);
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
} }
}); });
}); });
}).call(this); }).call(window);
...@@ -275,4 +275,4 @@ ...@@ -275,4 +275,4 @@
return Build; return Build;
})(); })();
}).call(this); }).call(window);
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
return BuildArtifacts; return BuildArtifacts;
})(); })();
}).call(this); }).call(window);
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
return Commit; return Commit;
})(); })();
}).call(this); }).call(window);
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
return CommitFile; return CommitFile;
})(); })();
}).call(this); }).call(window);
...@@ -173,4 +173,4 @@ ...@@ -173,4 +173,4 @@
return ImageFile; return ImageFile;
})(); })();
}).call(this); }).call(window);
...@@ -65,4 +65,4 @@ ...@@ -65,4 +65,4 @@
return CommitsList; return CommitsList;
})(); })();
}).call(this); }).call(window);
...@@ -88,4 +88,4 @@ ...@@ -88,4 +88,4 @@
return Compare; return Compare;
})(); })();
}).call(this); }).call(window);
...@@ -66,4 +66,4 @@ ...@@ -66,4 +66,4 @@
return CompareAutocomplete; return CompareAutocomplete;
})(); })();
}).call(this); }).call(window);
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
return ConfirmDangerModal; return ConfirmDangerModal;
})(); })();
}).call(this); }).call(window);
...@@ -46,4 +46,4 @@ window.Clipboard = require('vendor/clipboard'); ...@@ -46,4 +46,4 @@ window.Clipboard = require('vendor/clipboard');
clipboard.on('success', genericSuccess); clipboard.on('success', genericSuccess);
return clipboard.on('error', genericError); return clipboard.on('error', genericError);
}); });
}).call(this); }).call(window);
...@@ -383,4 +383,4 @@ const ShortcutsBlob = require('./shortcuts_blob'); ...@@ -383,4 +383,4 @@ const ShortcutsBlob = require('./shortcuts_blob');
return Dispatcher; return Dispatcher;
})(); })();
}).call(this); }).call(window);
...@@ -216,4 +216,4 @@ require('./preview_markdown'); ...@@ -216,4 +216,4 @@ require('./preview_markdown');
return DropzoneInput; return DropzoneInput;
})(); })();
}).call(this); }).call(window);
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
return $(this).removeAttr('disabled').removeClass('disabled'); return $(this).removeAttr('disabled').removeClass('disabled');
} }
}); });
}).call(this); }).call(window);
...@@ -144,4 +144,4 @@ ...@@ -144,4 +144,4 @@
} }
}); });
}; };
}).call(this); }).call(window);
...@@ -39,4 +39,4 @@ ...@@ -39,4 +39,4 @@
return Flash; return Flash;
})(); })();
}).call(this); }).call(window);
...@@ -380,4 +380,4 @@ ...@@ -380,4 +380,4 @@
(dataToInspect === loadingState || dataToInspect.name === loadingState); (dataToInspect === loadingState || dataToInspect.name === loadingState);
} }
}; };
}).call(this); }).call(window);
...@@ -846,4 +846,4 @@ ...@@ -846,4 +846,4 @@
} }
}); });
}; };
}).call(this); }).call(window);
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
return StatGraph; return StatGraph;
})(); })();
}).call(this); }).call(window);
...@@ -113,4 +113,4 @@ window.d3 = require('d3'); ...@@ -113,4 +113,4 @@ window.d3 = require('d3');
return ContributorsStatGraph; return ContributorsStatGraph;
})(); })();
}).call(this); }).call(window);
...@@ -273,4 +273,4 @@ window.d3 = require('d3'); ...@@ -273,4 +273,4 @@ window.d3 = require('d3');
return ContributorsAuthorGraph; return ContributorsAuthorGraph;
})(ContributorsGraph); })(ContributorsGraph);
}).call(this); }).call(window);
...@@ -135,4 +135,4 @@ ...@@ -135,4 +135,4 @@
} }
} }
}; };
}).call(this); }).call(window);
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
return GroupAvatar; return GroupAvatar;
})(); })();
}).call(this); }).call(window);
...@@ -68,4 +68,4 @@ ...@@ -68,4 +68,4 @@
return GroupsSelect; return GroupsSelect;
})(); })();
}).call(this); }).call(window);
...@@ -78,4 +78,4 @@ ...@@ -78,4 +78,4 @@
new window.ImporterStatus(jobsImportPath, importPath); new window.ImporterStatus(jobsImportPath, importPath);
} }
}); });
}).call(this); }).call(window);
...@@ -76,4 +76,4 @@ ...@@ -76,4 +76,4 @@
return IssuableContext; return IssuableContext;
})(); })();
}).call(this); }).call(window);
...@@ -156,4 +156,4 @@ ...@@ -156,4 +156,4 @@
return IssuableForm; return IssuableForm;
})(); })();
}).call(this); }).call(window);
...@@ -132,4 +132,4 @@ require('./task_list'); ...@@ -132,4 +132,4 @@ require('./task_list');
return Issue; return Issue;
})(); })();
}).call(this); }).call(window);
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
return IssueStatusSelect; return IssueStatusSelect;
})(); })();
}).call(this); }).call(window);
...@@ -43,4 +43,4 @@ ...@@ -43,4 +43,4 @@
return Labels; return Labels;
})(); })();
}).call(this); }).call(window);
...@@ -504,4 +504,4 @@ ...@@ -504,4 +504,4 @@
return LabelsSelect; return LabelsSelect;
})(); })();
}).call(this); }).call(window);
...@@ -44,4 +44,4 @@ ...@@ -44,4 +44,4 @@
} }
}); });
}); });
}).call(this); }).call(window);
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
(function() { (function() {
}).call(this); }).call(window);
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
(function() { (function() {
}).call(this); }).call(window);
...@@ -46,4 +46,4 @@ ...@@ -46,4 +46,4 @@
return dfd.promise(); return dfd.promise();
}; };
})(window); })(window);
}).call(this); }).call(window);
...@@ -297,4 +297,4 @@ ...@@ -297,4 +297,4 @@
*/ */
w.gl.utils.convertPermissionToBoolean = permission => permission === 'true'; w.gl.utils.convertPermissionToBoolean = permission => permission === 'true';
})(window); })(window);
}).call(this); }).call(window);
...@@ -123,4 +123,4 @@ window.dateFormat = require('vendor/date.format'); ...@@ -123,4 +123,4 @@ window.dateFormat = require('vendor/date.format');
return Math.floor((date2 - date1) / millisecondsPerDay); return Math.floor((date2 - date1) / millisecondsPerDay);
}; };
})(window); })(window);
}).call(this); }).call(window);
...@@ -44,4 +44,4 @@ ...@@ -44,4 +44,4 @@
w.notify = notifyMe; w.notify = notifyMe;
return w.notifyPermissions = notifyPermissions; return w.notifyPermissions = notifyPermissions;
})(window); })(window);
}).call(this); }).call(window);
...@@ -176,4 +176,4 @@ require('vendor/latinise'); ...@@ -176,4 +176,4 @@ require('vendor/latinise');
return str.trim().toLowerCase().latinise(); return str.trim().toLowerCase().latinise();
}; };
})(window); })(window);
}).call(this); }).call(window);
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
return (obj != null) && (obj.constructor === Object); return (obj != null) && (obj.constructor === Object);
}; };
})(window); })(window);
}).call(this); }).call(window);
...@@ -83,4 +83,4 @@ ...@@ -83,4 +83,4 @@
document.location.href = url; document.location.href = url;
}; };
})(window); })(window);
}).call(this); }).call(window);
...@@ -179,4 +179,4 @@ require('vendor/jquery.scrollTo'); ...@@ -179,4 +179,4 @@ require('vendor/jquery.scrollTo');
return LineHighlighter; return LineHighlighter;
})(); })();
}).call(this); }).call(window);
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
window.addEventListener('beforeunload', function() { window.addEventListener('beforeunload', function() {
$('.tanuki-logo').addClass('animate'); $('.tanuki-logo').addClass('animate');
}); });
}).call(this); }).call(window);
...@@ -49,4 +49,4 @@ ...@@ -49,4 +49,4 @@
inputs.each(toggleClearInput); inputs.each(toggleClearInput);
}; };
}).call(this); }).call(window);
...@@ -108,4 +108,4 @@ require('./merge_request_tabs'); ...@@ -108,4 +108,4 @@ require('./merge_request_tabs');
return MergeRequest; return MergeRequest;
})(); })();
}).call(this); }).call(window);
...@@ -42,4 +42,4 @@ ...@@ -42,4 +42,4 @@
return MergedButtons; return MergedButtons;
})(); })();
}).call(this); }).call(window);
...@@ -172,4 +172,4 @@ ...@@ -172,4 +172,4 @@
return Milestone; return Milestone;
})(); })();
}).call(this); }).call(window);
...@@ -199,4 +199,4 @@ ...@@ -199,4 +199,4 @@
return MilestoneSelect; return MilestoneSelect;
})(); })();
}).call(this); }).call(window);
...@@ -83,4 +83,4 @@ ...@@ -83,4 +83,4 @@
return NamespaceSelects; return NamespaceSelects;
})(); })();
}).call(this); }).call(window);
...@@ -421,4 +421,4 @@ ...@@ -421,4 +421,4 @@
y: h y: h
}); });
}; };
}).call(this); }).call(window);
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
return Network; return Network;
})(); })();
}).call(this); }).call(window);
...@@ -19,4 +19,4 @@ requireAll(require.context('.', false, /^\.\/(?!network_bundle).*\.(js|es6)$/)); ...@@ -19,4 +19,4 @@ requireAll(require.context('.', false, /^\.\/(?!network_bundle).*\.(js|es6)$/));
}); });
return new ShortcutsNetwork(network_graph.branch_graph); return new ShortcutsNetwork(network_graph.branch_graph);
}); });
}).call(this); }).call(window);
...@@ -100,4 +100,4 @@ ...@@ -100,4 +100,4 @@
return NewBranchForm; return NewBranchForm;
})(); })();
}).call(this); }).call(window);
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,4 @@
return NewCommitForm; return NewCommitForm;
})(); })();
}).call(this); }).call(window);
...@@ -937,4 +937,4 @@ require('./task_list'); ...@@ -937,4 +937,4 @@ require('./task_list');
return Notes; return Notes;
})(); })();
}).call(this); }).call(window);
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
return NotificationsDropdown; return NotificationsDropdown;
})(); })();
}).call(this); }).call(window);
...@@ -54,4 +54,4 @@ ...@@ -54,4 +54,4 @@
return NotificationsForm; return NotificationsForm;
})(); })();
}).call(this); }).call(window);
...@@ -126,4 +126,4 @@ ...@@ -126,4 +126,4 @@
return Project; return Project;
})(); })();
}).call(this); }).call(window);
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
return ProjectAvatar; return ProjectAvatar;
})(); })();
}).call(this); }).call(window);
...@@ -168,4 +168,4 @@ ...@@ -168,4 +168,4 @@
return ProjectFindFile; return ProjectFindFile;
})(); })();
}).call(this); }).call(window);
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
return ProjectFork; return ProjectFork;
})(); })();
}).call(this); }).call(window);
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
return ProjectImport; return ProjectImport;
})(); })();
}).call(this); }).call(window);
...@@ -101,4 +101,4 @@ ...@@ -101,4 +101,4 @@
return ProjectNew; return ProjectNew;
})(); })();
}).call(this); }).call(window);
...@@ -101,4 +101,4 @@ ...@@ -101,4 +101,4 @@
return ProjectSelect; return ProjectSelect;
})(); })();
}).call(this); }).call(window);
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
return ProjectShow; return ProjectShow;
})(); })();
}).call(this); }).call(window);
// I kept class for future // I kept class for future
...@@ -47,4 +47,4 @@ ...@@ -47,4 +47,4 @@
}); });
} }
}; };
}).call(this); }).call(window);
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
$(document).on('ready load', function() { $(document).on('ready load', function() {
return $('body').renderGFM(); return $('body').renderGFM();
}); });
}).call(this); }).call(window);
...@@ -51,4 +51,4 @@ ...@@ -51,4 +51,4 @@
}); });
} }
}; };
}).call(this); }).call(window);
...@@ -217,4 +217,4 @@ ...@@ -217,4 +217,4 @@
return Sidebar; return Sidebar;
})(); })();
}).call(this); }).call(window);
...@@ -97,4 +97,4 @@ ...@@ -97,4 +97,4 @@
return Search; return Search;
})(); })();
}).call(this); }).call(window);
...@@ -97,4 +97,4 @@ ...@@ -97,4 +97,4 @@
} }
}; };
})(); })();
}).call(this); }).call(window);
...@@ -37,4 +37,4 @@ require('./shortcuts'); ...@@ -37,4 +37,4 @@ require('./shortcuts');
return ShortcutsDashboardNavigation; return ShortcutsDashboardNavigation;
})(Shortcuts); })(Shortcuts);
}).call(this); }).call(window);
...@@ -35,4 +35,4 @@ require('./shortcuts_navigation'); ...@@ -35,4 +35,4 @@ require('./shortcuts_navigation');
return ShortcutsFindFile; return ShortcutsFindFile;
})(ShortcutsNavigation); })(ShortcutsNavigation);
}).call(this); }).call(window);
...@@ -89,4 +89,4 @@ require('./shortcuts_navigation'); ...@@ -89,4 +89,4 @@ require('./shortcuts_navigation');
return ShortcutsIssuable; return ShortcutsIssuable;
})(ShortcutsNavigation); })(ShortcutsNavigation);
}).call(this); }).call(window);
...@@ -65,4 +65,4 @@ require('./shortcuts'); ...@@ -65,4 +65,4 @@ require('./shortcuts');
return ShortcutsNavigation; return ShortcutsNavigation;
})(Shortcuts); })(Shortcuts);
}).call(this); }).call(window);
...@@ -25,4 +25,4 @@ require('./shortcuts_navigation'); ...@@ -25,4 +25,4 @@ require('./shortcuts_navigation');
return ShortcutsNetwork; return ShortcutsNetwork;
})(ShortcutsNavigation); })(ShortcutsNavigation);
}).call(this); }).call(window);
...@@ -95,4 +95,4 @@ ...@@ -95,4 +95,4 @@
} }
}); });
}; };
}).call(this); }).call(window);
...@@ -13,4 +13,4 @@ requireAll(require.context('.', false, /^\.\/(?!snippet_bundle).*\.(js|es6)$/)); ...@@ -13,4 +13,4 @@ requireAll(require.context('.', false, /^\.\/(?!snippet_bundle).*\.(js|es6)$/));
$(".snippet-file-content").val(editor.getValue()); $(".snippet-file-content").val(editor.getValue());
}); });
}); });
}).call(this); }).call(window);
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
return Star; return Star;
})(); })();
}).call(this); }).call(window);
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
return SubscriptionSelect; return SubscriptionSelect;
})(); })();
}).call(this); }).call(window);
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
} }
} }
}; };
}).call(this); }).call(window);
...@@ -65,4 +65,4 @@ ...@@ -65,4 +65,4 @@
return TreeView; return TreeView;
})(); })();
}).call(this); }).call(window);
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
return U2FError; return U2FError;
})(); })();
}).call(this); }).call(window);
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment