Ver código fonte

QuoJS 2.1 Included

@soyjavi 14 anos atrás
pai
commit
b916f69b13
3 arquivos alterados com 11 adições e 6 exclusões
  1. 1 1
      examples/test/index.html
  2. 8 3
      src/lib/quo.debug.js
  3. 2 2
      src/lib/quo.js

+ 1 - 1
examples/test/index.html

@@ -347,7 +347,7 @@
     </section>
 
     <!-- Third parties dependencies -->
-    <script src="../../src/lib/QuoJS.js"></script>
+    <script src="../../src/lib/quo.debug.js"></script>
     <!-- LungoJS Libraries (Development mode)-->
     <script src="../../src/Lungo.js"></script>
     <script src="../../src/Lungo.App.js" ></script>

+ 8 - 3
src/lib/quo.debug.js

@@ -386,7 +386,7 @@
   })(Quo);
 
 }).call(this);
-// Generated by CoffeeScript 1.3.1
+// Generated by CoffeeScript 1.3.3
 
 /*
   QuoJS 2.1
@@ -411,9 +411,14 @@
     $$.fn.html = function(value) {
       var type;
       type = $$.toType(value);
-      if (type === "string" || type === "number") {
+      if (value) {
         return this.each(function() {
-          return this.innerHTML = value;
+          if (type === "string" || type === "number") {
+            return this.innerHTML = value;
+          } else {
+            this.innerHTML = null;
+            return this.appendChild(value);
+          }
         });
       } else {
         return this[0].innerHTML;

Diferenças do arquivo suprimidas por serem muito extensas
+ 2 - 2
src/lib/quo.js