Skip to content

Instantly share code, notes, and snippets.

@phoenixinobi
Last active January 29, 2019 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phoenixinobi/d9654f5dc0160bdaa9e0d0dc47a2fbca to your computer and use it in GitHub Desktop.
Save phoenixinobi/d9654f5dc0160bdaa9e0d0dc47a2fbca to your computer and use it in GitHub Desktop.
if (typeof (pxbiD365) == "undefined") {
var pxbiD365 = {};
}
(function() {
var self = this;
if (typeof (self.ObjectName) == "undefined") {
self.ObjectName = {};
}
(function() {
var self = this;
self.method1 = function(params) {
// code goes here
}
self.method2 = function(params) {
// code goes here
}
}).apply(self.ObjectName);
}).apply(pxbiD365);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment