Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 4bcb6be

Browse files
author
Scott J. Miles
committed
remove support for overloading Polymer: not worth the complexity, and no longer required for modules
1 parent 408ba18 commit 4bcb6be

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/declaration/polymer.js

+3-10
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
// specify an 'own' prototype for tag `name`
1616
function element(name, prototype) {
17-
//console.log('registering prototype [' + name + ']');
1817
if (getRegisteredPrototype[name]) {
1918
throw 'Already registered (Polymer) prototype for element ' + name;
2019
}
@@ -68,18 +67,12 @@
6867
// function
6968

7069
// 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;
8072

8173
// TODO(sjmiles): find a way to do this that is less terrible
8274
// copy window.Polymer properties onto `element()`
75+
8376
extend(Polymer, scope);
8477

8578
// Under the HTMLImports polyfill, scripts in the main document

src/declaration/prototype.js

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
buildPrototype: function(name, extendeeName) {
2828
// get our custom prototype (before chaining)
2929
var extension = scope.getRegisteredPrototype(name);
30-
if (typeof extension === 'function') {
31-
extension = withDependencies(extension, extension.dependencies);
32-
}
3330
// get basal prototype
3431
var base = this.generateBasePrototype(extendeeName);
3532
// implement declarative features

0 commit comments

Comments
 (0)