Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testLibrary = (function() {
- var testLibrary = {
- constructor: function() {
- console.log('test');
- }
- }
- window.testLibrary = testLibrary;
- return testLibrary.constructor;
- })();
- testLibrary(); // I want testLibrary.constructor to be called when I do this.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement