-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKnockoutJS-JavaScript.sublime-completions
More file actions
85 lines (85 loc) · 2.24 KB
/
Copy pathKnockoutJS-JavaScript.sublime-completions
File metadata and controls
85 lines (85 loc) · 2.24 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"scope": "source.js",
"completions":
[
{
"trigger": "ko.isObservable()"
},
{
"trigger": "ko.isComputed()"
},
{
"trigger": "ko.isWriteableObservable()"
},
{
"trigger": "dispose()"
},
{
"trigger": "extend()"
},
{
"trigger": "getDependenciesCount()"
},
{
"trigger": "getSubscriptionsCount()"
},
{
"trigger": "isActive()"
},
{
"trigger": "peek()"
},
{
"trigger": "ko.applyBindings()",
"contents": "ko.applyBindings(${1:new ViewModel})$0"
},
{
"trigger": "ko.observable()",
"contents": "ko.observable(${1:foo})$0"
},
{
"trigger": "ko.observableArray()",
"contents": "ko.observableArray(${1:['foo', 'bar']})$0"
},
{
"trigger": "ko.computed(new function(){})",
"contents": "ko.computed(new function($1){$2})$0"
},
{
"trigger": "ko.applyBindings(new ViewModel())",
"contents": "ko.applyBindings(${1:new ViewModel()})$0"
},
{
"trigger": "subscribe(function(){})",
"contents": "subscribe(function($1){$2})$0"
},
{
"trigger": "isNaN(value)",
"contents": "isNaN(${1:value})$0"
},
{
"trigger": "extend()",
"contents": "extend($1)$0"
},
{
"trigger": "json.parse",
"contents": "JSON.parse(${1:someJSON})$0"
},
{
"trigger": "ko.mapping.fromJS",
"contents": "ko.mapping.fromJS({$1:data})$0"
},
{
"trigger": "ko.toJS",
"contents": "ko.toJS(${1:viewModel})$0"
},
{
"trigger": "ko.toJSON",
"contents": "ko.toJSON(${1:viewModel})$0"
},
{
"trigger": "ko.mapping.toJS",
"contents": "ko.mapping.toJS(${1:data})$0"
}
]
}