Menu

#27 Error with Prototype JavaScript framework, version 1.7

v1.0.0-nonfinal5
open
nobody
None
5
2011-09-12
2011-09-12
Anonymous
No

Hi,

I've got a trouble using UITags nonfinal5 with Prototype JavaScript framework, version 1.7.

In the Trigger.js there is a function :
uiHtml_Toggle.prototype.switchOff = function() {
this.__logger.info("switching off " + this.__debugId);
this.__stateOn = false;
this.__strategyDisplayOff();
var domTrigger = this.__triggerOff.getDomObject();
/* Loop that generate domTrigger undefined Exception
for (prop in this.__offPropertyArray) {
domTrigger[prop] = this.__offPropertyArray[prop];
}
end of trouble loop */
};

In this function, the loop generate exception (on third run, prop=all) on all versions of IE browsers (no bug in FF and chrome).

Without prototype uitags doesn t enter the loop (so no trouble). With Prototype, the object must have some addon and the loop run with "prop"=each, eachSlice, all.

In IE due to the exception, the JS stops loading and UITAGS are the KO in the html page.

Commenting the loop makes all work on every browsers but i guess the loop should be used in some cases...

Hoping helping you to improve UITags,
Best regards

Discussion


Log in to post a comment.

MongoDB Logo MongoDB