push
github
56 of 145 branches covered (38.62%)
48 of 50 new or added lines in 5 files covered. (96.0%)
3395 existing lines in 78 files now uncovered.8599 of 20189 relevant lines covered (42.59%)
701.76 hits per line
UNCOV
1
|
/** @format */
|
|
UNCOV
2
|
|
× |
3 |
define([ |
× |
UNCOV
4
|
"dojo/_base/declare",
|
× |
UNCOV
5
|
"dojo/on",
|
× |
UNCOV
6
|
"dojo/topic",
|
× |
UNCOV
7
|
"dijit/form/ToggleButton"
|
× |
UNCOV
8
|
], function (declare, on, topic, ToggleButton) {
|
× |
9 |
return declare("lsmb/PublishToggleButton", [ToggleButton], { |
× |
UNCOV
10
|
publish: function (targetValue) { |
× |
11 |
topic.publish(this.topic, targetValue);
|
× |
12 |
this.set(
|
× |
UNCOV
13
|
"iconClass",
|
× |
UNCOV
14
|
targetValue |
× |
UNCOV
15
|
? "dijitTreeIcon dijitFolderOpened"
|
× |
UNCOV
16
|
: "dijitTreeIcon dijitFolderClosed"
|
× |
UNCOV
17
|
); |
× |
UNCOV
18
|
}, |
× |
UNCOV
19
|
postCreate: function () { |
× |
20 |
var self = this; |
× |
21 |
this.inherited(arguments); |
× |
22 |
this.own(
|
× |
UNCOV
23
|
on(this, "change", function (targetValue) { |
× |
24 |
self.publish(targetValue); |
× |
UNCOV
25
|
}) |
× |
UNCOV
26
|
); |
× |
27 |
self.publish(self.checked); |
× |
UNCOV
28
|
} |
× |
UNCOV
29
|
}); |
× |
UNCOV
30
|
}); |
× |