Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[js] cordova.require instead of PhoneGap.require
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed Jun 7, 2013
1 parent d9f9f2d commit 3ab1885
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion www/barcodescanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/


PhoneGap.define("cordova/plugin/BarcodeScanner",
cordova.define("cordova/plugin/BarcodeScanner",

function (require, exports, module) {

Expand Down

0 comments on commit 3ab1885

Please sign in to comment.