Skip to content

Commit 9bb2274

Browse files
committed
onRendered callbacks for atInput and weak deps for routing packages
1 parent 0f1c2e9 commit 9bb2274

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/at_input.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Template.atInput.rendered = AccountsTemplates.atInputRendered;
1+
_.each(AccountsTemplates.atInputRendered, function(callback){
2+
Template.atInput.onRendered(callback);
3+
});
24

35
// Simply 'inherites' helpers from AccountsTemplates
46
Template.atInput.helpers(AccountsTemplates.atInputHelpers);
@@ -19,4 +21,4 @@ Template.atSelectInput.helpers(AccountsTemplates.atInputHelpers);
1921
Template.atRadioInput.helpers(AccountsTemplates.atInputHelpers);
2022

2123
// Simply 'inherites' helpers from AccountsTemplates
22-
Template.atHiddenInput.helpers(AccountsTemplates.atInputHelpers);
24+
Template.atHiddenInput.helpers(AccountsTemplates.atInputHelpers);

package.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@ Package.describe({
22
summary: 'Accounts Templates for polymer',
33
version: '1.12.1',
44
name: 'useraccounts:polymer',
5+
git: 'https://github.com/meteor-useraccounts/polymer.git',
56
});
67

78
Package.on_use(function(api, where) {
89
api.versionsFrom('[email protected]');
910

1011
api.use([
1112
'templating',
13+
'underscore',
1214
], 'client');
1315

1416
api.use([
1517
'useraccounts:core',
1618
], ['client', 'server']);
19+
20+
// Requires all routing packages loads before this asking for weak dependencies.
21+
api.use('useraccounts:[email protected]', ['client', 'server'], {weak: true});
22+
api.use('useraccounts:[email protected]', ['client', 'server'], {weak: true});
1723

1824
api.imply([
1925
'useraccounts:[email protected]',

0 commit comments

Comments
 (0)