소스 검색

QuoJS 2.1 Included

@soyjavi 14 년 전
부모
커밋
eb0c06b6ff
3개의 변경된 파일11개의 추가작업 그리고 6개의 파일을 삭제
  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;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 2
src/lib/quo.js