added first cut of the DOM events API (its not all compiling to JS yet though due to Class<T> not being supported)

This commit is contained in:
James Strachan
2012-07-24 11:10:50 +01:00
parent a3cbd37e5f
commit b25c27bfed
10 changed files with 249 additions and 21 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
/**
* JVM specific API implementations using JAXB and so forth which would not be used when compiling to JS
* JVM specific API implementations using JAXP and so forth which would not be used when compiling to JS
*/
package kotlin.dom
@@ -19,6 +19,7 @@ import javax.xml.transform.stream.StreamResult
import org.w3c.dom.*
import org.xml.sax.InputSource
// JavaScript style properties - TODO could auto-generate these
val Node.nodeName: String
get() = getNodeName() ?: ""