Skip to content

Commit

Permalink
remove extraneous polymer fn's
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Jun 30, 2018
1 parent 5aeea65 commit f837cb6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 22 deletions.
3 changes: 1 addition & 2 deletions app-media-audio.js
Expand Up @@ -8,9 +8,8 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/polymer/polymer-legacy.js';
import {Polymer} from '@polymer/polymer/polymer-legacy.js';

import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
/**
`app-media-audio` is an element that converts an audio source to an audio
analyser suitable for generating audio visualizations such as the ones made by
Expand Down
4 changes: 1 addition & 3 deletions app-media-devices.js
Expand Up @@ -8,9 +8,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/polymer/polymer-legacy.js';

import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {Polymer} from '@polymer/polymer/polymer-legacy.js';
/**
`app-media-devices` is an element that enumerates the connected input devices
and optionally filters them, allowing the user to cycle through categories of
Expand Down
3 changes: 1 addition & 2 deletions app-media-image-capture.js
Expand Up @@ -8,8 +8,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {Base} from '@polymer/polymer/polymer-legacy.js';
import {Base, Polymer} from '@polymer/polymer/polymer-legacy.js';

import {AppMedia as AppMedia$0} from './app-media-recorder.js';

Expand Down
7 changes: 3 additions & 4 deletions app-media-recorder.js
Expand Up @@ -8,16 +8,15 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import {Polymer as Polymer$0} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {Base} from '@polymer/polymer/polymer-legacy.js';
import {Base, Polymer} from '@polymer/polymer/polymer-legacy.js';

var mediaRecorderSupported = true;
if (window.MediaRecorder == null) {
Base._warn('Media Recorder API is not supported in this browser!');
mediaRecorderSupported = false;
}

export const AppMedia = Polymer$0.AppMedia || {};
export const AppMedia = Polymer.AppMedia || {};

/** @see https://www.w3.org/TR/mediastream-recording/#enumdef-recordingstate */
AppMedia.RecordingState = {
Expand Down Expand Up @@ -54,7 +53,7 @@ you consider to be a suitable substitute, load it first and ensure that
@group App Elements
@demo demo/index.html
*/
Polymer$0({
Polymer({
is: 'app-media-recorder',

properties: {
Expand Down
4 changes: 1 addition & 3 deletions app-media-stream.js
Expand Up @@ -8,9 +8,7 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/polymer/polymer-legacy.js';

import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {Polymer} from '@polymer/polymer/polymer-legacy.js';
/**
`app-media-stream` is an element that converts a provided video device and/or
audio device into a media stream.
Expand Down
5 changes: 2 additions & 3 deletions app-media-video.js
Expand Up @@ -8,11 +8,10 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/polymer/polymer-legacy.js';

import {IronResizableBehavior} from '@polymer/iron-resizable-behavior/iron-resizable-behavior.js';
import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';
import {Polymer} from '@polymer/polymer/polymer-legacy.js';

/**
`app-media-video` is an element that converts a video source into a nicely
scaled video that is displayed to the viewer of the page.
Expand Down
5 changes: 2 additions & 3 deletions app-media-waveform.js
Expand Up @@ -8,11 +8,10 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import '@polymer/polymer/polymer-legacy.js';

import {IronResizableBehavior} from '@polymer/iron-resizable-behavior/iron-resizable-behavior.js';
import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';
import {Polymer} from '@polymer/polymer/polymer-legacy.js';

/**
`app-media-waveform` is an element that visualizes the data from an analyser
node, such as one produced by `app-media-audio`.
Expand Down
5 changes: 3 additions & 2 deletions demo/index.html
Expand Up @@ -186,14 +186,15 @@

</template>
<script type="module">
import '@polymer/polymer/polymer-legacy.js';
import '../app-media-devices.js';
import '../app-media-stream.js';
import '../app-media-video.js';
import '../app-media-audio.js';
import '../app-media-waveform.js';
import '../app-media-recorder.js';
import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';

import {Polymer} from '@polymer/polymer/polymer-legacy.js';

var readyToDefine = Promise.all([
ensureMediaDevices,
new Promise(function(resolve) {
Expand Down

0 comments on commit f837cb6

Please sign in to comment.