Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[core] optionally disallowing $.deck() call without an explicit method
  • Loading branch information
twitwi committed Dec 27, 2014
commit 5bfb29f74c8a0e8311dfb2c84b8efa8d99b7d977
7 changes: 6 additions & 1 deletion core/deck.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,12 @@ that use the API provided by core.
return methods[method].apply(this, args);
}
else {
return methods.init(method, arg);
if (window.defaultDeckCallIsAnError) {
alert("'" + method + "' not found (or meant to be a parameter-less init)");
}
else {
return methods.init(method, arg);
}
}
};

Expand Down