Skip to content

Commit

Permalink
onRendered callbacks for atInput and weak deps for routing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
splendido committed Aug 16, 2015
1 parent 1c4bf3c commit 8bc435e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/at_input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Template.atInput.rendered = AccountsTemplates.atInputRendered;
_.each(AccountsTemplates.atInputRendered, function(callback){
Template.atInput.onRendered(callback);
});

// Simply 'inherites' helpers from AccountsTemplates
Template.atInput.helpers(AccountsTemplates.atInputHelpers);
Expand All @@ -19,9 +21,9 @@ Template.atCheckboxInput.events({
}
});

Template.atSelectInput.rendered = function () {
Template.atSelectInput.onRendered(function () {
$('.ui.dropdown').dropdown();
};
});

// Simply 'inherites' helpers from AccountsTemplates
Template.atSelectInput.helpers(AccountsTemplates.atInputHelpers);
Expand Down
5 changes: 5 additions & 0 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ Package.on_use(function(api, where) {

api.use([
'templating',
'underscore',
], 'client');

api.use([
'useraccounts:core',
], ['client', 'server']);

// Requires all routing packages loads before this asking for weak dependencies.
api.use('useraccounts:flow-routing@1.12.1', ['client', 'server'], {weak: true});
api.use('useraccounts:iron-routing@1.12.1', ['client', 'server'], {weak: true});

api.imply([
'useraccounts:core@1.12.1',
Expand Down

0 comments on commit 8bc435e

Please sign in to comment.