From 1b08120053091646cfb5fa3fb9b7bf47672c3a2f Mon Sep 17 00:00:00 2001 From: WuDi Date: Thu, 14 Apr 2016 11:13:03 +0800 Subject: [PATCH] =?UTF-8?q?startNodes=E5=81=B6=E5=8F=91=E8=BF=94=E5=9B=9En?= =?UTF-8?q?ull=EF=BC=8C=E5=AF=BC=E8=87=B4JS=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加默认返回值 --- src/selection.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection.coffee b/src/selection.coffee index 499f7c2b..c224407c 100644 --- a/src/selection.coffee +++ b/src/selection.coffee @@ -66,7 +66,7 @@ class Selection extends SimpleModule startNodes.unshift @_range.startContainer $(startNodes) - @_startNodes + @_startNodes || [] endNodes: -> if @_range