Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/Prefab.js
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | buildTokenizer : function(config) { | ||||
root = config.root || JX.$(config.id); | root = config.root || JX.$(config.id); | ||||
} catch (ex) { | } catch (ex) { | ||||
// If the root element does not exist, just return without building | // If the root element does not exist, just return without building | ||||
// anything. This happens in some cases -- like Conpherence -- where we | // anything. This happens in some cases -- like Conpherence -- where we | ||||
// may load a tokenizer but not put it in the document. | // may load a tokenizer but not put it in the document. | ||||
return; | return; | ||||
} | } | ||||
if (config.disabled) { | |||||
JX.DOM.alterClass(root, 'disabled-control', true); | |||||
return; | |||||
} | |||||
var datasource; | var datasource; | ||||
// Default to an ondemand source if no alternate configuration is | // Default to an ondemand source if no alternate configuration is | ||||
// provided. | // provided. | ||||
var ondemand = true; | var ondemand = true; | ||||
if ('ondemand' in config) { | if ('ondemand' in config) { | ||||
ondemand = config.ondemand; | ondemand = config.ondemand; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines |