Skip to content

Commit

Permalink
put back init with a warning to preserve backward compatibility...
Browse files Browse the repository at this point in the history
  • Loading branch information
splendido committed Nov 12, 2014
1 parent 991b9bf commit 76ce36b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ AT.prototype.ensureSignedIn = function() {
};

// Initialization

// Initialization
AT.prototype.init = function() {
console.warn("[AccountsTemplates] There is no more need to call AccountsTemplates.init()! Simply remove the call ;-)");
};

AT.prototype._init = function() {
if (this._initialized)
return;
Expand Down
5 changes: 5 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// Initialization

AT.prototype.init = function() {
console.warn("[AccountsTemplates] There is no more need to call AccountsTemplates.init()! Simply remove the call ;-)");
};

AT.prototype._init = function() {
if (this._initialized)
return;
Expand Down

0 comments on commit 76ce36b

Please sign in to comment.