소스 검색

Plugin-correct use of 'this'

Herbert Vojčík 12 년 전
부모
커밋
7baa69aa86
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      jquery.xontent.js

+ 2 - 2
jquery.xontent.js

@@ -12,11 +12,11 @@
                 arg = arg.get(0);
             }
             if (arg instanceof DocumentFragment) {
-                $(this).data('xontent', arg);
+                this.data('xontent', arg);
             }
         }
 
-        return $(this);
+        return this;
     };
 
     function xontent(el) {