1 Commits
Author SHA1 Message Date
Ryan Willoughby ff32ceb0e0 [js] cordova.require instead of PhoneGap.require 2013-06-05 12:37:10 -07:00
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ The following barcode types are currently supported:
A full example could be:
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
scanner.scan(
function (result) {
@@ -74,7 +74,7 @@ Supported encoding types:
A full example could be:
var scanner = window.PhoneGap.require("cordova/plugin/BarcodeScanner");
var scanner = cordova.require("cordova/plugin/BarcodeScanner");
scanner.encode(BarcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
alert("encode success: " + success);
+1 -1
View File
@@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.phonegap.plugins.barcodescanner"
version="0.3.1">
version="0.5.1">
<name>BarcodeScanner</name>
+1 -1
View File
@@ -7,7 +7,7 @@
*/
PhoneGap.define("cordova/plugin/BarcodeScanner",
cordova.define("cordova/plugin/BarcodeScanner",
function (require, exports, module) {