nativescript-cfalert-dialog
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -74,3 +74,3 @@ "use strict"; | ||
} | ||
if (typeof options.textAlignment !== undefined) { | ||
if (options.textAlignment !== undefined) { | ||
builder.setTextGravity(gravity[options.textAlignment]); | ||
@@ -84,3 +84,3 @@ } | ||
} | ||
if (options.cancellable) { | ||
if (options.cancellable !== undefined) { | ||
builder.setCancelable(options.cancellable); | ||
@@ -87,0 +87,0 @@ } |
{ | ||
"name": "nativescript-cfalert-dialog", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "CFAlert Dialog wrapper for NativeScript", | ||
@@ -23,26 +23,15 @@ "main": "cfalert-dialog", | ||
"build": "npm i && tsc", | ||
"postclone": | ||
"npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link", | ||
"test.android": | ||
"npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", | ||
"test.ios": | ||
"npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", | ||
"tslint": | ||
"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"", | ||
"plugin.link": | ||
"npm link && cd ../demo && npm link nativescript-cfalert-dialog && cd ../src", | ||
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link", | ||
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", | ||
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", | ||
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"", | ||
"plugin.link": "npm link && cd ../demo && npm link nativescript-cfalert-dialog && cd ../src", | ||
"plugin.tscwatch": "npm run tsc -- -w", | ||
"demo.ios": | ||
"npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles", | ||
"debug.ios": | ||
"npm i && npm run tsc && cd ../demo && tns debug ios --syncAllFiles", | ||
"demo.android": | ||
"npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles", | ||
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles", | ||
"debug.ios": "npm i && npm run tsc && cd ../demo && tns debug ios --syncAllFiles", | ||
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles", | ||
"demo.reset": "cd ../demo && rimraf platforms", | ||
"plugin.prepare": | ||
"npm run tsc && cd ../demo && tns plugin remove nativescript-cfalert-dialog && tns plugin add ../src", | ||
"clean": | ||
"cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link", | ||
"ci.tslint": | ||
"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'" | ||
"plugin.prepare": "npm run tsc && cd ../demo && tns plugin remove nativescript-cfalert-dialog && tns plugin add ../src", | ||
"clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link", | ||
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'" | ||
}, | ||
@@ -49,0 +38,0 @@ "keywords": [ |
34101