Skip to content

Commit 3ecd259

Browse files
committed
Meteor 1.2 fix
1 parent a49d8ee commit 3ecd259

File tree

2 files changed

+79
-39
lines changed

2 files changed

+79
-39
lines changed

.versions

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,49 @@
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-
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+

package.js

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Package.describe({
44
name: 'aldeed:tabular',
55
summary: 'Datatables for large or small datasets in Meteor',
6-
version: '1.4.0',
6+
version: '1.4.1',
77
git: 'https://github.com/aldeed/meteor-tabular.git'
88
});
99

@@ -13,7 +13,15 @@ Npm.depends({
1313

1414
Package.onUse(function(api) {
1515
api.versionsFrom(['[email protected]', '[email protected]']);
16-
api.use(['check', 'underscore', 'mongo', 'blaze', 'templating', 'reactive-var', 'tracker']);
16+
api.use([
17+
'check',
18+
'underscore',
19+
'mongo',
20+
'blaze',
21+
'templating',
22+
'reactive-var',
23+
'tracker'
24+
]);
1725

1826
// jquery is a weak reference in case you want to use a different package or
1927
// pull it in another way, but regardless you need to make sure it is loaded
@@ -35,12 +43,25 @@ Package.onUse(function(api) {
3543
'client/tableRecords.js',
3644
'client/tableInit.js',
3745
'client/pubSelector.js',
38-
'client/tabular.js',
39-
// images
40-
'images/sort_asc.png',
41-
'images/sort_asc_disabled.png',
42-
'images/sort_both.png',
43-
'images/sort_desc.png',
44-
'images/sort_desc_disabled.png'
46+
'client/tabular.js'
4547
], 'client');
48+
49+
// images
50+
if (typeof api.addAssets === 'function') {
51+
api.addAssets([
52+
'images/sort_asc.png',
53+
'images/sort_asc_disabled.png',
54+
'images/sort_both.png',
55+
'images/sort_desc.png',
56+
'images/sort_desc_disabled.png'
57+
], 'client');
58+
} else {
59+
api.addFiles([
60+
'images/sort_asc.png',
61+
'images/sort_asc_disabled.png',
62+
'images/sort_both.png',
63+
'images/sort_desc.png',
64+
'images/sort_desc_disabled.png'
65+
], 'client');
66+
}
4667
});

0 commit comments

Comments
 (0)