Displaying 1 result from an estimated 1 matches for "cssselectorupd".
2006 Jun 13
0
Code comments?
...en it using prototype.js structures and suspect there are some
additional optimizations which could be made. There may be a way to use
findAll or another equivalency operator to test for the innermost equality
and perform the assignment if it''s true?
Comments appreciated...
Sam
cssSelectorUpdate2: function(sSelector, sProperty, sValue) {
// Update the property value for a specific sSelector in a stylesheet
for(var i = 0; document.styleSheets.length > i; i++) { //
Mozilla
var oRules = document.styleSheets[i].rules ||
document.styleSheets[i].cssRules;...