()
| 13 | |
| 14 | var blockstrap_loader; |
| 15 | var blockstrap_core = function() |
| 16 | { |
| 17 | /* |
| 18 | |
| 19 | DONE LIKE THIS SO JQUERY CAN BE INJECTED FIRST IF REQUIRED |
| 20 | |
| 21 | */ |
| 22 | ;(function($, window, document, undefined) |
| 23 | { |
| 24 | // GLOBAL VARS |
| 25 | var $this = this; |
| 26 | var init_bs = false; |
| 27 | var resize_time = new Date(); |
| 28 | var resize_timeout = false; |
| 29 | var test_results = ''; |
| 30 | var bs_hooks = {}; |
| 31 | var bs_vars = {}; |
| 32 | var full_results = {}; |
| 33 | |
| 34 | // PREVENT DUPLICATES |
| 35 | $.fn.blockstrap = function(options) |
| 36 | { |
| 37 | this.each(function() |
| 38 | { |
| 39 | if(!$.data(this, "plugin_blockstrap")) |
| 40 | { |
| 41 | $.data(this, "plugin_blockstrap", new plugin(this, options)); |
| 42 | } |
| 43 | }); |
| 44 | return this; |
| 45 | }; |
| 46 | |
| 47 | $.fn.blockstrap.plugins = {}; |
| 48 | $.fn.blockstrap.patches = {}; |
| 49 | |
| 50 | // IN-ESCAPABLE INCLUDES |
| 51 | $.fn.blockstrap.defaults = function() |
| 52 | { |
| 53 | if(typeof $.fn.blockstrap.settings.install === 'undefined') |
| 54 | { |
| 55 | $.fn.blockstrap.settings.install = true; |
| 56 | } |
| 57 | if($.fn.blockstrap.settings.install === false) |
| 58 | { |
| 59 | $.fn.blockstrap.settings.cache = false; |
| 60 | } |
| 61 | if($.fn.blockstrap.settings.cascade === true && $.fn.blockstrap.settings.install != false) |
| 62 | { |
| 63 | var defaults = { |
| 64 | dependencies: [ |
| 65 | 'crypto', |
| 66 | 'sha3', |
| 67 | 'mustache' |
| 68 | ], |
| 69 | modules: [ |
| 70 | 'templates', |
| 71 | 'theme' |
| 72 | ] |
no test coverage detected