Преглед на файлове

fix elastic header example in IE

Evan You преди 10 години
родител
ревизия
ad78e603d9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      examples/elastic-header/index.html

+ 2 - 2
examples/elastic-header/index.html

@@ -8,7 +8,7 @@
     <script src="http://dynamicsjs.com/lib/dynamics.js"></script>
     <link rel="stylesheet" href="style.css">
     <!-- template for the component -->
-    <template id="header-view-template" style="display:none">
+    <script type="x/template" id="header-view-template">
       <div class="draggable-header-view"
         @mousedown="startDrag" @touchstart="startDrag"
         @mousemove="onDrag" @touchmove="onDrag"
@@ -23,7 +23,7 @@
           <slot name="content"></slot>
         </div>
       </div>
-    </template>
+    </script>
   </head>
   <body @touchmove.prevent>