Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2487)

Unified Diff: appengine/swarming/elements/res/imp/common/swarming-app.html

Issue 2269643002: Extract shared filters and aliasing code (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Address nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/res/imp/common/swarming-app.html
diff --git a/appengine/swarming/elements/res/imp/common/swarming-app.html b/appengine/swarming/elements/res/imp/common/swarming-app.html
index 6a2fe165a0aaa6196d7abba954bcd76cb61928af..9bb66b18824d74790a4432652f0bad4eb2582fcf 100644
--- a/appengine/swarming/elements/res/imp/common/swarming-app.html
+++ b/appengine/swarming/elements/res/imp/common/swarming-app.html
@@ -18,17 +18,6 @@
<style include="shared-style"> contains styles to be shared among all
apps, such as colors.
- It contains the definition of the following Behaviors:
-
- SwarmingBehaviors.SwarmingBehavior
-
- To use it, include
- behaviors: [SwarmingBehaviors.SwarmingBehavior]
- in the creation of any Polymer element.
-
- SwarmingBehaviors.SwarmingBehavior contains shared functions to ease
- templating, such as _or() and _not().
-
Properties:
auth_headers: Object, Use this in iron-ajax to set oauth2 headers.
busy: Boolean, If the busy spinner should be active.
@@ -45,7 +34,7 @@
<link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="/res/imp/bower_components/paper-spinner/paper-spinner-lite.html">
-<link rel="import" href="/res/imp/common/auth-signin.html">
+<link rel="import" href="auth-signin.html">
<dom-module id="swarming-app">
<template>
@@ -148,25 +137,3 @@
}
</style>
</dom-module>
-
-<script>
- window.SwarmingBehaviors = window.SwarmingBehaviors || {};
- (function(){
- // This behavior wraps up all the shared swarming functionality.
- SwarmingBehaviors.SwarmingBehavior = {
-
- _not: function(a) {
- return !a;
- },
-
- _or: function() {
- var result = false;
- // can't use .foreach, as arguments isn't really an Array.
- for (var i = 0; i < arguments.length; i++) {
- result = result || arguments[i];
- }
- return result;
- },
- };
- })();
-</script>

Powered by Google App Engine
This is Rietveld 408576698