PartsBinBrowser
X

Menu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// changed at Mon Sep 23 2013 20:57:40 GMT-0700 (PDT) by Dan  
this.addScript(function plugIn(widget) {
    // set up connect and stub methods based on widget.plug
    if (!widget.plug) return;
    var plug = widget.plug;
    ownPropertyNames(plug).forEach(function (prop) {
        var stub = this.methodStubFor(widget, prop);
        this.addScript(eval('(' + stub.methodString + ')'))  // method stub
            .tag(['app API']);
        if (plug[prop] == 'output')
            connect(widget, prop, this, stub.methodName)  // output 
connection
        if (!this[stub.widgetName]) console.log('adding this.' + stub
.widgetName);
        this[stub.widgetName] = widget;  // own variable for widget
        }, this)
}).tag(["DnD model"]);
X
Scripts
Connections
+
+
-
-
<lively.morphic.Panel#AE943...>
Tag:
all
run
save
Tests

ObjectEditor
X

Menu
Connected
Workspace
X

Menu
1
2
3
4
5
6
7
8
9
10
11
12
13
onLoad
    this.classPaneSetList(classes(true)
        .sort(function(a,b) {return a.name <= b.name ? -1 : 1}))
classPaneSelection(theClass) {
    this.theClass = theClass;
    this.methodPaneSetList(theClass.functionNames());
methodPaneSelection(selection) {
    this.methodTextSetTextString(this.theClass.prototype[selection])
    this.classPane.renderFunction = function(c) {return c.name};
X
lively.morphic.Layout.AccordionLayout
X

Menu