create ponto module to communitace with infobox builder UI in iframe

This commit is contained in:
Rafal Leszczynski 2015-09-01 14:59:17 +02:00
parent 2b5ba08159
commit 24488ba89b

View file

@ -0,0 +1,20 @@
'use strict';
define('wikia.infoboxbuilder.ponto', ['wikia.window', 'ponto'], function (window, ponto) {
function InfoboxBuilderPonto() {
this.isWikiaContext = function () {
return {
isWikiaContext: true,
isLoggedIn: window.wqUserName !== null ? true : false
}
}
}
// PontoBaseHandler extension pattern - check Ponto documentation for details
ponto.PontoBaseHandler.derive(InfoboxBuilderPonto);
InfoboxBuilderPonto.getInstance = function() {
return new InfoboxBuilderPonto();
};
return InfoboxBuilderPonto;
});