diff --git a/core/files.js b/core/files.js index a9b56521..383f41e3 100644 --- a/core/files.js +++ b/core/files.js @@ -31,7 +31,7 @@ var files = { // Backbone.js 'resources/backbone.js/0.9.10/backbone-min.jsm': true, - 'resources/backbone.js/1.2.3/backbone-min.jsm': true, + 'resources/backbone.js/1.4.0/backbone-min.jsm': true, // Bootstrap.js 'resources/bootstrap.js/3.3.7/bootstrap.min.js': true, diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index f3c9d9e5..f2356c7a 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -279,84 +279,57 @@ helpers.setLastVersion = function (type) { if (type.includes('/angularjs/1.')) { version = '1.7.9'; - } - else if (type.includes('/backbone.js/0.')) { + } else if (type.includes('/backbone.js/0.')) { version = '0.9.10'; - } - else if (type.includes('/backbone.js/1.')) { - version = '1.3.3'; - } - else if (type.includes('/bootstrap.js/3.')) { + } else if (type.includes('/backbone.js/1.')) { + version = '1.4.0'; + } else if (type.includes('/bootstrap.js/3.')) { version = '3.3.7'; - } - else if (type.includes('/bootstrap.js/4.')) { + } else if (type.includes('/bootstrap.js/4.')) { version = '4.4.1'; - } - else if (type.includes('/bootstrap.css/3.')) { + } else if (type.includes('/bootstrap.css/3.')) { version = '3.3.7'; - } - else if (type.includes('/bootstrap.css/4.')) { + } else if (type.includes('/bootstrap.css/4.')) { version = '4.4.1'; - } - else if (type.includes('/bootstrap-slider/10.')) { + } else if (type.includes('/bootstrap-slider/10.')) { version = '10.6.2'; - } - else if (type.includes('/dojo/1.')) { + } else if (type.includes('/dojo/1.')) { version = '1.10.4'; - } - else if (type.includes('/ember.js/1.')) { + } else if (type.includes('/ember.js/1.')) { version = '1.5.1'; - } - else if (type.includes('/ember.js/2.')) { + } else if (type.includes('/ember.js/2.')) { version = '2.1.0'; - } - else if (type.includes('/ext-core/3.')) { + } else if (type.includes('/ext-core/3.')) { version = '3.1.0'; - } - else if (type.includes('/fontawesome/4.')) { + } else if (type.includes('/fontawesome/4.')) { version = '4.7.0'; - } - else if (type.includes('/fontawesome/5.')) { + } else if (type.includes('/fontawesome/5.')) { version = '5.7.2'; - } - else if (type.includes('/jquery/1.')) { + } else if (type.includes('/jquery/1.')) { version = '1.12.4'; - } - else if (type.includes('/jquery/2.')) { + } else if (type.includes('/jquery/2.')) { version = '2.2.4'; - } - else if (type.includes('/jquery/3.')) { + } else if (type.includes('/jquery/3.')) { version = '3.4.1'; - } - else if (type.includes('/jqueryui/1.')) { + } else if (type.includes('/jqueryui/1.')) { version = '1.11.4'; - } - else if (type.includes('/modernizr/2.')) { + } else if (type.includes('/modernizr/2.')) { version = '2.8.3'; - } - else if (type.includes('/moment.js/2.')) { + } else if (type.includes('/moment.js/2.')) { version = '2.24.0'; - } - else if (type.includes('/mootools/1.')) { + } else if (type.includes('/mootools/1.')) { version = '1.5.1'; - } - else if (type.includes('/prototype/1.')) { + } else if (type.includes('/prototype/1.')) { version = '1.7.3.0'; - } - else if (type.includes('/scriptaculous/1.')) { + } else if (type.includes('/scriptaculous/1.')) { version = '1.9.0'; - } - else if (type.includes('/swfobject/2.')) { + } else if (type.includes('/swfobject/2.')) { version = '2.2'; - } - else if (type.includes('/underscore.js/1.')) { + } else if (type.includes('/underscore.js/1.')) { version = '1.9.1'; - } - else if (type.includes('/webfont/1.')) { + } else if (type.includes('/webfont/1.')) { version = '1.5.18'; } return version; - - }; diff --git a/pages/updates/updates.html b/pages/updates/updates.html index d76cf39d..d96b5f7c 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -28,6 +28,7 @@
  • Added: bootstrap-slider (v10.6.2)
  • Size reduced: For each request the latest framework (depends on major release) is selected
  • Updated: cdn.jsdelivr.net (UNPKG)
  • +
  • Updated: Backbone.js (v1.4.0)
  • Please update your uBlock/uMatrix rules diff --git a/resources/backbone.js/1.3.3/backbone-min.jsm b/resources/backbone.js/1.3.3/backbone-min.jsm deleted file mode 100644 index 19b8c906..00000000 --- a/resources/backbone.js/1.3.3/backbone-min.jsm +++ /dev/null @@ -1 +0,0 @@ -(function(t){var e=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,n){e.Backbone=t(e,n,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore"),r;try{r=require("jquery")}catch(n){}t(e,exports,i,r)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,r){var n=t.Backbone;var s=Array.prototype.slice;e.VERSION="1.3.3";e.$=r;e.noConflict=function(){t.Backbone=n;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=function(t,e,r){switch(t){case 1:return function(){return i[e](this[r])};case 2:return function(t){return i[e](this[r],t)};case 3:return function(t,n){return i[e](this[r],o(t,this),n)};case 4:return function(t,n,s){return i[e](this[r],o(t,this),n,s)};default:return function(){var t=s.call(arguments);t.unshift(this[r]);return i[e].apply(i,t)}}};var h=function(t,e,r){i.each(e,function(e,n){if(i[n])t.prototype[n]=a(e,n,r)})};var o=function(t,e){if(i.isFunction(t))return t;if(i.isObject(t)&&!e._isModel(t))return l(t);if(i.isString(t))return function(e){return e.get(t)};return t};var l=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}};var u=e.Events={};var c=/\s+/;var f=function(t,e,r,n,s){var a=0,h;if(r&&typeof r==="object"){if(n!==void 0&&"context"in s&&s.context===void 0)s.context=n;for(h=i.keys(r);athis.length)n=this.length;if(n<0)n+=this.length+1;var s=[];var a=[];var h=[];var o=[];var l={};var u=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&n==null&&e.sort!==false;var g=i.isString(this.comparator)?this.comparator:null;var p,m;for(m=0;m7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=("/"+this.root+"/").replace(O,"/");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";this.location.replace(e+"#"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe");this.iframe.src="javascript:0";this.iframe.style.display="none";this.iframe.tabIndex=-1;var r=document.body;var n=r.insertBefore(this.iframe,r.firstChild).contentWindow;n.document.open();n.document.close();n.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState){s("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s("hashchange",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};if(this._usePushState){t("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t("hashchange",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||"");var i=this.root;if(t===""||t.charAt(0)==="?"){i=i.slice(0,-1)||"/"}var r=i+t;t=this.decodeFragment(t.replace(U,""));if(this.fragment===t)return;this.fragment=t;if(this._usePushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,r)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;if(!e.replace){n.document.open();n.document.close()}this._updateHash(n.location,t,e.replace)}}else{return this.location.assign(r)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});e.history=new N;var q=function(t,e){var r=this;var n;if(t&&i.has(t,"constructor")){n=t.constructor}else{n=function(){return r.apply(this,arguments)}}i.extend(n,r,e);n.prototype=i.create(r.prototype,t);n.prototype.constructor=n;n.__super__=r.prototype;return n};y.extend=x.extend=$.extend=k.extend=N.extend=q;var F=function(){throw new Error('A "url" property or function must be specified')};var B=function(t,e){var i=e.error;e.error=function(r){if(i)i.call(e.context,t,r,e);t.trigger("error",t,r,e)}};return e}); diff --git a/resources/backbone.js/1.4.0/backbone-min.jsm b/resources/backbone.js/1.4.0/backbone-min.jsm new file mode 100644 index 00000000..c8c33e0d --- /dev/null +++ b/resources/backbone.js/1.4.0/backbone-min.jsm @@ -0,0 +1,2 @@ +(function(t){var e=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,n,r){e.Backbone=t(e,r,i,n)})}else if(typeof exports!=="undefined"){var i=require("underscore"),n;try{n=require("jquery")}catch(r){}t(e,exports,i,n)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,n){var r=t.Backbone;var s=Array.prototype.slice;e.VERSION="1.4.0";e.$=n;e.noConflict=function(){t.Backbone=r;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=e.Events={};var o=/\s+/;var h;var u=function(t,e,n,r,s){var a=0,h;if(n&&typeof n==="object"){if(r!==void 0&&"context"in s&&s.context===void 0)s.context=r;for(h=i.keys(n);athis.length)r=this.length;if(r<0)r+=this.length+1;var s=[];var a=[];var o=[];var h=[];var u={};var l=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&r==null&&e.sort!==false;var p=i.isString(this.comparator)?this.comparator:null;var g,m;for(m=0;m7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=("/"+this.root+"/").replace(L,"/");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";this.location.replace(e+"#"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe");this.iframe.src="javascript:0";this.iframe.style.display="none";this.iframe.tabIndex=-1;var n=document.body;var r=n.insertBefore(this.iframe,n.firstChild).contentWindow;r.document.open();r.document.close();r.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState){s("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s("hashchange",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};if(this._usePushState){t("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t("hashchange",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);B.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!B.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||"");var i=this.root;if(t===""||t.charAt(0)==="?"){i=i.slice(0,-1)||"/"}var n=i+t;t=t.replace(W,"");var r=this.decodeFragment(t);if(this.fragment===r)return;this.fragment=r;if(this._usePushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,n)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var s=this.iframe.contentWindow;if(!e.replace){s.document.open();s.document.close()}this._updateHash(s.location,t,e.replace)}}else{return this.location.assign(n)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else{t.hash="#"+e}}});e.history=new B;var D=function(t,e){var n=this;var r;if(t&&i.has(t,"constructor")){r=t.constructor}else{r=function(){return n.apply(this,arguments)}}i.extend(r,n,e);r.prototype=i.create(n.prototype,t);r.prototype.constructor=r;r.__super__=n.prototype;return r};m.extend=_.extend=O.extend=T.extend=B.extend=D;var V=function(){throw new Error('A "url" property or function must be specified')};var G=function(t,e){var i=e.error;e.error=function(n){if(i)i.call(e.context,t,n,e);t.trigger("error",t,n,e)}};return e}); +//# sourceMappingURL=backbone-min.map \ No newline at end of file