chore: cleanup

This commit is contained in:
Nathan Walker
2020-07-10 22:07:49 -07:00
parent 96fb2fd687
commit 19994ff349
8 changed files with 11 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@nativescript/core": "file:../../dist/nativescript-core-7.0.0-rc.9.tgz"
"@nativescript/core": "file:../../dist/nativescript-core-7.0.0-rc.11.tgz"
},
"devDependencies": {
"@testdeck/mocha": "0.0.6",

View File

@@ -2,9 +2,7 @@
// Init globals first
import { initGlobal } from './globals';
if (!(<any>global).hasInitGlobal) {
initGlobal();
}
initGlobal();
// Export all interfaces from "application" module
export { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, iOSApplication, AndroidApplication, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData } from './application';

View File

@@ -3,7 +3,7 @@
"main": "index",
"types": "index.d.ts",
"description": "NativeScript Core Modules",
"version": "7.0.0-rc.9",
"version": "7.0.0-rc.11",
"homepage": "https://www.nativescript.org",
"repository": {
"type": "git",
@@ -12,6 +12,7 @@
"files": [
"**/*.d.ts",
"**/*.js",
"**/*.map",
"**/platforms/ios/**",
"**/platforms/android/**",
"**/package.json",

View File

@@ -4,10 +4,10 @@
"noEmitHelpers": true,
"target": "es5",
"module": "commonjs",
"declaration": false,
"declaration": true,
"noImplicitAny": false,
"noImplicitUseStrict": true,
"removeComments": true,
"removeComments": false,
"experimentalDecorators": true,
"diagnostics": true,
"sourceMap": true,

View File

@@ -247,7 +247,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
public _suspendedUpdates: {
[propertyName: string]: Property<ViewBase, any> | CssProperty<Style, any> | CssAnimationProperty<Style, any>;
};
public _suspendNativeUpdatesCount: SuspendType;
public _suspendNativeUpdatesCount: number;
public _isStyleScopeHost: boolean;
public _automaticallyAdjustsScrollViewInsets: boolean;

View File

@@ -386,8 +386,8 @@ export class View extends ViewCommon implements ViewDefinition {
this._suspendCATransaction = false;
}
public _isPresentationLayerUpdateSuspeneded() {
return this._suspendCATransaction || this._suspendNativeUpdatesCount;
public _isPresentationLayerUpdateSuspeneded(): boolean {
return this._suspendCATransaction || this._suspendNativeUpdatesCount > 0;
}
protected _showNativeModalView(parent: View, options: ShowModalOptions) {

View File

@@ -2,7 +2,7 @@
"name": "NativeScript",
"description": "NativeScript Core Modules",
"homepage": "https://nativescript.org",
"version": "7.0.0-rc.9",
"version": "7.0.0-rc.11",
"repository": {
"type": "git",
"url": "https://github.com/NativeScript/NativeScript"

View File

@@ -16,7 +16,7 @@
"clean": "npx rimraf hooks node_modules platforms package-lock.json && npm i"
},
"dependencies": {
"@nativescript/core": "file:../dist/nativescript-core-7.0.0-rc.9.tgz"
"@nativescript/core": "file:../dist/nativescript-core-7.0.0-rc.11.tgz"
},
"devDependencies": {
"circular-dependency-plugin": "~5.2.0",