Browse Source

Plugin-correct use of 'this'

Herbert Vojčík 10 years ago
parent
commit
7baa69aa86
1 changed files with 2 additions and 2 deletions
  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) {