radio/libjs/wController/string.js

23 lines
481 B
JavaScript
Raw Permalink Normal View History

2018-08-04 21:46:25 +00:00
"use strict";
var Controller = require("./controller");
var String = Controller.inherit({
"className": "String",
"constructor": function(addr) {
Controller.fn.constructor.call(this, addr);
this.data = "";
this.addHandler("get");
},
"_h_get": function(ev) {
var data = ev.getData();
this.data = data.at("data").toString();
this.trigger("data");
}
});
module.exports = String;