2010-04-26 19:04:17 +00:00
/ *
* This is a mock file pointing to PlacesUtils . jsm for add - ons backwards
* compatibility .
2008-02-27 18:14:13 +00:00
*
2010-04-26 19:04:17 +00:00
* If you are importing this file , you should instead import PlacesUtils . jsm .
* If you need to support different versions of toolkit , then you can use the
* following code to import PlacesUtils in your scope .
2008-02-27 18:14:13 +00:00
*
2010-04-26 19:04:17 +00:00
* Try {
* Components . utils . import ( "resource://gre/modules/PlacesUtils.jsm" ) ;
* } catch ( ex ) {
* Components . utils . import ( "resource://gre/modules/utils.js" ) ;
* }
2008-02-27 18:14:13 +00:00
*
2010-04-26 19:04:17 +00:00
* /
2008-02-27 18:14:13 +00:00
var EXPORTED _SYMBOLS = [ "PlacesUtils" ] ;
2010-04-26 19:04:17 +00:00
Components . utils . reportError ( 'An add-on is importing utils.js module, this file is deprecated, PlacesUtils.jsm should be used instead. Please notify add-on author of this problem.' ) ;
2010-04-16 21:51:04 +00:00
2010-04-26 19:04:17 +00:00
Components . utils . import ( "resource://gre/modules/PlacesUtils.jsm" ) ;