Of course we still can make it look like that, this is the same example but then without everything inlined still our average user will have to get used that we are referencing function ‘pointers’ here
var pushConfig = {pushServerURL: "<pushServerURL e.g http(s)//host:port/context >",alias: "<alias e.g. a username or an email address optional>",android: {senderID: "<senderID e.g Google Project ID only for android>",variantID: "<variantID e.g. 1234456-234320>",variantSecret: "<variantSecret e.g. 1234456-234320>"},ios: {variantID: "<variantID e.g. 1234456-234320>",variantSecret: "<variantSecret e.g. 1234456-234320>"}};push.register(onNotification, errorHandler, pushConfig);function onNotification(event) {alert(event.alert);}function errorHandler(error) {throw error;}
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev