Files
gerrit/polygerrit-ui/app/elements/plugins/gr-endpoint-param/gr-endpoint-param.js
Viktar Donich 85268ba7e7 Wait for plugin endpoint params to be defined
Wait for all endpoint params to be set (not `undefined`) when attaching
plugin-provided element to the DOM at the plugin extension endpoint.

Practically, this ensures that all endpoint params are set for plugin
modules.

Change-Id: I8b2be9fe76eba27b9976d48867594c492e1b54e5
2017-11-10 15:31:15 -08:00

28 lines
805 B
JavaScript

// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
(function() {
'use strict';
Polymer({
is: 'gr-endpoint-param',
properties: {
name: String,
value: {
type: Object,
notify: true,
},
},
});
})();