소스 검색

chore: coverage

Evan You 8 년 전
부모
커밋
83ea0da4b0
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/platforms/web/runtime/node-ops.js
  2. 2 0
      src/shared/util.js

+ 0 - 4
src/platforms/web/runtime/node-ops.js

@@ -54,10 +54,6 @@ export function setTextContent (node: Node, text: string) {
   node.textContent = text
 }
 
-export function setAttribute (node: Element, key: string, val: string) {
-  node.setAttribute(key, val)
-}
-
 export function setStyleScope (node: Element, scopeId: string) {
   node.setAttribute(scopeId, '')
 }

+ 2 - 0
src/shared/util.js

@@ -180,6 +180,8 @@ export const hyphenate = cached((str: string): string => {
  * code that was able to run in PhantomJS 1.x, so this must be kept for
  * backwards compatibility.
  */
+
+/* istanbul ignore next */
 function polyfillBind (fn: Function, ctx: Object): Function {
   function boundFn (a) {
     const l = arguments.length