function addthis_clear_js in AddThis 6.3
Delete the cached JavaScript file.
2 calls to addthis_clear_js()
- addthis_cache_js in ./addthis.module 
- Download and cache the AddThis JS file locally and return its path.
- addthis_uninstall in ./addthis.install 
- Implements hook_uninstall().
File
- ./addthis.module, line 412 
- Provides integration with the AddThis.com bookmarking & sharing service.
Code
function addthis_clear_js() {
  // Delete the cached AddThis JS file every day so it gets regenerated again.
  if (file_delete(file_directory_path() . '/addthis/addthis_widget.js')) {
    // Clear aggregated JS files.
    if (variable_get('preprocess_js', 0)) {
      drupal_clear_js_cache();
    }
  }
}