Skip to content

Commit 76ce36b

Browse files
committed
put back init with a warning to preserve backward compatibility...
1 parent 991b9bf commit 76ce36b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/client.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ AT.prototype.ensureSignedIn = function() {
183183
};
184184

185185
// Initialization
186+
187+
// Initialization
188+
AT.prototype.init = function() {
189+
console.warn("[AccountsTemplates] There is no more need to call AccountsTemplates.init()! Simply remove the call ;-)");
190+
};
191+
186192
AT.prototype._init = function() {
187193
if (this._initialized)
188194
return;

lib/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// Initialization
2+
3+
AT.prototype.init = function() {
4+
console.warn("[AccountsTemplates] There is no more need to call AccountsTemplates.init()! Simply remove the call ;-)");
5+
};
6+
27
AT.prototype._init = function() {
38
if (this._initialized)
49
return;

0 commit comments

Comments
 (0)