This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery.loadScript = function (url, arg1, arg2) { | |
| var cache = false, callback = null; | |
| //arg1 and arg2 can be interchangable as either the callback function or the cache bool | |
| if ($.isFunction(arg1)){ | |
| callback = arg1; | |
| cache = arg2 || cache; | |
| } else { | |
| cache = arg1 || cache; | |
| callback = arg2 || callback; | |
| } |