Tobias Hintze
555fad5ecd
runtime: make path resolving more windows compatible
2013-02-07 19:17:04 +01:00
Jos van den Oever
b455820c59
Fix handling of passed args argument.
...
args can be false, in which case it is replace by an empty array.
2013-02-04 11:20:45 +01:00
Jos van den Oever
0e84d6acae
Fix runtime.js to properly run all tests.
...
The way arguments are passed was wrongly changed and is now back to the state of a few months back when the code was changed to please Closure Compiler.
Now an explicit cast has been added to fix compilation errors.
2013-02-04 11:20:45 +01:00
Friedrich W. H. Kossebau
3fea5d3158
Make handling of global var "arguments" in runtime.js also work in browsers
2013-01-04 15:23:09 +01:00
Jos van den Oever
bc3e2f9f08
Update to newer Closure Compiler.
2012-12-28 11:59:47 +01:00
Jos van den Oever
95ef3267bb
Throw and exception in the assert.
2012-11-15 10:19:50 +01:00
Tobias Hintze
258d829dbe
implement runtime.log according to declaration also for node+rhino
2012-11-14 14:01:24 +01:00
Tobias Hintze
99d1eaf555
runtime.log implement alert-category; use it in watchdog
2012-11-14 13:36:47 +01:00
Tobias Hintze
e1d35828bd
add try/catch to runtime.getVariable
2012-11-09 12:30:26 +01:00
Tobias Hintze
b4e254138a
move toJson,fromJson to runtime; fix some closure issues.
2012-11-09 12:13:12 +01:00
Tobias Hintze
e2e2376b7b
runtime.js fix closure-compiler complaints
2012-11-09 12:08:49 +01:00
Tobias Hintze
caf5bc528a
handle network availability over runtime.js
...
* only use NowjsOperationRouter if network is available
(probably needs a cleanup later)
2012-11-09 12:07:37 +01:00
Tobias Hintze
a4e6432d5e
implement runtime.assert
2012-11-09 11:27:26 +01:00
Tobias Hintze
638290f70d
lib/runtime.js: make nodejs runtime.readFileSync comply its own spec
...
(when encoding is set to "binary", ByteArray/Buffer should be returned)
2012-10-27 22:56:26 +02:00
Tobias Hintze
375457d233
update license and copyright headers
2012-10-21 20:46:20 +02:00
Friedrich W. H. Kossebau
de1a79c36f
Update all "@source:" links to gitorious.org/webodf/webodf
2012-10-12 19:09:09 +02:00
Jos van den Oever
395f9c99b8
Update to new NodeJS and Closure compiler.
2012-10-03 13:12:20 +02:00
Tobias Hintze
d2c21788b5
workaround recent JSLint pain (typeof foo !== "undefined")
2012-09-17 16:52:26 +02:00
Jos van den Oever
130e76746d
Fix path check.
2012-09-17 15:05:52 +02:00
Jos van den Oever
bbaa8e6e99
Fix generation of webodf.css.js.
2012-09-17 14:53:13 +02:00
Jos van den Oever
ed10170ef7
Add abstraction for XML parsing.
2012-08-23 14:50:17 +02:00
Jos van den Oever
80daaac8c4
Take currentDirectory into account in Rhino.
2012-08-21 09:41:24 +02:00
Jos van den Oever
a61024a11e
Take currentDirectory into account in node runtime.
2012-08-21 08:54:25 +02:00
Jos van den Oever
f6efff1424
Fix deleteFile function in Runtime.
2012-08-21 08:47:43 +02:00
Jos van den Oever
c2d020442b
Give the Node.JS runtime the ability to read xml files.
...
The module xmldom is used to add this functionality.
https://github.com/jindw/xmldom
2012-08-03 19:30:48 +02:00
Jos van den Oever
c231223ad8
Update to newer versions of Node, Closure and JSLint
...
Closure Compiler now catches a few more insecure parts in the code. The better checks are better checking for nullness of a parameter and better checking of function signatures on overloaded functions.
The found problems have been fixed.
2012-07-15 12:44:26 +02:00
Jos van den Oever
08aa2f8f58
Update JSLint.
2012-04-25 19:24:49 +02:00
Jos van den Oever
87fcc99fba
Add a ui based on sencha touch 2.0.
2012-02-17 11:16:26 +01:00
Jos van den Oever
c5d191a4a8
Better error message when a class cannot be loaded.
2011-11-30 09:43:54 +01:00
Jos van den Oever
4356f16938
Fixes for IE9.
2011-11-22 15:39:43 +01:00
Jos van den Oever
ffb57232c2
Add workarounds for Firefox extension submission.
...
Firefox extensions are submitted to static code analysis. In this analysis, some features are flagged and some are fixed by this commit:
- eval() is not allowed. it is replaced by evil(). Only dead code refers to it.
- the variable 'windows' is renamed to 'mywindow'.
- setTimeout calls a literal function instead of a function variable.
2011-10-21 11:21:56 +02:00
Jos van den Oever
f7f23ac9a5
Simplify dynamic creation of package objects.
2011-10-03 11:19:33 +02:00
Jos van den Oever
4c3f535093
Use manifest.js files to speed up loading.
...
The manifest.js file lists for each directory in the path, the available js files. This avoids looking for files in places where they are not.
2011-09-30 16:23:35 +02:00
Jos van den Oever
cd4f75c624
Use "use strict" to have more sanity checks.
2011-09-30 12:23:09 +02:00
Jos van den Oever
054f8e1517
Add all JSLint configuration options.
...
This makes it easier to know what has been defined.
2011-09-29 14:37:02 +02:00
Jos van den Oever
1a82610f9f
Update to a new JSLint
...
and fix all the new errors it finds.
2011-09-29 13:57:04 +02:00
Jos van den Oever
9cf1318458
Simplify Qt based executables.
...
Zip implementation is no longer in C++ but in JavaScript. Runtime customization is now shared between the two Qt executables.
2011-07-26 13:23:46 +02:00
Jos van den Oever
a97612ce83
Upgrade to new version of JSLint.
...
And update code to meet better checks.
2011-07-13 10:21:31 +02:00
Jos van den Oever
75a4317ae7
Make error messages more verbose.
2011-06-10 09:59:53 +02:00
Jos van den Oever
6e20bc3848
Adapt nativeQtClient to use webodf.js.
2011-06-07 22:24:51 +02:00
Jos van den Oever
13c077b970
Add licenses and copyright statements to all javascript files.
2011-06-06 12:30:35 +02:00
Jos van den Oever
f19b1110e7
Fix closure compiler errors.
2011-06-02 00:32:03 +02:00
Jos van den Oever
7e2af1539b
More fixes for IE9
...
Improvements for reading binary data via Internet Explorer 9.
2011-06-01 23:40:27 +02:00
Jos van den Oever
6213b58ac7
Work towards support for Internet Explorer 9.
...
This may end when we come across an insurmountable problem like we did with IE8.
2011-06-01 20:17:27 +02:00
Jos van den Oever
8a8c70a1cb
Compile fixes for new stricter Closure Compiler version.
2011-04-20 11:55:41 +02:00
Jos van den Oever
8f0b6f563f
Fix conversion to utf8 array. The last part was left out of the converted array, because the native array did not autoexpand when access with an index outside of the range.
...
Now required length is calculated first.
2011-03-23 11:54:25 +01:00
Jos van den Oever
9fd8c6ba44
Fix Runtime so it can use native arrays in Firefox 4 and still send binary data.
2011-03-22 19:26:35 +01:00
Jos van den Oever
a0c0937ee9
Remove erroneous "new".
2011-03-22 17:33:34 +01:00
Jos van den Oever
8ade963731
Fix implementation to signature for loadXML.
2011-03-16 23:34:32 +01:00
Jos van den Oever
4331dff7a0
Send binary data via an ArrayBuffer if that is available.
...
ArrayBuffer is part of http://www.khronos.org/registry/typedarray/specs/latest/ and http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ .
This works in Chromium 10.
2011-03-01 00:28:47 +01:00