This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 2 files changed +3
-13
lines changed
2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 14
14
15
15
// specify an 'own' prototype for tag `name`
16
16
function element ( name , prototype ) {
17
- //console.log('registering prototype [' + name + ']');
18
17
if ( getRegisteredPrototype [ name ] ) {
19
18
throw 'Already registered (Polymer) prototype for element ' + name ;
20
19
}
68
67
// function
69
68
70
69
// make window.Polymer reference `element()`
71
- //window.Polymer = element;
72
- window . Polymer = function ( a , b , c ) {
73
- if ( arguments . length == 3 ) {
74
- c . dependencies = b ;
75
- element ( a , c )
76
- } else {
77
- element ( a , b ) ;
78
- }
79
- }
70
+
71
+ window . Polymer = element ;
80
72
81
73
// TODO(sjmiles): find a way to do this that is less terrible
82
74
// copy window.Polymer properties onto `element()`
75
+
83
76
extend ( Polymer , scope ) ;
84
77
85
78
// Under the HTMLImports polyfill, scripts in the main document
Original file line number Diff line number Diff line change 27
27
buildPrototype : function ( name , extendeeName ) {
28
28
// get our custom prototype (before chaining)
29
29
var extension = scope . getRegisteredPrototype ( name ) ;
30
- if ( typeof extension === 'function' ) {
31
- extension = withDependencies ( extension , extension . dependencies ) ;
32
- }
33
30
// get basal prototype
34
31
var base = this . generateBasePrototype ( extendeeName ) ;
35
32
// implement declarative features
You can’t perform that action at this time.
0 commit comments