Commit Graph

134 Commits

Author SHA1 Message Date
pTalanov 7e07414a75 More lib API tweaks 2012-05-31 20:45:53 +04:00
pTalanov aa656cac7b Remove js.DomElement from standard library 2012-05-31 20:45:52 +04:00
pTalanov 527c4585a3 jquery -> js.jquery 2012-05-31 20:45:50 +04:00
pTalanov a1b0af2cfa Optional parameters in generated lib files 2012-05-31 20:45:49 +04:00
pTalanov cd0bc43624 Adding an early version of js dom library. Fancy lines example passing (others failing) 2012-05-31 20:45:48 +04:00
James Strachan c4439f33f0 avoided JS compile barf in JS generation and fix compile error of Node vals in generated DOM API 2012-05-31 09:26:55 +01:00
James Strachan fe68aeaa78 generate the Node.ELEMENT_NODE fields on the JS DOM API and refactored the kotlin.dom API so that it uses the Node.getNodeType() API rather than using "is" which is troublesome to implement on a browser/JS 2012-05-31 09:08:12 +01:00
James Strachan 782773fca9 fixed compile errors 2012-05-30 11:30:36 +01:00
James Strachan 1a77c36040 got the kotlin/Dom.kt, Preconditions.kt and AbstractIterator.kt compiling as JS; needs more testing of using these APIs from JS though... 2012-05-29 15:02:17 +01:00
James Strachan 35aa899cb1 making progress on porting kotlin/dom to JS; added AbstractList and RuntimeException/UnsupportedOperationException support to the kotlin-lib.js and fixed up a gremlin (Iterator is a trait not a class) 2012-05-29 12:33:34 +01:00
pTalanov 097d03ebe2 Initial dirty and incomplete version of JS DOM API 2012-05-29 14:42:44 +04:00
James Strachan cb980e6f64 added RuntimeException, NoSuchElementException and missing Iterator.remove() function 2012-05-29 08:47:45 +01:00
James Strachan aecb5c72c5 code generate the JS dom.kt file so its got full W3C DOM API compatibility based on the API that ships with the JDK 2012-05-25 21:43:04 +01:00
James Strachan adf38a0648 added a working JS test case using the standard kotlin browser API for interacting with the DOM 2012-05-25 20:38:04 +01:00
Pavel V. Talanov 2bb647bdb8 Some magic to make test work 2012-05-25 14:45:01 +04:00
James Strachan 8d3aeb9e1e made the stub DOM API public just in case 2012-05-25 10:30:13 +01:00
James Strachan ea9267e869 added test case trying to get the document property working on JS - not quite there yet :( 2012-05-25 10:25:54 +01:00
Pavel V. Talanov 3fbbc71dcb API update. 2012-04-02 20:46:02 +04:00
Pavel V. Talanov fc843eca8f Some tweaks in canvas api. 2012-03-30 20:03:07 +04:00
Pavel V. Talanov d378e4bd06 Some hacky API tweaks to conform with new stdlib APIs. 2012-03-30 16:34:53 +04:00
Svetlana Isakova 167a9c444a Added 'public' annotation and specified return types for library functions 2012-03-30 13:38:35 +04:00
Pavel V. Talanov fd19c9fae8 Add safeParseInt and safeParseDouble to standard library. 2012-03-30 13:28:05 +04:00
Pavel V. Talanov 36e242a9e6 Add test for uncovered case. 2012-03-30 13:28:04 +04:00
unknown 55def7f8ff More api hack for some web demo js examples. (by Natasha) 2012-03-28 14:04:49 +04:00
Pavel V. Talanov abcf038157 Add setTimeout() with 2 parameters. 2012-03-22 18:52:26 +04:00
Stepan Koltsov e2cb98df67 better import jet namespace 2012-03-19 23:25:27 +04:00
pTalanov 3ef7805cd6 Native api update. 2012-03-11 22:38:13 +04:00
pTalanov da3251addb Changes to native apis. 2012-03-10 22:26:41 +04:00
pTalanov c812d039b6 Add primitive api for using html5 local storage.
Lib fixes.
2012-03-10 22:23:44 +04:00
pTalanov 6fd6ac0231 Add "add" extension function for Json class. 2012-03-10 17:44:01 +04:00
pTalanov dac63773ce Update API. 2012-03-10 17:32:53 +04:00
James Strachan 2ba6b3b8ba added a module definition for the generation of API docs 2012-03-09 11:42:50 +00:00
pTalanov 57c9de776e Move TestConfig to js.tests module. Remove K2JSTranslationUtils. Remove core.Dummy class. TestConfig references library files using project file structure instead of getResourceAsStream. 2012-02-28 15:18:16 +04:00
pTalanov 953c33a846 Project structure fixed 2012-02-27 19:07:59 +04:00