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

Commit

Permalink
avoid using native implementation by default when document.webkitRegi…
Browse files Browse the repository at this point in the history
…ster is available. This is an outdated native implementation that is no longer spec compliant.
  • Loading branch information
sorvell committed Sep 13, 2013
1 parent 57e4d9c commit c984f7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@ var flags = scope.flags;

// native document.register?

var hasNative = Boolean(document.webkitRegister || document.register);
var hasNative = Boolean(document.register);
var useNative = !flags.register && hasNative;

if (useNative) {

// normalize
document.register = document.register || document.webkitRegister;

// stub
var nop = function() {};

Expand Down

0 comments on commit c984f7f

Please sign in to comment.