123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- "use strict";
- define(["module", "vwf/view"], function (module, view) {
- return view.load(module, {
-
- initialize: function (options) {
- var self = this;
- this.nodes = {};
-
- },
-
-
- createdProperty: function (nodeId, propertyName, propertyValue) {
- return this.satProperty(nodeId, propertyName, propertyValue);
- },
- initializedProperty: function (nodeId, propertyName, propertyValue) {
- return this.satProperty(nodeId, propertyName, propertyValue);
- },
- satMethod: function (nodeId, methodName) {
- var self = this;
- var node = this.state.nodes[ nodeId ];
- if ( !( node && node.lang) ) {
- return;
- }
- if (methodName.indexOf("Operation") > -1) {
-
- self.kernel.setProperty(nodeId, 'ohmLang', node.lang.source);
- console.log("set new lang properties");
- }
- },
-
-
-
-
-
-
-
-
-
-
-
- satProperty: function (nodeId, propertyName, propertyValue) {
-
- var self = this;
- var node = this.state.nodes[ nodeId ];
- if ( !( node && node.lang) ) {
- return;
- }
- var lang = node.lang;
- switch (propertyName) {
- case "ohmLang":
- if (propertyValue) {
- self.kernel.callMethod (nodeId, 'initLang');
- }
- break;
- }
- },
-
-
-
-
- });
-
- });
|