Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/externals/javelin/lib/DOM.js
Show All 40 Lines | if (__DEV__) { | ||||
} | } | ||||
} | } | ||||
var node = document.getElementById(id); | var node = document.getElementById(id); | ||||
if (!node || (node.id != id)) { | if (!node || (node.id != id)) { | ||||
if (__DEV__) { | if (__DEV__) { | ||||
if (node && (node.id != id)) { | if (node && (node.id != id)) { | ||||
JX.$E( | JX.$E( | ||||
'JX.$("'+id+'"): '+ | 'JX.$(\''+id+'\'): '+ | ||||
'document.getElementById() returned an element without the '+ | 'document.getElementById() returned an element without the '+ | ||||
'correct ID. This usually means that the element you are trying '+ | 'correct ID. This usually means that the element you are trying '+ | ||||
'to select is being masked by a form with the same value in its '+ | 'to select is being masked by a form with the same value in its '+ | ||||
'"name" attribute.'); | '"name" attribute.'); | ||||
} | } | ||||
} | } | ||||
JX.$E("JX.$('" + id + "') call matched no nodes."); | JX.$E('JX.$(\'' + id + '\') call matched no nodes.'); | ||||
} | } | ||||
return node; | return node; | ||||
}; | }; | ||||
/** | /** | ||||
* Upcast a string into an HTML object so it is treated as markup instead of | * Upcast a string into an HTML object so it is treated as markup instead of | ||||
* plain text. See @{JX.$N} for discussion of Javelin's security model. Every | * plain text. See @{JX.$N} for discussion of Javelin's security model. Every | ||||
▲ Show 20 Lines • Show All 891 Lines • Show Last 20 Lines |