Skip to content

Commit

Permalink
remove extends functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Apr 7, 2016
1 parent 41baf7e commit f2d9a8d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/types/fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,15 @@ export default function fn(ripple) {

var proto = Object.create(HTMLElement.prototype)
, opts = { prototype: proto }
, extend = res.headers['extends']

extend && (opts.extends = extend)
proto.attachedCallback = ripple.draw
document.registerElement(res.name, opts)
}
}

function registered(res) {
var extend = header('extends')(res)

return extend ? document.createElement(extend, res.name).attachedCallback
: document.createElement(res.name).attachedCallback
}
const registered = res => document.createElement(res.name).attachedCallback

import includes from 'utilise/includes'
import header from 'utilise/header'
import client from 'utilise/client'
import all from 'utilise/all'
const customs = client && !!document.registerElement
Expand Down

0 comments on commit f2d9a8d

Please sign in to comment.