-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.js
More file actions
25 lines (25 loc) · 731 Bytes
/
notes.js
File metadata and controls
25 lines (25 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
define(["require", "exports"], function (require, exports) {
"use amd";
var _key = "__OWN_NOTES_OBJECTS";
function own(that) {
var restParams = [];
for (var _i = 1; _i < arguments.length; _i++) {
restParams[_i - 1] = arguments[_i];
}
var objects = that[_key] = that[_key] || [];
for (var i = 0; i < restParams.length; i++) {
objects.push(arguments[i]);
}
}
exports.own = own;
function clean(that) {
var objects = that[_key] = that[_key] || [];
while (objects.length > 0) {
try {
objects.pop().recycle();
}
catch (e) { }
}
}
exports.clean = clean;
});