-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.html
More file actions
38 lines (32 loc) · 1009 Bytes
/
test1.html
File metadata and controls
38 lines (32 loc) · 1009 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
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<title>Test 1</title>
<script src="vendor/underscore/underscore-1.9.1.js"></script>
<script src="System.js"></script>
<script src="Helpers.js"></script>
<script src="Models.js"></script>
<script>
let Logger = new System.Helpers.Logger();
var x = new System.Models.Record({
ID: "23",
Name: "Some post!",
Body: "Hello, world!",
dateModified: 3,
authorId: 1000
}, function(model) {
var clone = _.clone(model);
Logger.log('new System.Models.Record Object, Callback received arguments: ', {
model,
clone
})
Logger.log('-callback fired');
model.someFunction = function() {
alert('hey');
}
})
//x.someFunction();
console.log(JSON.stringify(x));
console.log(x.getName());
</script>
</head>
</html>