callbackName

This commit is contained in:
Leo Horie 2016-05-26 11:19:39 -04:00
parent bdd65b3b86
commit 0ad6749f87
3 changed files with 23 additions and 1 deletions

View file

@ -2042,7 +2042,7 @@
function identity(value) { return value }
function handleJsonp(options) {
var callbackKey = "mithril_callback_" +
var callbackKey = options.callbackName || "mithril_callback_" +
new Date().getTime() + "_" +
(Math.round(Math.random() * 1e16)).toString(36)