Skip to content

Commit d3ed58a

Browse files
committed
typo on checking android native icon
1 parent 31394d8 commit d3ed58a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

fab.android.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ var ImageSource = require("image-source");
5353
})(common.Fab);
5454

5555
exports.Fab = FloatingActionButton;
56-
57-
56+
57+
5858
/* SETUP CSS */
5959
var FloatingActionButtonStyler = (function () {
6060
function FloatingActionButtonStyler() {
@@ -72,7 +72,7 @@ var FloatingActionButtonStyler = (function () {
7272
var fab = view.android;
7373
return fab.getBackgroundTintList();
7474
};
75-
75+
7676
FloatingActionButtonStyler.registerHandlers = function () {
7777
style.registerHandler(style.backgroundColorProperty, new style.StylePropertyChangedHandler(FloatingActionButtonStyler.setBackgroundColorProperty, FloatingActionButtonStyler.resetBackgroundColorProperty, FloatingActionButtonStyler.getNativeBackgroundColorValue), "FloatingActionButton");
7878
style.registerHandler(style.backgroundInternalProperty, style.ignorePropertyHandler, "FloatingActionButton");
@@ -81,7 +81,7 @@ var FloatingActionButtonStyler = (function () {
8181
})();
8282
exports.FloatingActionButtonStyler = FloatingActionButtonStyler;
8383
FloatingActionButtonStyler.registerHandlers();
84-
84+
8585
/* SETUP PROPERTIES */
8686
//Background Color
8787
function onBackColorPropertyChanged(data) {
@@ -109,7 +109,7 @@ function onIconPropertyChanged(data) {
109109
} else {
110110
var drawableId = android.content.res.Resources.getSystem().getIdentifier(icon, "drawable", "android");
111111
iconDrawable = android.content.res.Resources.getSystem().getDrawable(drawableId);
112-
if (iconDrawabele) {
112+
if (iconDrawable) {
113113
fab.android.setImageDrawable(iconDrawable);
114114
} else {
115115
console.log("The icon: " + icon + " was not found. Check your XML icon property.");
@@ -128,4 +128,4 @@ function onRippleColorPropertyChanged(data) {
128128
console.log("The ripple color: " + data.newValue + " is invalid.");
129129
}
130130
}
131-
common.Fab.rippleColorProperty.metadata.onSetNativeValue = onRippleColorPropertyChanged;
131+
common.Fab.rippleColorProperty.metadata.onSetNativeValue = onRippleColorPropertyChanged;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-floatingactionbutton",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "A NativeScript plugin to provide an XML widget to implement the Material Design Floating Action Button in NativeScript apps.",
55
"main": "fab.js",
66
"nativescript": {
@@ -27,7 +27,7 @@
2727
"author": "Brad Martin <[email protected]> (https://github.com/bradmartin)",
2828
"contributors": [
2929
{
30-
"name": "L�zaro Danillo",
30+
"name": "Lázaro Danillo",
3131
"url": "https://github.com/lazaromenezes"
3232
},
3333
{

0 commit comments

Comments
 (0)