madcapnmckay / Knockout-UI

A home for rich UI components based on KnockoutJS
263 stars 51 forks source link

Updated to properly display icon for new node. #13

Closed ghost closed 11 years ago

ghost commented 11 years ago

Proposed change is seen below:

    addNode : function (parent, type, name, onSuccess) {
        nextId = nextId + 1;
        // add cssClass to properly display icon
        onSuccess({ id: nextId, parent: parent, name: name, cssClass: type }); 
    }