radio/libjs/wController/string.js
2018-08-05 00:48:17 +03:00

23 lines
481 B
JavaScript

"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;