create
以下の例では、との両方update
が同一であることに注意してください。もう一度書き出す必要なしに、のコードのupdate
エイリアスになることは可能だと思います。create
this.VAROPS = {
// variable operations
create: function(id, value) { variables[id] = value; }
, delete: function(id) { delete variables[id]; }
, update: function(id, value) { variables[id] = value; }
};