Permalink
Browse files

support document.webkitRegister native impl

  • Loading branch information...
sjmiles committed May 8, 2013
1 parent 90ab73f commit 5cb7a971135162d40fd078a9fafdc9bd2c0eb91e
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/CustomElements.js
View
@@ -22,15 +22,17 @@ if (!scope) {
// native document.register?
-scope.hasNative = document.register && scope.flags.register === 'native';
+scope.hasNative = (document.webkitRegister || document.register) && scope.flags.register === 'native';
if (scope.hasNative) {
- // exports
+ // normalize
+ document.register = document.register || document.webkitRegister;
+
var nop = function() {};
- document.upgradeElement = nop;
- document.upgradeElements = nop;
- document.watchDOM = nop;
- scope.bootInsertions = nop;
+
+ // exports
+ scope.registry = {};
+ scope.upgradeElement = nop;
} else {

0 comments on commit 5cb7a97

Please sign in to comment.