39 Commits

Author SHA1 Message Date
355fddea91 The webinspector debugger now does not requre http-request 2016-03-11 11:31:59 +02:00
ce5b195aba Add the global __params helper. Used by decorated constructor parameters. 2016-03-01 11:36:32 +02:00
6273bb8d2f FrameClass implemented as TypeScript class
NativeActivity is now NativeScriptActivity and is real class
Added NativeScriptApplication class
Added JavaProxy attribute to FrameClass, NativeScriptActivity & NativeScriptApplication
2016-02-29 09:58:05 +02:00
4be31e2b04 Add global __metadata function
When `emitDecoratorMetadata` compiler option is set to true in `tsconfig.json`, TypeScript generates some calls to `__metadata` function.
By default in our NativeScript TypeScript projects the `noEmitHelpers` option is set to true, so TypeScript compiler does not generate the `__metadata` function.
So the application crashes at runtime. Add the missing method, so we can have both `noEmitHelpers` and `emitDecoratorMetadata` set to true in `tsconfig.json`.
2016-02-18 09:39:41 +02:00
ef7394f80f Experimental decorator added 2016-02-15 15:48:54 +02:00
f5eb34466e Some snapshot-specific fixes/improvements. 2016-01-22 11:20:54 +02:00
fbc612610f Snapshot refactorings, which mainly wraps Android extends within inner functions so that they are evaluated at runtime, when needed. Also some refactoring preventing circular requires. 2016-01-20 10:22:08 +02:00
589c533ad0 Updated __decorate method 2016-01-12 16:22:03 +02:00
18c75d2ba1 Fix zone.js patches by avoiding multiple global moduleMerge's.
The previous implementation was calling moduleMerge multiple times for a
required module if it had more than one configured global lazy-loaded
functions/properties. We now keep tracked of merged modules and merge only
the first time.
2015-12-22 15:01:45 +02:00
648e4d216d Add utils/module-loader - a mechanism to resolve modules at runtime.
Exposes a module registration API, that webpack users can use to bundle
"dynamic" modules that are required through some variable.

Falls back to the require API if no module is registered.

Reworked dynamic `require` code to use module-loader:

- navigation: ui/frame.
- XML UI build ui/builder/builder and ui/builder/component-builder.
- module on-demand loads in global functions: globals.
2015-12-14 14:41:16 +02:00
633c3debab lazy loading code refactored 2015-12-12 16:00:33 +02:00
5f0e3fdc58 dialogs and timer lazy require 2015-12-09 11:47:33 +02:00
850f9d76bc timer and dialogs modules will be loaded lazy 2015-12-08 15:01:00 +02:00
070b01c544 Remove UTF-8 BOM's from package.json files 2015-12-01 15:37:14 +02:00
77838ae9c6 Change from "classic" TS 1.6 imports to the default resolution scheme.
- Use relative imports in place of most of our absolute ones.
- Add "private" ambient modules for modules that we need to import using
an absolute path (e.g. when app/.../test-something.ts needs to import
ui/styling/style-scope)
2015-09-29 16:25:49 +03:00
e0f6a0d3c6 console.dump implemented for ios 2015-09-24 14:55:55 +03:00
23a8c6aba1 Fix tslint errors 2015-07-29 16:42:09 +03:00
a824a38dff Add the __decorate function
Removing __extends function generation by setting the
noEmitHelpers flag we removed the __decorate as well.
While the __extends exists in the runtimes, __decorate
is an EcmaScript-related functionality, hence its place
is in the modules.
2015-07-29 15:49:26 +03:00
973fbb9ea9 Fetch tests fixed 2015-07-28 09:32:25 +03:00
4589bc6565 Make moduleMerge the first function (other requires use it). 2015-07-27 19:40:07 +03:00
1439313e7b Make moduleMerge a global function - this saves a total of 83 requires upon application loading. 2015-07-27 13:04:48 +03:00
78781b971d fetch exposed in global context 2015-07-20 15:51:43 +03:00
e2f464e1d2 FormData support added 2015-07-20 14:42:29 +03:00
d3c987f827 XMLHttpRequest separated from http module 2015-07-20 10:58:29 +03:00
078434460d code fixed 2015-07-07 11:34:32 +03:00
a5aebe3344 Decorators added and Deprecated decorator implemented 2015-07-07 11:32:32 +03:00
cc829e0152 definitions fixed 2015-03-03 10:34:40 +02:00
9dd3ba70c5 Added "External Ambient Module Declarations" for most modules.
Now they are required by module name e.g require("file-system") instead of by file name.
2014-05-21 12:23:19 +03:00
599bc7c10e timer tests and snippets added 2014-05-16 16:16:29 +03:00
ed7ea974bf Added the waitUntilReady in TKUnit. Updated the location_tests to use the new functionality. 2014-05-14 14:20:16 +03:00
ceff7bb368 renamed folders with lower cases and renamed user preferences to local settings 2014-05-13 17:59:30 +03:00
d1652ad831 readme updated 2014-05-12 14:25:03 +03:00
c9ca0d997b console moved from application to globals 2014-05-12 14:21:15 +03:00
db1681a88e timer moved in separate module 2014-05-10 16:34:23 +03:00
fbdb0e5523 clearTimeout, setInterval, clearInterval for iOS 2014-05-10 16:23:27 +03:00
c3abc01b65 readme updated 2014-05-10 15:51:32 +03:00
e493711328 setTimeout improved and clearTimeout, setInterval, clearInterval implemented for Android 2014-05-10 15:49:15 +03:00
d270ee82a0 readme updated 2014-05-10 13:19:04 +03:00
2d701fb5a4 globals module added with setTimeout implementation for both iOS and Android 2014-05-10 13:15:50 +03:00