WALA/com.ibm.wala.cast.js.test.data/examples-src/tests/214631.js

18 lines
484 B
JavaScript
Executable File

// $Id: drupal.js,v 1.41.2.4 2009/07/21 08:59:10 goba Exp $
var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };
/**
* Set the variable that indicates if JavaScript behaviors should be applied
*/
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;
// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
//Do some code
}