From ba3c96c38609dad0314096c3beb1093b87f7bfb1 Mon Sep 17 00:00:00 2001 From: Ryan Willoughby Date: Thu, 26 Sep 2013 17:17:00 -0700 Subject: [PATCH] [js] plugin.xml asset backwards compat --- plugin.xml | 4 +++- www/barcodescanner.js | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/plugin.xml b/plugin.xml index 9d88546..194fcfa 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="1.0.2"> BarcodeScanner Scans Barcodes. @@ -15,6 +15,8 @@ + + diff --git a/www/barcodescanner.js b/www/barcodescanner.js index 42b587c..a86990a 100644 --- a/www/barcodescanner.js +++ b/www/barcodescanner.js @@ -6,6 +6,7 @@ * Copyright (c) 2011, IBM Corporation */ + var ScannerLoader = function (require, exports, module) { var exec = require("cordova/exec"); @@ -85,3 +86,12 @@ var barcodeScanner = new BarcodeScanner(); module.exports = barcodeScanner; + } + + ScannerLoader(require, exports, module); + + cordova.define("cordova/plugin/BarcodeScanner", ScannerLoader); + + + +