[js] cordova.require instead of PhoneGap.require

This commit is contained in:
Ryan Willoughby
2013-06-05 12:38:57 -07:00
parent 10f8e6b116
commit ea1586b0ff
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) {
@@ -75,7 +75,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) {