nativescript-cfalert-dialog
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -93,4 +93,4 @@ "use strict"; | ||
if (options.buttons) { | ||
for (var _i = 0, _a = options.buttons; _i < _a.length; _i++) { | ||
var button = _a[_i]; | ||
var _loop_1 = function (i) { | ||
var button = options.buttons[i]; | ||
builder.addButton(button.text, -1, -1, actionStyles[button.buttonStyle], alignment[button.buttonAlignment], new android.content.DialogInterface.OnClickListener({ | ||
@@ -102,2 +102,5 @@ onClick: function (dialog, which) { | ||
})); | ||
}; | ||
for (var i = 0; i < options.buttons.length; i++) { | ||
_loop_1(i); | ||
} | ||
@@ -104,0 +107,0 @@ } |
{ | ||
"name": "nativescript-cfalert-dialog", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "CFAlert Dialog wrapper for NativeScript", | ||
@@ -23,15 +23,26 @@ "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/**'" | ||
}, | ||
@@ -38,0 +49,0 @@ "keywords": [ |
53488
13
903