Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * To Allow relative template paths, we wrap the component in a function that receives the path to the
- * currently executing script (minus the actual filename)
- */
- (function (currentScriptPath) {
- 'use strict';
- })(
- (function () {
- var scripts = document.getElementsByTagName( 'script' );
- var currentScriptPath = scripts[scripts.length - 1].src;
- return currentScriptPath.substring(0, currentScriptPath.lastIndexOf('/'));
- })()
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement