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(["dojo/_base/declare", "dojo/topic", "dijit/form/Select"], function ( |
× |
UNCOV
4
|
declare, |
× |
UNCOV
5
|
topic, |
× |
UNCOV
6
|
select |
× |
UNCOV
7
|
) { |
× |
8 |
return declare("lsmb/SubscribeSelect", [select], { |
× |
UNCOV
9
|
topic: "", |
× |
UNCOV
10
|
topicMap: {},
|
× |
UNCOV
11
|
update: function (targetValue) { |
× |
12 |
var newValue = this.topicMap[targetValue]; |
× |
13 |
if (newValue) {
|
× |
14 |
this.set("value", newValue); |
× |
UNCOV
15
|
} |
× |
UNCOV
16
|
}, |
× |
UNCOV
17
|
postCreate: function () { |
× |
18 |
var self = this; |
× |
19 |
this.inherited(arguments); |
× |
UNCOV
20
|
|
× |
21 |
this.own(
|
× |
UNCOV
22
|
topic.subscribe(self.topic, function (targetValue) {
|
× |
23 |
self.update(targetValue); |
× |
UNCOV
24
|
}) |
× |
UNCOV
25
|
); |
× |
UNCOV
26
|
} |
× |
UNCOV
27
|
}); |
× |
UNCOV
28
|
}); |
× |