Changeset 159


Ignore:
Timestamp:
03/03/14 20:00:46 (6 years ago)
Author:
mmichalski
Message:

Solve poblem for older Chrome

File:
1 edited

Legend:

Unmodified
Added
Removed
  • js/viewer-f0/js/Structures/NeuroClass.js

    r143 r159  
    1616    });
    1717
    18     var nodes = data[0].children;
     18    var nodes = data[0].childNodes;
    1919
    2020    for (var i = 0; i < nodes.length; i++) {
     21        if(nodes[i].nodeType == 3)
     22            continue;
    2123        var node = $(nodes[i]);
    2224        this.addProperties(node);
     
    3436    });
    3537
    36     //properties["VALUE"] = typeof(properties["DEF"]) === 'undefined' ? 0 : properties["DEF"];
    37 
    3838    this._properties[properties["ID"]] = properties;
    3939}
     40
     41NeuroClass.prototype.getScheme = function(){
     42    return this.class["SYMBOL"].split(',').map(Number);
     43}
Note: See TracChangeset for help on using the changeset viewer.