Explorar el Código

setting (even internal) goes always through 'set' operation

Herbert Vojčík hace 12 años
padre
commit
c841727862
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      jquery.xontent.js

+ 2 - 2
jquery.xontent.js

@@ -30,7 +30,7 @@
         content = el.content;
         if (content instanceof DocumentFragment) {
             // template tag or something that behaves similarly
-            $el.data('xontent', $(content));
+            $el.xontent('set', content);
             return xontent(el);
         }
 
@@ -61,7 +61,7 @@
             child = next;
         }
 
-        $(el).data('xontent', $(fragment));
+        $(el).xontent('set', fragment);
         return xontent(el);
     }