[Sie-announce] SIEコード [2705] dispatchEventメソッドの例外処理について、記述を簡素化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 5月 26日 (木) 21:41:33 JST


Revision: 2705
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2705
Author:   dhrname
Date:     2011-05-26 21:41:33 +0900 (Thu, 26 May 2011)

Log Message:
-----------
dispatchEventメソッドの例外処理について、記述を簡素化

Modified Paths:
--------------
    branches/07x/078/org/w3c/dom/events.js

Modified: branches/07x/078/org/w3c/dom/events.js
===================================================================
--- branches/07x/078/org/w3c/dom/events.js	2011-05-26 12:38:11 UTC (rev 2704)
+++ branches/07x/078/org/w3c/dom/events.js	2011-05-26 12:41:33 UTC (rev 2705)
@@ -138,7 +138,7 @@
   i = tcli = tce = null;
 };
 /*boolean*/  Node.prototype.dispatchEvent = function( /*Event*/ evt) {
-  if (!evt.type || evt.type === "") { //Eventの型が設定されていないとき
+  if (!evt.type) { //Eventの型が設定されていないとき
     throw new EventException(EventException.UNSPECIFIED_EVENT_TYPE_ERR);
   }
   var te = this,




Sie-announce メーリングリストの案内
Back to archive index