get event

Fired when the get method is invoked.

Event Data

e.field String

The name of the field which is retrieved.

Example - subscribe to the get event

var observable = new{ name: "John Doe" });
observable.bind("get", function(e) {
    console.log(e.field); // will output the field name when the event is raised
observable.get("name"); // raises the "get" event and the handler outputs "name"
In this article
Not finding the help you need? Improve this article