Evan You 8 лет назад
Родитель
Сommit
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