You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kjsembed/tests/plugin.js

41 lines
662 B

var plugins = Factory.listBindingPlugins();
println("Currently Usable Plugins:");
for ( var idx = 0; idx < plugins.length; ++idx)
println(plugins[idx]);
try {
var invalid1 = new NotReallyThere(this);
}
catch(ex) {
println('Exception: '+ex);
}
var foo1 = new MyCustomObject(this);
var foo2 = new MyCustomObject(this);
foo1.setThing("Test");
println( foo1.On );
println( foo1.Off );
foo2.setMode(foo2.On);
foo2.setThing(foo2.thing());
if( foo2.mode() == foo1.On )
{
var foo3 = foo2;
println("Foo3 thing " + foo3.thing());
}
var foo4 = new MyCustomTQObject(this);
foo4.mode = foo4.On;
foo4.thing = "Test";
if( foo4.mode )
{
println( foo4.thing );
}