object.disable or object.disabled? which is it

R Robert Galvin 3 years 5 months ago
1 2 0

What is the correct JS method for disabling scanner or imager? It seems trhat this current build it went from imager.disabled to imager.disable? Did this just change?

Please Register or Login to post a reply

2 Replies

E Efkan YILMAZ

Thanks Dan, yes, that's right, we changed it to .disable() in the latest release.  This affects the imager, scanner and stylus modules. Moving forward all similar methods will be enable() and disable() whereas all properties will be 'enabled' and 'disabled'. Note that code written for PocketBrowser will still be compatible in Neon, i.e. will still work.  We are currently working on some backwards compatibility issues enabling / disabling the scanner decoders but these will be resolved by the official release.  Darryn.

E Efkan YILMAZ

Rob,  It was mentioned in the beta trainig that the intention was to change that to Disable.  It does look like they did that in this release.   It was also mentioned that the help file will always be right, and sure enough, the help file does show "disable"

CONTACT
Can’t find what you’re looking for?