Changeset 71e022


Ignore:
Timestamp:
Oct 13, 2014, 11:17:12 PM (6 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
f905aa
Parents:
1e1bc6
Message:

fix for multiple and endless calls to awSetInputAndPopupValue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/vI_storage.js

    r1e1bc6 r71e022  
    6363    replacement_functions : {
    6464        awSetInputAndPopupValue : function (inputElem, inputValue, popupElem, popupValue, rowNumber) {
    65             Log.debug("awSetInputAndPopupValue '" + inputElem.id + "'");
     65            debug.Log("awSetInputAndPopupValue '" + inputElem.id + "'");
    6666            storage.original_functions.awSetInputAndPopupValue(inputElem, inputValue, popupElem, popupValue, rowNumber);
    6767            storage.__updateVIdentityFromStorage(inputElem, storage.currentWindow);
     
    125125            storage.initialized = true;
    126126        }
    127         storage.original_functions.awSetInputAndPopupValue = awSetInputAndPopupValue;
    128         awSetInputAndPopupValue = function (inputElem, inputValue, popupElem, popupValue, rowNumber) {
    129             storage.replacement_functions.awSetInputAndPopupValue (inputElem, inputValue, popupElem, popupValue, rowNumber) }
    130 
     127
     128        if (storage.original_functions.awSetInputAndPopupValue == null) {
     129            storage.original_functions.awSetInputAndPopupValue = awSetInputAndPopupValue;
     130            awSetInputAndPopupValue = function (inputElem, inputValue, popupElem, popupValue, rowNumber) {
     131                storage.replacement_functions.awSetInputAndPopupValue (inputElem, inputValue, popupElem, popupValue, rowNumber) }
     132        }
    131133        // reset unavailable storageExtras preferences
    132134        AddonManager.getAddonByID("{847b3a00-7ab1-11d4-8f02-006008948af5}", function(addon) {
Note: See TracChangeset for help on using the changeset viewer.