1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 15:25:45 +01:00

Normalise use of "res" vs "ret" for return variables.

This commit is contained in:
Doug Kearns
2011-03-07 21:41:07 +11:00
parent 7bf3f40ab0
commit 1c4c5e5ad3
6 changed files with 46 additions and 47 deletions

View File

@@ -83,20 +83,20 @@ var ArrayStore = Class("ArrayStore", StoreBase, {
},
pop: function pop(value) {
var ret = this._object.pop();
var res = this._object.pop();
this.fireEvent("pop", this._object.length);
return ret;
return res;
},
truncate: function truncate(length, fromEnd) {
var ret = this._object.length;
var res = this._object.length;
if (this._object.length > length) {
if (fromEnd)
this._object.splice(0, this._object.length - length);
this._object.length = length;
this.fireEvent("truncate", length);
}
return ret;
return res;
},
// XXX: Awkward.