@@ -73,7 +73,7 @@ window.preact = (function(global) {
7373 return x === false || x == null ;
7474 } ;
7575
76- /******************************************** dom ********************************************/
76+ /** ****************************************** dom ******************************************* */
7777
7878 var EMPTY = { } ;
7979
@@ -265,7 +265,7 @@ window.preact = (function(global) {
265265 return node [ ATTR_KEY ] ? node [ ATTR_KEY ] : ( node [ ATTR_KEY ] = getRawNodeAttributes ( node ) ) ;
266266 } ;
267267
268- /******************************************** vnode ********************************************/
268+ /** ****************************************** vnode ******************************************* */
269269
270270 var SYNC_RENDER = {
271271 renderSync : true
@@ -368,7 +368,7 @@ window.preact = (function(global) {
368368 }
369369 }
370370
371- /** 通过vNode来更新节点node的属性. */
371+ /** 通过vNode来更新节点node的属性.*/
372372
373373 function diffAttributes ( dom , vnode ) {
374374 var old = getNodeAttributes ( dom ) || EMPTY ,
@@ -431,7 +431,7 @@ window.preact = (function(global) {
431431 return vnode . nodeName ( getNodeProps ( vnode ) , context || EMPTY ) || EMPTY_BASE ;
432432 }
433433
434- /** DOM节点缓存池,以nodeName.toUpperCase()为键*/
434+ /** DOM节点缓存池,以nodeName.toUpperCase()为键. */
435435
436436 var nodes_cache = { } ;
437437
@@ -466,7 +466,7 @@ window.preact = (function(global) {
466466 return node ;
467467 }
468468
469- /** 组件DOM节点缓存池*/
469+ /** 组件DOM节点缓存池. */
470470
471471 var components_cache = { } ;
472472
@@ -492,7 +492,7 @@ window.preact = (function(global) {
492492 }
493493 }
494494
495- /** 回收所有子节点 */
495+ /** 回收所有子节点. */
496496
497497 function removeOrphanedChildren ( children ) {
498498 var len = children . length ;
@@ -504,7 +504,7 @@ window.preact = (function(global) {
504504 }
505505 }
506506
507- /** 回收节点树 */
507+ /** 回收节点树. */
508508
509509 function recollectNodeTree ( node ) {
510510 var component = getAncestorComponent ( node . _component ) ;
@@ -732,7 +732,7 @@ window.preact = (function(global) {
732732 return component ;
733733 }
734734
735- /* 异步渲染组件.* */
735+ /** 异步渲染组件.*/
736736 var items = [ ] ,
737737 itemsOffline = [ ] ;
738738
@@ -765,7 +765,7 @@ window.preact = (function(global) {
765765 }
766766 }
767767
768- /** 构建组件, 新建或从缓存中获取. */
768+ /** 构建组件, 新建或从缓存中获取.*/
769769
770770 function buildAndRenderComponent ( dom , vnode , context ) {
771771 var component = createComponent ( vnode . nodeName , getNodeProps ( vnode ) , context ) ;
@@ -877,7 +877,7 @@ window.preact = (function(global) {
877877 }
878878 }
879879
880- // 对某个节点进行渲染
880+ /** 对某个节点进行渲染.*/
881881
882882 function render ( merge , vnode , context ) {
883883 while ( isFunctionalComponent ( vnode ) ) {
0 commit comments