nativescript-toast
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "nativescript-toast", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A NativeScript Toast Plugin for Android.", | ||
@@ -5,0 +5,0 @@ "main": "toast.js", |
@@ -1,14 +0,16 @@ | ||
/*global exports*/ | ||
/*global module*/ | ||
var Toast = { | ||
text: "", | ||
makeText: function(text) { | ||
this.text = text; | ||
return this; | ||
}, | ||
show: function() { | ||
console.log(this.text); | ||
} | ||
var Toast = function(){ | ||
this.text = ''; | ||
}; | ||
exports.Toast = Toast; | ||
Toast.prototype.makeText = function(text) { | ||
this.text = text; | ||
return this; | ||
}; | ||
Toast.prototype.show = function() { | ||
console.log(this.text); | ||
}; | ||
module.exports = new Toast(); |
10215
24