Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Observable, Some,
- __hasProp = {}.hasOwnProperty,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
- Observable = (function() {
- function Observable() {}
- Observable.prototype.set = function(name, value) {
- this["_" + name] = value;
- this.__defineSetter__(name, function(data) {
- return this["_" + name] = value * 5;
- });
- this.__defineGetter__(name, function() {
- return this["_" + name];
- });
- return this;
- };
- return Observable;
- })();
- Some = (function(_super) {
- __extends(Some, _super);
- function Some() {
- this.set("vaule", 42);
- }
- return Some;
- })(Observable);
Advertisement
Add Comment
Please, Sign In to add comment