This is just some static backup of the original site, don't expect every link to work!

Ignore:
Timestamp:
Oct 5, 2010, 1:54:59 PM (12 years ago)
Author:
rene <just@…>
Branches:
ng_0.6, ng_0.8, ng_0.9
Children:
0852d9
Parents:
045bfd
Message:

cleanup and finalization of rdf-import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_storageExtras.js

    r045bfd rdd1f45  
    9393        this.extras[4] = new vI_storageExtras_sMime_messageEncryption()
    9494
    95     if (rdfDatasource) this.loopForRDF(rdfDatasource, resource)
     95    if (rdfDatasource) this.loopForRDF(rdfDatasource, resource, "get")
    9696}
    9797
    9898vI_storageExtras.prototype = {
    99     loopForRDF : function(rdfDatasource, resource) {
     99    loopForRDF : function(rdfDatasource, resource, type) {
    100100        for( var i = 0; i < this.extras.length; i++ ) {
    101101//          if (vI_notificationBar) vI_notificationBar.dump("## vI_rdfDatasource: loopForRDF " + rdfDatasource + "\n");
    102102            // only if pref set and feature(element available) or for dataEditor
    103             if (typeof(gMsgCompose) == "undefined" || !gMsgCompose || this.extras[i].active)
    104                 this.extras[i].value = rdfDatasource._getRDFValue(resource, this.extras[i].field, this.extras[i].value)
     103            if (typeof(gMsgCompose) == "undefined" || !gMsgCompose || this.extras[i].active) {
     104                switch (type) {
     105                    case "get": this.extras[i].value = rdfDatasource._getRDFValue(resource, this.extras[i].field, this.extras[i].value); break;
     106                    case "set": this.extras[i].value = rdfDatasource._setRDFValue(resource, this.extras[i].field, this.extras[i].value); break;
     107                    case "unset": this.extras[i].value = rdfDatasource._unsetRDFValue(resource, this.extras[i].field, this.extras[i].value); break;
     108                }
     109            }
    105110        }
    106111    },
Note: See TracChangeset for help on using the changeset viewer.