window.plugins is not defined anymore, replaced it with cordova.plugins

Reproduced in 3.1, see #60
This commit is contained in:
Jakob Gillich
2013-10-30 16:53:40 +01:00
parent ec4de624ae
commit 7d831d83ed
+1 -1
View File
@@ -61,7 +61,7 @@ A full example could be:
```
## Encoding a Barcode ##
The plugin creates the object `window.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`.
The plugin creates the object `cordova.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`.
Supported encoding types:
* TEXT_TYPE