diff --git a/client/README.md b/client/README.md index c71fb5e90..10f8a0a1a 100644 --- a/client/README.md +++ b/client/README.md @@ -119,7 +119,6 @@ Options: |`disableFailoverRendering`|`boolean`|no|Disables the automatic failover rendering in case the registry times-out (in case configuration.registries.clientRendering contains a valid value.) Default false| |`forwardAcceptLanguageToClient`|`boolean`|no|When not specified in config, defaults to false. When true, when doing client-side requests (normal or failover) appends a custom parameter to the browser's component hrefs so that the framework will ignore the browser's Accept-Language in favour of the query-string value| |`headers`|`object`|no|An object containing all the headers that must be forwarded to the component| -|`ie8`|`boolean`|no|Default false, if true puts in place the necessary polyfills to make all the stuff work with ie8| |`parameters`|`object`|no|An object containing the parameters for component's request| |`registries`|`object`|no|The registries' endpoints (overrides the parameters defined during instantiation)| |`registries.serverRendering`|`string`|no|The baseUrl for server-side rendering requests (overrides the parameter defined during instantiation)| diff --git a/client/src/html-renderer.js b/client/src/html-renderer.js index 6c91c094c..bc46854a4 100644 --- a/client/src/html-renderer.js +++ b/client/src/html-renderer.js @@ -18,11 +18,6 @@ module.exports = { return data.html; }, unrenderedComponent: function(href, options){ - if(!href){ return ''; } - - var youCareAboutIe8 = !!options && !!options.ie8, - template = templates['componentUnrenderedTag' + (youCareAboutIe8 ? 'Ie8' : '')]; - - return format(template, href); + return href ? format(templates.componentUnrenderedTag, href) : ''; } }; \ No newline at end of file diff --git a/client/src/oc-client.min.js b/client/src/oc-client.min.js index 75fa3042e..41506e53c 100644 --- a/client/src/oc-client.min.js +++ b/client/src/oc-client.min.js @@ -1,3 +1,3 @@ /*! OpenComponents client v0.33.31 | (c) 2015-2017 OpenTable, Inc. | https://github.com/opentable/oc/tree/master/src/components/oc-client/LICENSES */ -!function(e,n){"use strict";function t(){}function r(e,n){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var t=0,r=e.length;t-1?e+"&"+t:e+"?"+t}return e};oc.require=function(e,n,r){"function"==typeof n&&(r=n,n=e,e=void 0),"string"==typeof e&&(e=[e]);var a=function(){var n=o;if("undefined"==typeof e)return!0;for(var t=0;t':"<"+p+' href="'+t+'">"},oc.events={},oc.ready=function(e){if($)return e();if(A)oc.cmd.push(e);else{A=!0;var n=function(e,n){!O&&!S||e.IE_POLYFILL_LOADED?n():oc.require(c,n)},t=function(){$=!0,A=!1,oc.events=function(){var e=oc.$({});return{fire:function(n,t){return e.trigger(n,t)},on:function(n,t){return e.on(n,t||C)},reset:function(){return e.off()}}}(),e(),oc.events.fire("oc:ready",oc),oc.status="ready";for(var n=0;n'+L+""),oc.renderByHref(e.attr("href"),function(t,r){return t||!r?(e.html(""),I.error(t),n()):void B(e,r,n)}))})},oc.renderByHref=function(e,n,t){var r=t,o=n;"function"==typeof n&&(r=n,o=0),oc.ready(function(){if(""===e)return r(b.replace("{1}",v));var n=e;f&&(n=U(n,{__oc_Retry:o})),oc.$.ajax({url:n,headers:{Accept:"application/vnd.oc.unrendered+json"},contentType:"text/plain",crossDomain:!0,async:!0,success:function(e){if("unrendered"===e.renderMode)oc.render(e.template,e.data,function(n,t){return n?r(b.replace("{0}",e.href).replace("{1}",n)):(I.info(q.replace("{0}",e.template.src)),void r(null,{html:t,key:e.template.key,version:e.version,name:e.name}))});else if("rendered"===e.renderMode){if(I.info(q.replace("{0}",e.href)),0===e.html.indexOf("<"+p)){var n=e.html.slice(e.html.indexOf(">")+1),t=n.slice(0,n.lastIndexOf("<"));e.html=t}r(null,{html:e.html,version:e.version,name:e.name})}},error:function(){I.error(T),N(e,function(n){oc.renderByHref(e,n,r)},function(){r(g.replace("{0}",e))})}})})},oc.renderUnloadedComponents=function(){oc.ready(function(){var e=O?"div[data-oc-component=true]":p,n=oc.$(e+"[data-rendered!=true]"),t=n.length,r=function(e){t--,t||oc.renderUnloadedComponents()};if(t>0)for(var o=0;o');var r=oc.$(p,e);oc.renderNestedComponent(r,function(){t(r)})}})},oc.ready(oc.renderUnloadedComponents),e=oc}),oc.clientVersion="0.33.31"; +!function(e,n){"use strict";function t(){}function r(e,n){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var t=0,r=e.length;t-1?e+"&"+t:e+"?"+t}return e};oc.require=function(e,n,r){"function"==typeof n&&(r=n,n=e,e=void 0),"string"==typeof e&&(e=[e]);var a=function(){var n=o;if("undefined"==typeof e)return!0;for(var t=0;t"},oc.events={},oc.ready=function(e){if(M)return e();if(S)oc.cmd.push(e);else{S=!0;var n=function(e,n){$&&!e.IE_POLYFILL_LOADED?oc.require(c,n):n()},t=function(){M=!0,S=!1,oc.events=function(){var e=oc.$({});return{fire:function(n,t){return e.trigger(n,t)},on:function(n,t){return e.on(n,t||C)},reset:function(){return e.off()}}}(),e(),oc.events.fire("oc:ready",oc),oc.status="ready";for(var n=0;n'+L+""),oc.renderByHref(e.attr("href"),function(t,r){return t||!r?(e.html(""),_.error(t),n()):void B(e,r,n)}))})},oc.renderByHref=function(e,n,t){var r=t,o=n;"function"==typeof n&&(r=n,o=0),oc.ready(function(){if(""===e)return r(b.replace("{1}",v));var n=e;f&&(n=U(n,{__oc_Retry:o})),oc.$.ajax({url:n,headers:{Accept:"application/vnd.oc.unrendered+json"},contentType:"text/plain",crossDomain:!0,async:!0,success:function(e){if("unrendered"===e.renderMode)oc.render(e.template,e.data,function(n,t){return n?r(b.replace("{0}",e.href).replace("{1}",n)):(_.info(q.replace("{0}",e.template.src)),void r(null,{html:t,key:e.template.key,version:e.version,name:e.name}))});else if("rendered"===e.renderMode){if(_.info(q.replace("{0}",e.href)),0===e.html.indexOf("<"+p)){var n=e.html.slice(e.html.indexOf(">")+1),t=n.slice(0,n.lastIndexOf("<"));e.html=t}r(null,{html:e.html,version:e.version,name:e.name})}},error:function(){_.error(T),N(e,function(n){oc.renderByHref(e,n,r)},function(){r(g.replace("{0}",e))})}})})},oc.renderUnloadedComponents=function(){oc.ready(function(){var e=oc.$(p+"[data-rendered!=true]"),n=e.length,t=function(e){n--,n||oc.renderUnloadedComponents()};if(n>0)for(var r=0;r');var r=oc.$(p,e);oc.renderNestedComponent(r,function(){t(r)})}})},oc.ready(oc.renderUnloadedComponents),e=oc}),oc.clientVersion="0.33.31"; //# sourceMappingURL=oc-client.min.map \ No newline at end of file diff --git a/client/src/templates.js b/client/src/templates.js index 19e5f87b4..edb56f5a8 100644 --- a/client/src/templates.js +++ b/client/src/templates.js @@ -8,11 +8,6 @@ module.exports = { componentUnrenderedTag: '', - componentUnrenderedTagIe8: '', - renderInfo: '' }; \ No newline at end of file diff --git a/src/cli/domain/package-static-files.js b/src/cli/domain/package-static-files.js index b161fc3b8..f59430dfb 100644 --- a/src/cli/domain/package-static-files.js +++ b/src/cli/domain/package-static-files.js @@ -16,8 +16,7 @@ var minifyFile = function(fileType, fileContent, ocOptions){ if(fileType === '.js'){ return uglifyJs.minify(fileContent, { fromString: true }).code; } else if(fileType === '.css'){ - var options = (ocOptions.ie8css === true) ? { compatibility:'ie8' } : null; - return new CleanCss(options).minify(fileContent).styles; + return new CleanCss().minify(fileContent).styles; } return fileContent; diff --git a/src/components/oc-client/_package/package.json b/src/components/oc-client/_package/package.json index e234ac9d7..fcc7fb374 100644 --- a/src/components/oc-client/_package/package.json +++ b/src/components/oc-client/_package/package.json @@ -26,6 +26,6 @@ }, "version": "0.33.31", "packaged": true, - "date": 1484679018714 + "date": 1484742948044 } } diff --git a/src/components/oc-client/_package/src/oc-client.js b/src/components/oc-client/_package/src/oc-client.js index 4bcebeeac..fbe37fed7 100644 --- a/src/components/oc-client/_package/src/oc-client.js +++ b/src/components/oc-client/_package/src/oc-client.js @@ -31,7 +31,7 @@ var oc = oc || {}; // Constants var CDNJS_BASEURL = 'https://cdnjs.cloudflare.com/ajax/libs/', - IE89_AJAX_POLYFILL_URL = CDNJS_BASEURL + 'jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js', + IE9_AJAX_POLYFILL_URL = CDNJS_BASEURL + 'jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js', HANDLEBARS_URL = CDNJS_BASEURL + 'handlebars.js/4.0.5/handlebars.runtime.min.js', JADE_URL = CDNJS_BASEURL + 'jade/1.11.0/runtime.min.js', JQUERY_URL = CDNJS_BASEURL + 'jquery/1.11.2/jquery.min.js', @@ -57,7 +57,6 @@ var oc = oc || {}; headScripts = [], noop = function(){}, nav = $window.navigator.userAgent, - is8 = !!(nav.match(/MSIE 8/)), is9 = !!(nav.match(/MSIE 9/)), initialised = false, initialising = false, @@ -216,7 +215,7 @@ var oc = oc || {}; href = href.slice(0, -1); } - return is8 ? '
' : '<' + OC_TAG + ' href="' + href + '">'; + return '<' + OC_TAG + ' href="' + href + '">'; }; oc.events = {}; @@ -232,8 +231,8 @@ var oc = oc || {}; initialising = true; var requirePolyfills = function($, cb){ - if((is8 || is9) && !$.IE_POLYFILL_LOADED){ - oc.require(IE89_AJAX_POLYFILL_URL, cb); + if(is9 && !$.IE_POLYFILL_LOADED){ + oc.require(IE9_AJAX_POLYFILL_URL, cb); } else { cb(); } @@ -422,8 +421,7 @@ var oc = oc || {}; oc.renderUnloadedComponents = function(){ oc.ready(function(){ - var selector = (is8 ? 'div[data-oc-component=true]' : OC_TAG), - $unloadedComponents = oc.$(selector + '[data-rendered!=true]'), + var $unloadedComponents = oc.$(OC_TAG + '[data-rendered!=true]'), toDo = $unloadedComponents.length; var done = function(cb){ diff --git a/src/components/oc-client/_package/src/oc-client.min.js b/src/components/oc-client/_package/src/oc-client.min.js index 75fa3042e..41506e53c 100644 --- a/src/components/oc-client/_package/src/oc-client.min.js +++ b/src/components/oc-client/_package/src/oc-client.min.js @@ -1,3 +1,3 @@ /*! OpenComponents client v0.33.31 | (c) 2015-2017 OpenTable, Inc. | https://github.com/opentable/oc/tree/master/src/components/oc-client/LICENSES */ -!function(e,n){"use strict";function t(){}function r(e,n){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var t=0,r=e.length;t-1?e+"&"+t:e+"?"+t}return e};oc.require=function(e,n,r){"function"==typeof n&&(r=n,n=e,e=void 0),"string"==typeof e&&(e=[e]);var a=function(){var n=o;if("undefined"==typeof e)return!0;for(var t=0;t':"<"+p+' href="'+t+'">"},oc.events={},oc.ready=function(e){if($)return e();if(A)oc.cmd.push(e);else{A=!0;var n=function(e,n){!O&&!S||e.IE_POLYFILL_LOADED?n():oc.require(c,n)},t=function(){$=!0,A=!1,oc.events=function(){var e=oc.$({});return{fire:function(n,t){return e.trigger(n,t)},on:function(n,t){return e.on(n,t||C)},reset:function(){return e.off()}}}(),e(),oc.events.fire("oc:ready",oc),oc.status="ready";for(var n=0;n'+L+""),oc.renderByHref(e.attr("href"),function(t,r){return t||!r?(e.html(""),I.error(t),n()):void B(e,r,n)}))})},oc.renderByHref=function(e,n,t){var r=t,o=n;"function"==typeof n&&(r=n,o=0),oc.ready(function(){if(""===e)return r(b.replace("{1}",v));var n=e;f&&(n=U(n,{__oc_Retry:o})),oc.$.ajax({url:n,headers:{Accept:"application/vnd.oc.unrendered+json"},contentType:"text/plain",crossDomain:!0,async:!0,success:function(e){if("unrendered"===e.renderMode)oc.render(e.template,e.data,function(n,t){return n?r(b.replace("{0}",e.href).replace("{1}",n)):(I.info(q.replace("{0}",e.template.src)),void r(null,{html:t,key:e.template.key,version:e.version,name:e.name}))});else if("rendered"===e.renderMode){if(I.info(q.replace("{0}",e.href)),0===e.html.indexOf("<"+p)){var n=e.html.slice(e.html.indexOf(">")+1),t=n.slice(0,n.lastIndexOf("<"));e.html=t}r(null,{html:e.html,version:e.version,name:e.name})}},error:function(){I.error(T),N(e,function(n){oc.renderByHref(e,n,r)},function(){r(g.replace("{0}",e))})}})})},oc.renderUnloadedComponents=function(){oc.ready(function(){var e=O?"div[data-oc-component=true]":p,n=oc.$(e+"[data-rendered!=true]"),t=n.length,r=function(e){t--,t||oc.renderUnloadedComponents()};if(t>0)for(var o=0;o');var r=oc.$(p,e);oc.renderNestedComponent(r,function(){t(r)})}})},oc.ready(oc.renderUnloadedComponents),e=oc}),oc.clientVersion="0.33.31"; +!function(e,n){"use strict";function t(){}function r(e,n){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var t=0,r=e.length;t-1?e+"&"+t:e+"?"+t}return e};oc.require=function(e,n,r){"function"==typeof n&&(r=n,n=e,e=void 0),"string"==typeof e&&(e=[e]);var a=function(){var n=o;if("undefined"==typeof e)return!0;for(var t=0;t"},oc.events={},oc.ready=function(e){if(M)return e();if(S)oc.cmd.push(e);else{S=!0;var n=function(e,n){$&&!e.IE_POLYFILL_LOADED?oc.require(c,n):n()},t=function(){M=!0,S=!1,oc.events=function(){var e=oc.$({});return{fire:function(n,t){return e.trigger(n,t)},on:function(n,t){return e.on(n,t||C)},reset:function(){return e.off()}}}(),e(),oc.events.fire("oc:ready",oc),oc.status="ready";for(var n=0;n'+L+""),oc.renderByHref(e.attr("href"),function(t,r){return t||!r?(e.html(""),_.error(t),n()):void B(e,r,n)}))})},oc.renderByHref=function(e,n,t){var r=t,o=n;"function"==typeof n&&(r=n,o=0),oc.ready(function(){if(""===e)return r(b.replace("{1}",v));var n=e;f&&(n=U(n,{__oc_Retry:o})),oc.$.ajax({url:n,headers:{Accept:"application/vnd.oc.unrendered+json"},contentType:"text/plain",crossDomain:!0,async:!0,success:function(e){if("unrendered"===e.renderMode)oc.render(e.template,e.data,function(n,t){return n?r(b.replace("{0}",e.href).replace("{1}",n)):(_.info(q.replace("{0}",e.template.src)),void r(null,{html:t,key:e.template.key,version:e.version,name:e.name}))});else if("rendered"===e.renderMode){if(_.info(q.replace("{0}",e.href)),0===e.html.indexOf("<"+p)){var n=e.html.slice(e.html.indexOf(">")+1),t=n.slice(0,n.lastIndexOf("<"));e.html=t}r(null,{html:e.html,version:e.version,name:e.name})}},error:function(){_.error(T),N(e,function(n){oc.renderByHref(e,n,r)},function(){r(g.replace("{0}",e))})}})})},oc.renderUnloadedComponents=function(){oc.ready(function(){var e=oc.$(p+"[data-rendered!=true]"),n=e.length,t=function(e){n--,n||oc.renderUnloadedComponents()};if(n>0)for(var r=0;r');var r=oc.$(p,e);oc.renderNestedComponent(r,function(){t(r)})}})},oc.ready(oc.renderUnloadedComponents),e=oc}),oc.clientVersion="0.33.31"; //# sourceMappingURL=oc-client.min.map \ No newline at end of file diff --git a/src/components/oc-client/_package/src/oc-client.min.map b/src/components/oc-client/_package/src/oc-client.min.map index bd2dd93a5..b22aede7d 100644 --- a/src/components/oc-client/_package/src/oc-client.min.map +++ b/src/components/oc-client/_package/src/oc-client.min.map @@ -1 +1 @@ -{"version":3,"sources":["?"],"names":["win","undefined","noop","each","arr","callback","slice","call","i","l","length","is","type","obj","clas","Object","prototype","toString","isFunction","item","isArray","toLabel","url","items","split","name","indexOf","substring","one","_done","conditional","test","success","failure","passed","push","api","load","apply","getAsset","asset","label","existing","assets","allLoaded","hasOwnProperty","state","LOADED","onPreload","PRELOADED","onpreload","afterPreload","preLoad","PRELOADING","loadAsset","apiLoadHack","args","arguments","rest","next","apiLoadAsync","LOADING","ready","handlers","fn","isDomReady","ALL","getExtension","toLowerCase","error","event","ele","onload","onreadystatechange","onerror","process","readyState","doc","documentMode","clearTimeout","errorTimeout","cssTimeout","isCssLoaded","cssRetries","styleSheets","href","setTimeout","ext","createElement","rel","src","async","defer","head","getElementsByTagName","insertBefore","lastChild","init","dataMain","getAttribute","key","domWaiters","domReady","body","readyTimeout","domContentLoaded","addEventListener","removeEventListener","detachEvent","document","isAsync","documentElement","style","opera","headVar","head_conf","attachEvent","top","frameElement","e","doScroll","doScrollCheck","js","feature","window","oc","root","factory","define","amd","exports","$","nodeName","require","this","$document","$window","conf","cmd","renderedComponents","status","CDNJS_BASEURL","IE89_AJAX_POLYFILL_URL","HANDLEBARS_URL","JADE_URL","JQUERY_URL","RETRY_INTERVAL","retryInterval","RETRY_LIMIT","retryLimit","RETRY_SEND_NUMBER","retrySendNumber","POLLING_INTERVAL","pollingInterval","OC_TAG","tag","MESSAGES_ERRORS_BASEURL_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_HREF_MISSING","MESSAGES_ERRORS_NAME_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_RETRY_FAILED","replace","MESSAGES_ERRORS_LOADING_COMPILED_VIEW","MESSAGES_ERRORS_RENDERING","MESSAGES_ERRORS_RETRIEVING","MESSAGES_ERRORS_VIEW_ENGINE_NOT_SUPPORTED","MESSAGES_LOADING_COMPONENT","loadingMessage","MESSAGES_RENDERED","MESSAGES_RETRIEVING","debug","nav","navigator","userAgent","is8","match","is9","initialised","initialising","retries","isBool","a","logger","msg","console","log","info","retry","component","cb","failedRetryCb","addParametersToHref","parameters","param","nameSpace","needsToBeLoaded","base","getObj","processHtml","$component","data","id","Math","floor","random","html","attr","version","events","fire","build","options","baseUrl","withFinalSlash","s","parameter","requirePolyfills","IE_POLYFILL_LOADED","done","trigger","on","reset","off","f","wasDollarThereAlready","jQuery","noConflict","render","compiledViewInfo","model","compiledView","linked","Handlebars","template","renderNestedComponent","dataRendering","dataRendered","isRendering","isRendered","renderByHref","err","retryNumberOrCallback","retryNumber","hrefWithCount","__oc_Retry","ajax","headers","Accept","contentType","crossDomain","apiResponse","renderMode","innerHtmlPlusEnding","innerHtml","lastIndexOf","requestNumber","renderUnloadedComponents","selector","$unloadedComponents","toDo","placeholder","newComponent","clientVersion"],"mappings":"CASC,SAAUA,EAAKC,GACZ,YAwBA,SAASC,MAIT,QAASC,GAAKC,EAAKC,GACf,GAAKD,EAAL,CAKmB,gBAARA,KACPA,KAASE,MAAMC,KAAKH,GAIxB,KAAK,GAAII,GAAI,EAAGC,EAAIL,EAAIM,OAAQF,EAAIC,EAAGD,IACnCH,EAASE,KAAKH,EAAKA,EAAII,GAAIA,IAMnC,QAASG,GAAGC,EAAMC,GACd,GAAIC,GAAOC,OAAOC,UAAUC,SAASV,KAAKM,GAAKP,MAAM,KACrD,OAAOO,KAAQZ,GAAqB,OAARY,GAAgBC,IAASF,EAGzD,QAASM,GAAWC,GAChB,MAAOR,GAAG,WAAYQ,GAG1B,QAASC,GAAQD,GACb,MAAOR,GAAG,QAASQ,GAGvB,QAASE,GAAQC,GAEb,GAAIC,GAAQD,EAAIE,MAAM,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8BAAgCnB,EAClDuG,EAAsBpI,GAAGM,EAAE6H,EAAW,yBACtCE,EAAOD,EAAoBvP,OAE3B+M,EAAO,SAAS7B,GAClBsE,IACIA,GACFrI,GAAGkI,2BAIP,IAAGG,EAAO,EACR,IAAI,GAAI1P,GAAI,EAAGA,EAAIyP,EAAoBvP,OAAQF,IAC7CqH,GAAG4G,sBAAsB5G,GAAGM,EAAE8H,EAAoBzP,IAAKiN,MAM/D5F,GAAGxF,KAAO,SAAS8N,EAAa9K,EAAMhF,GACpCwH,GAAG/D,MAAM,WAKP,GAJwB,kBAAf,KACPzD,EAAWH,GAGV2H,GAAGM,EAAEgI,GAAa,CACnBtI,GAAGM,EAAEgI,GAAavD,KAAK,IAAMlD,EAAS,UAAYrE,EAAO,OACzD,IAAI+K,GAAevI,GAAGM,EAAEuB,EAAQyG,EAChCtI,IAAG4G,sBAAsB2B,EAAc,WACrC/P,EAAS+P,SAOjBvI,GAAG/D,MAAM+D,GAAGkI,0BAGZ7H,EAAUL,KAIZA,GAAGwI,cAAc","file":"oc-client.min.map"} \ No newline at end of file +{"version":3,"sources":["?"],"names":["win","undefined","noop","each","arr","callback","slice","call","i","l","length","is","type","obj","clas","Object","prototype","toString","isFunction","item","isArray","toLabel","url","items","split","name","indexOf","substring","one","_done","conditional","test","success","failure","passed","push","api","load","apply","getAsset","asset","label","existing","assets","allLoaded","hasOwnProperty","state","LOADED","onPreload","PRELOADED","onpreload","afterPreload","preLoad","PRELOADING","loadAsset","apiLoadHack","args","arguments","rest","next","apiLoadAsync","LOADING","ready","handlers","fn","isDomReady","ALL","getExtension","toLowerCase","error","event","ele","onload","onreadystatechange","onerror","process","readyState","doc","documentMode","clearTimeout","errorTimeout","cssTimeout","isCssLoaded","cssRetries","styleSheets","href","setTimeout","ext","createElement","rel","src","async","defer","head","getElementsByTagName","insertBefore","lastChild","init","dataMain","getAttribute","key","domWaiters","domReady","body","readyTimeout","domContentLoaded","addEventListener","removeEventListener","detachEvent","document","isAsync","documentElement","style","opera","headVar","head_conf","attachEvent","top","frameElement","e","doScroll","doScrollCheck","js","feature","window","oc","root","factory","define","amd","exports","$","nodeName","require","this","$document","$window","conf","cmd","renderedComponents","status","CDNJS_BASEURL","IE9_AJAX_POLYFILL_URL","HANDLEBARS_URL","JADE_URL","JQUERY_URL","RETRY_INTERVAL","retryInterval","RETRY_LIMIT","retryLimit","RETRY_SEND_NUMBER","retrySendNumber","POLLING_INTERVAL","pollingInterval","OC_TAG","tag","MESSAGES_ERRORS_BASEURL_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_HREF_MISSING","MESSAGES_ERRORS_NAME_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_RETRY_FAILED","replace","MESSAGES_ERRORS_LOADING_COMPILED_VIEW","MESSAGES_ERRORS_RENDERING","MESSAGES_ERRORS_RETRIEVING","MESSAGES_ERRORS_VIEW_ENGINE_NOT_SUPPORTED","MESSAGES_LOADING_COMPONENT","loadingMessage","MESSAGES_RENDERED","MESSAGES_RETRIEVING","debug","nav","navigator","userAgent","is9","match","initialised","initialising","retries","isBool","a","logger","msg","console","log","info","retry","component","cb","failedRetryCb","addParametersToHref","parameters","param","nameSpace","needsToBeLoaded","base","getObj","processHtml","$component","data","id","Math","floor","random","html","attr","version","events","fire","build","options","baseUrl","withFinalSlash","s","parameter","requirePolyfills","IE_POLYFILL_LOADED","done","trigger","on","reset","off","f","wasDollarThereAlready","jQuery","noConflict","render","compiledViewInfo","model","compiledView","linked","Handlebars","template","renderNestedComponent","dataRendering","dataRendered","isRendering","isRendered","renderByHref","err","retryNumberOrCallback","retryNumber","hrefWithCount","__oc_Retry","ajax","headers","Accept","contentType","crossDomain","apiResponse","renderMode","innerHtmlPlusEnding","innerHtml","lastIndexOf","requestNumber","renderUnloadedComponents","$unloadedComponents","toDo","placeholder","newComponent","clientVersion"],"mappings":"CASC,SAAUA,EAAKC,GACZ,YAwBA,SAASC,MAIT,QAASC,GAAKC,EAAKC,GACf,GAAKD,EAAL,CAK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P,EAAoBE,YAAY,KAE7EJ,GAAY7C,KAAOgD,EAErBtP,EAAS,MACPsM,KAAM6C,EAAY7C,KAClBE,QAAS2C,EAAY3C,QACrBpL,KAAM+N,EAAY/N,SAIxB4C,MAAO,WACL+G,EAAO/G,MAAM8F,GACbsB,EAAMpG,EAAM,SAASwK,GACnBhI,GAAGgH,aAAaxJ,EAAMwK,EAAexP,IACpC,WACDA,EAAS0J,EAA6BC,QAAQ,MAAO3E,YAUjEwC,GAAGiI,yBAA2B,WAC5BjI,GAAG/D,MAAM,WACP,GAAIiM,GAAsBlI,GAAGM,EAAEuB,EAAS,yBACpCsG,EAAOD,EAAoBrP,OAE3B8M,EAAO,SAAS7B,GAClBqE,IACIA,GACFnI,GAAGiI,2BAIP,IAAGE,EAAO,EACR,IAAI,GAAIxP,GAAI,EAAGA,EAAIuP,EAAoBrP,OAAQF,IAC7CqH,GAAG2G,sBAAsB3G,GAAGM,EAAE4H,EAAoBvP,IAAKgN,MAM/D3F,GAAGxF,KAAO,SAAS4N,EAAa5K,EAAMhF,GACpCwH,GAAG/D,MAAM,WAKP,GAJwB,kBAAf,KACPzD,EAAWH,GAGV2H,GAAGM,EAAE8H,GAAa,CACnBpI,GAAGM,EAAE8H,GAAatD,KAAK,IAAMjD,EAAS,UAAYrE,EAAO,OACzD,IAAI6K,GAAerI,GAAGM,EAAEuB,EAAQuG,EAChCpI,IAAG2G,sBAAsB0B,EAAc,WACrC7P,EAAS6P,SAOjBrI,GAAG/D,MAAM+D,GAAGiI,0BAGZ5H,EAAUL,KAIZA,GAAGsI,cAAc","file":"oc-client.min.map"} \ No newline at end of file diff --git a/src/components/oc-client/src/oc-client.js b/src/components/oc-client/src/oc-client.js index 4bcebeeac..fbe37fed7 100644 --- a/src/components/oc-client/src/oc-client.js +++ b/src/components/oc-client/src/oc-client.js @@ -31,7 +31,7 @@ var oc = oc || {}; // Constants var CDNJS_BASEURL = 'https://cdnjs.cloudflare.com/ajax/libs/', - IE89_AJAX_POLYFILL_URL = CDNJS_BASEURL + 'jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js', + IE9_AJAX_POLYFILL_URL = CDNJS_BASEURL + 'jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js', HANDLEBARS_URL = CDNJS_BASEURL + 'handlebars.js/4.0.5/handlebars.runtime.min.js', JADE_URL = CDNJS_BASEURL + 'jade/1.11.0/runtime.min.js', JQUERY_URL = CDNJS_BASEURL + 'jquery/1.11.2/jquery.min.js', @@ -57,7 +57,6 @@ var oc = oc || {}; headScripts = [], noop = function(){}, nav = $window.navigator.userAgent, - is8 = !!(nav.match(/MSIE 8/)), is9 = !!(nav.match(/MSIE 9/)), initialised = false, initialising = false, @@ -216,7 +215,7 @@ var oc = oc || {}; href = href.slice(0, -1); } - return is8 ? '
' : '<' + OC_TAG + ' href="' + href + '">'; + return '<' + OC_TAG + ' href="' + href + '">'; }; oc.events = {}; @@ -232,8 +231,8 @@ var oc = oc || {}; initialising = true; var requirePolyfills = function($, cb){ - if((is8 || is9) && !$.IE_POLYFILL_LOADED){ - oc.require(IE89_AJAX_POLYFILL_URL, cb); + if(is9 && !$.IE_POLYFILL_LOADED){ + oc.require(IE9_AJAX_POLYFILL_URL, cb); } else { cb(); } @@ -422,8 +421,7 @@ var oc = oc || {}; oc.renderUnloadedComponents = function(){ oc.ready(function(){ - var selector = (is8 ? 'div[data-oc-component=true]' : OC_TAG), - $unloadedComponents = oc.$(selector + '[data-rendered!=true]'), + var $unloadedComponents = oc.$(OC_TAG + '[data-rendered!=true]'), toDo = $unloadedComponents.length; var done = function(cb){ diff --git a/src/components/oc-client/src/oc-client.min.js b/src/components/oc-client/src/oc-client.min.js index 75fa3042e..41506e53c 100644 --- a/src/components/oc-client/src/oc-client.min.js +++ b/src/components/oc-client/src/oc-client.min.js @@ -1,3 +1,3 @@ /*! OpenComponents client v0.33.31 | (c) 2015-2017 OpenTable, Inc. | https://github.com/opentable/oc/tree/master/src/components/oc-client/LICENSES */ -!function(e,n){"use strict";function t(){}function r(e,n){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var t=0,r=e.length;t-1?e+"&"+t:e+"?"+t}return e};oc.require=function(e,n,r){"function"==typeof n&&(r=n,n=e,e=void 0),"string"==typeof e&&(e=[e]);var a=function(){var n=o;if("undefined"==typeof e)return!0;for(var t=0;t':"<"+p+' href="'+t+'">"},oc.events={},oc.ready=function(e){if($)return e();if(A)oc.cmd.push(e);else{A=!0;var n=function(e,n){!O&&!S||e.IE_POLYFILL_LOADED?n():oc.require(c,n)},t=function(){$=!0,A=!1,oc.events=function(){var e=oc.$({});return{fire:function(n,t){return e.trigger(n,t)},on:function(n,t){return e.on(n,t||C)},reset:function(){return e.off()}}}(),e(),oc.events.fire("oc:ready",oc),oc.status="ready";for(var n=0;n'+L+""),oc.renderByHref(e.attr("href"),function(t,r){return t||!r?(e.html(""),I.error(t),n()):void B(e,r,n)}))})},oc.renderByHref=function(e,n,t){var r=t,o=n;"function"==typeof n&&(r=n,o=0),oc.ready(function(){if(""===e)return r(b.replace("{1}",v));var n=e;f&&(n=U(n,{__oc_Retry:o})),oc.$.ajax({url:n,headers:{Accept:"application/vnd.oc.unrendered+json"},contentType:"text/plain",crossDomain:!0,async:!0,success:function(e){if("unrendered"===e.renderMode)oc.render(e.template,e.data,function(n,t){return n?r(b.replace("{0}",e.href).replace("{1}",n)):(I.info(q.replace("{0}",e.template.src)),void r(null,{html:t,key:e.template.key,version:e.version,name:e.name}))});else if("rendered"===e.renderMode){if(I.info(q.replace("{0}",e.href)),0===e.html.indexOf("<"+p)){var n=e.html.slice(e.html.indexOf(">")+1),t=n.slice(0,n.lastIndexOf("<"));e.html=t}r(null,{html:e.html,version:e.version,name:e.name})}},error:function(){I.error(T),N(e,function(n){oc.renderByHref(e,n,r)},function(){r(g.replace("{0}",e))})}})})},oc.renderUnloadedComponents=function(){oc.ready(function(){var e=O?"div[data-oc-component=true]":p,n=oc.$(e+"[data-rendered!=true]"),t=n.length,r=function(e){t--,t||oc.renderUnloadedComponents()};if(t>0)for(var o=0;o');var r=oc.$(p,e);oc.renderNestedComponent(r,function(){t(r)})}})},oc.ready(oc.renderUnloadedComponents),e=oc}),oc.clientVersion="0.33.31"; +!function(e,n){"use strict";function t(){}function r(e,n){if(e){"object"==typeof e&&(e=[].slice.call(e));for(var t=0,r=e.length;t-1?e+"&"+t:e+"?"+t}return e};oc.require=function(e,n,r){"function"==typeof n&&(r=n,n=e,e=void 0),"string"==typeof e&&(e=[e]);var a=function(){var n=o;if("undefined"==typeof e)return!0;for(var t=0;t"},oc.events={},oc.ready=function(e){if(M)return e();if(S)oc.cmd.push(e);else{S=!0;var n=function(e,n){$&&!e.IE_POLYFILL_LOADED?oc.require(c,n):n()},t=function(){M=!0,S=!1,oc.events=function(){var e=oc.$({});return{fire:function(n,t){return e.trigger(n,t)},on:function(n,t){return e.on(n,t||C)},reset:function(){return e.off()}}}(),e(),oc.events.fire("oc:ready",oc),oc.status="ready";for(var n=0;n'+L+""),oc.renderByHref(e.attr("href"),function(t,r){return t||!r?(e.html(""),_.error(t),n()):void B(e,r,n)}))})},oc.renderByHref=function(e,n,t){var r=t,o=n;"function"==typeof n&&(r=n,o=0),oc.ready(function(){if(""===e)return r(b.replace("{1}",v));var n=e;f&&(n=U(n,{__oc_Retry:o})),oc.$.ajax({url:n,headers:{Accept:"application/vnd.oc.unrendered+json"},contentType:"text/plain",crossDomain:!0,async:!0,success:function(e){if("unrendered"===e.renderMode)oc.render(e.template,e.data,function(n,t){return n?r(b.replace("{0}",e.href).replace("{1}",n)):(_.info(q.replace("{0}",e.template.src)),void r(null,{html:t,key:e.template.key,version:e.version,name:e.name}))});else if("rendered"===e.renderMode){if(_.info(q.replace("{0}",e.href)),0===e.html.indexOf("<"+p)){var n=e.html.slice(e.html.indexOf(">")+1),t=n.slice(0,n.lastIndexOf("<"));e.html=t}r(null,{html:e.html,version:e.version,name:e.name})}},error:function(){_.error(T),N(e,function(n){oc.renderByHref(e,n,r)},function(){r(g.replace("{0}",e))})}})})},oc.renderUnloadedComponents=function(){oc.ready(function(){var e=oc.$(p+"[data-rendered!=true]"),n=e.length,t=function(e){n--,n||oc.renderUnloadedComponents()};if(n>0)for(var r=0;r');var r=oc.$(p,e);oc.renderNestedComponent(r,function(){t(r)})}})},oc.ready(oc.renderUnloadedComponents),e=oc}),oc.clientVersion="0.33.31"; //# sourceMappingURL=oc-client.min.map \ No newline at end of file diff --git a/src/components/oc-client/src/oc-client.min.map b/src/components/oc-client/src/oc-client.min.map index bd2dd93a5..b22aede7d 100644 --- a/src/components/oc-client/src/oc-client.min.map +++ b/src/components/oc-client/src/oc-client.min.map @@ -1 +1 @@ -{"version":3,"sources":["?"],"names":["win","undefined","noop","each","arr","callback","slice","call","i","l","length","is","type","obj","clas","Object","prototype","toString","isFunction","item","isArray","toLabel","url","items","split","name","indexOf","substring","one","_done","conditional","test","success","failure","passed","push","api","load","apply","getAsset","asset","label","existing","assets","allLoaded","hasOwnProperty","state","LOADED","onPreload","PRELOADED","onpreload","afterPreload","preLoad","PRELOADING","loadAsset","apiLoadHack","args","arguments","rest","next","apiLoadAsync","LOADING","ready","handlers","fn","isDomReady","ALL","getExtension","toLowerCase","error","event","ele","onload","onreadystatechange","onerror","process","readyState","doc","documentMode","clearTimeout","errorTimeout","cssTimeout","isCssLoaded","cssRetries","styleSheets","href","setTimeout","ext","createElement","rel","src","async","defer","head","getElementsByTagName","insertBefore","lastChild","init","dataMain","getAttribute","key","domWaiters","domReady","body","readyTimeout","domContentLoaded","addEventListener","removeEventListener","detachEvent","document","isAsync","documentElement","style","opera","headVar","head_conf","attachEvent","top","frameElement","e","doScroll","doScrollCheck","js","feature","window","oc","root","factory","define","amd","exports","$","nodeName","require","this","$document","$window","conf","cmd","renderedComponents","status","CDNJS_BASEURL","IE89_AJAX_POLYFILL_URL","HANDLEBARS_URL","JADE_URL","JQUERY_URL","RETRY_INTERVAL","retryInterval","RETRY_LIMIT","retryLimit","RETRY_SEND_NUMBER","retrySendNumber","POLLING_INTERVAL","pollingInterval","OC_TAG","tag","MESSAGES_ERRORS_BASEURL_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_HREF_MISSING","MESSAGES_ERRORS_NAME_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_RETRY_FAILED","replace","MESSAGES_ERRORS_LOADING_COMPILED_VIEW","MESSAGES_ERRORS_RENDERING","MESSAGES_ERRORS_RETRIEVING","MESSAGES_ERRORS_VIEW_ENGINE_NOT_SUPPORTED","MESSAGES_LOADING_COMPONENT","loadingMessage","MESSAGES_RENDERED","MESSAGES_RETRIEVING","debug","nav","navigator","userAgent","is8","match","is9","initialised","initialising","retries","isBool","a","logger","msg","console","log","info","retry","component","cb","failedRetryCb","addParametersToHref","parameters","param","nameSpace","needsToBeLoaded","base","getObj","processHtml","$component","data","id","Math","floor","random","html","attr","version","events","fire","build","options","baseUrl","withFinalSlash","s","parameter","requirePolyfills","IE_POLYFILL_LOADED","done","trigger","on","reset","off","f","wasDollarThereAlready","jQuery","noConflict","render","compiledViewInfo","model","compiledView","linked","Handlebars","template","renderNestedComponent","dataRendering","dataRendered","isRendering","isRendered","renderByHref","err","retryNumberOrCallback","retryNumber","hrefWithCount","__oc_Retry","ajax","headers","Accept","contentType","crossDomain","apiResponse","renderMode","innerHtmlPlusEnding","innerHtml","lastIndexOf","requestNumber","renderUnloadedComponents","selector","$unloadedComponents","toDo","placeholder","newComponent","clientVersion"],"mappings":"CASC,SAAUA,EAAKC,GACZ,YAwBA,SAASC,MAIT,QAASC,GAAKC,EAAKC,GACf,GAAKD,EAAL,CAKmB,gBAARA,KACPA,KAASE,MAAMC,KAAKH,GAIxB,KAAK,GAAII,GAAI,EAAGC,EAAIL,EAAIM,OAAQF,EAAIC,EAAGD,IACnCH,EAASE,KAAKH,EAAKA,EAAII,GAAIA,IAMnC,QAASG,GAAGC,EAAMC,GACd,GAAIC,GAAOC,OAAOC,UAAUC,SAASV,KAAKM,GAAKP,MAAM,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M8F,GACbuB,EAAMrG,EAAM,SAASyK,GACnBjI,GAAGiH,aAAazJ,EAAMyK,EAAezP,IACpC,WACDA,EAAS0J,EAA6BC,QAAQ,MAAO3E,YAUjEwC,GAAGkI,yBAA2B,WAC5BlI,GAAG/D,MAAM,WACP,GAAIkM,GAAYnF,EAAM,8BAAgCnB,EAClDuG,EAAsBpI,GAAGM,EAAE6H,EAAW,yBACtCE,EAAOD,EAAoBvP,OAE3B+M,EAAO,SAAS7B,GAClBsE,IACIA,GACFrI,GAAGkI,2BAIP,IAAGG,EAAO,EACR,IAAI,GAAI1P,GAAI,EAAGA,EAAIyP,EAAoBvP,OAAQF,IAC7CqH,GAAG4G,sBAAsB5G,GAAGM,EAAE8H,EAAoBzP,IAAKiN,MAM/D5F,GAAGxF,KAAO,SAAS8N,EAAa9K,EAAMhF,GACpCwH,GAAG/D,MAAM,WAKP,GAJwB,kBAAf,KACPzD,EAAWH,GAGV2H,GAAGM,EAAEgI,GAAa,CACnBtI,GAAGM,EAAEgI,GAAavD,KAAK,IAAMlD,EAAS,UAAYrE,EAAO,OACzD,IAAI+K,GAAevI,GAAGM,EAAEuB,EAAQyG,EAChCtI,IAAG4G,sBAAsB2B,EAAc,WACrC/P,EAAS+P,SAOjBvI,GAAG/D,MAAM+D,GAAGkI,0BAGZ7H,EAAUL,KAIZA,GAAGwI,cAAc","file":"oc-client.min.map"} \ No newline at end of file +{"version":3,"sources":["?"],"names":["win","undefined","noop","each","arr","callback","slice","call","i","l","length","is","type","obj","clas","Object","prototype","toString","isFunction","item","isArray","toLabel","url","items","split","name","indexOf","substring","one","_done","conditional","test","success","failure","passed","push","api","load","apply","getAsset","asset","label","existing","assets","allLoaded","hasOwnProperty","state","LOADED","onPreload","PRELOADED","onpreload","afterPreload","preLoad","PRELOADING","loadAsset","apiLoadHack","args","arguments","rest","next","apiLoadAsync","LOADING","ready","handlers","fn","isDomReady","ALL","getExtension","toLowerCase","error","event","ele","onload","onreadystatechange","onerror","process","readyState","doc","documentMode","clearTimeout","errorTimeout","cssTimeout","isCssLoaded","cssRetries","styleSheets","href","setTimeout","ext","createElement","rel","src","async","defer","head","getElementsByTagName","insertBefore","lastChild","init","dataMain","getAttribute","key","domWaiters","domReady","body","readyTimeout","domContentLoaded","addEventListener","removeEventListener","detachEvent","document","isAsync","documentElement","style","opera","headVar","head_conf","attachEvent","top","frameElement","e","doScroll","doScrollCheck","js","feature","window","oc","root","factory","define","amd","exports","$","nodeName","require","this","$document","$window","conf","cmd","renderedComponents","status","CDNJS_BASEURL","IE9_AJAX_POLYFILL_URL","HANDLEBARS_URL","JADE_URL","JQUERY_URL","RETRY_INTERVAL","retryInterval","RETRY_LIMIT","retryLimit","RETRY_SEND_NUMBER","retrySendNumber","POLLING_INTERVAL","pollingInterval","OC_TAG","tag","MESSAGES_ERRORS_BASEURL_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_HREF_MISSING","MESSAGES_ERRORS_NAME_PARAMETER_IS_REQUIRED","MESSAGES_ERRORS_RETRY_FAILED","replace","MESSAGES_ERRORS_LOADING_COMPILED_VIEW","MESSAGES_ERRORS_RENDERING","MESSAGES_ERRORS_RETRIEVING","MESSAGES_ERRORS_VIEW_ENGINE_NOT_SUPPORTED","MESSAGES_LOADING_COMPONENT","loadingMessage","MESSAGES_RENDERED","MESSAGES_RETRIEVING","debug","nav","navigator","userAgent","is9","match","initialised","initialising","retries","isBool","a","logger","msg","console","log","info","retry","component","cb","failedRetryCb","addParametersToHref","parameters","param","nameSpace","needsToBeLoaded","base","getObj","processHtml","$component","data","id","Math","floor","random","html","attr","version","events","fire","build","options","baseUrl","withFinalSlash","s","parameter","requirePolyfills","IE_POLYFILL_LOADED","done","trigger","on","reset","off","f","wasDollarThereAlready","jQuery","noConflict","render","compiledViewInfo","model","compiledView","linked","Handlebars","template","renderNestedComponent","dataRendering","dataRendered","isRendering","isRendered","renderByHref","err","retryNumberOrCallback","retryNumber","hrefWithCount","__oc_Retry","ajax","headers","Accept","contentType","crossDomain","apiResponse","renderMode","innerHtmlPlusEnding","innerHtml","lastIndexOf","requestNumber","renderUnloadedComponents","$unloadedComponents","toDo","placeholder","newComponent","clientVersion"],"mappings":"CASC,SAAUA,EAAKC,GACZ,YAwBA,SAASC,MAIT,QAASC,GAAKC,EAAKC,GACf,GAAKD,EAAL,CAKmB,gBAARA,KACPA,KAASE,MAAMC,KAAKH,GAIxB,KAAK,GAAII,GAAI,EAAGC,EAAIL,EAAIM,OAAQF,EAAIC,EAAGD,IACnCH,EAASE,KAAKH,EAAKA,EAAII,GAAIA,IAMnC,QAASG,GAAGC,EAAMC,GACd,GAAIC,GAAOC,OAAOC,UAAUC,SAASV,KAAKM,GAAKP,MAAM,KACrD,OAAOO,KAAQZ,GAAqB,OAARY,GAAgBC,IAASF,EAGzD,QAASM,GAAWC,GAChB,MAAOR,GAAG,WAAYQ,GAG1B,QAASC,GAAQD,GACb,MAAOR,GAAG,QAASQ,GAGvB,QAASE,GAAQC,GAEb,GAAIC,GAAQD,EAAIE,MAAM,KACjBC,EAAOF,EAAMA,EAAMb,OAAS,GAC5BF,EAAOiB,EAAKC,QAAQ,IAEzB,OAAOlB,QAAWiB,EAAKE,UAAU,EAAGnB,GAAKiB,EAK7C,QAASG,GAAIvB,GAETA,EAAWA,GAAYH,EAEnBG,EAASwB,QAIbxB,IACAA,EAASwB,MAAQ,GAIrB,QAASC,GAAYC,EAAMC,EAASC,EAAS5B,GAoBzC,GAAIQ,GAAuB,gBAATkB,GAAqBA,GACnCA,KAAMA,EACNC,UAAWA,IAAUZ,EAAQY,GAAWA,GAAWA,IACnDC,UAAWA,IAAUb,EAAQa,GAAWA,GAAWA,IACnD5B,SAAUA,GAAYH,GAItBgC,IAAWrB,EAAIkB,IAgBnB,OAbIG,IAAYrB,EAAImB,SAChBnB,EAAImB,QAAQG,KAAKtB,EAAIR,UACrB+B,EAAIC,KAAKC,MAAM,KAAMzB,EAAImB,WAGnBE,GAAYrB,EAAIoB,SACtBpB,EAAIoB,QAAQE,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540f3bfc..d708f7588 100644 --- a/tasks/karma.js +++ b/tasks/karma.js @@ -41,12 +41,6 @@ var customLaunchers = { platform: 'Windows 7', version: '9' }, - 'ie8': { - base: 'SauceLabs', - browserName: 'internet explorer', - platform: 'Windows XP', - version: '8' - }, 'safari': { base: 'SauceLabs', browserName: 'Safari', @@ -86,13 +80,9 @@ module.exports = { browsers: ['chrome', 'ff', 'android'] }, 'sauce-windows': { - customLaunchers: _.pick(customLaunchers, 'ie11', 'ie10', 'ie9', 'ie8'), - browsers: ['ie11', 'ie10', 'ie9', 'ie8'] + customLaunchers: _.pick(customLaunchers, 'ie11', 'ie10', 'ie9'), + browsers: ['ie11', 'ie10', 'ie9'] }, - 'sauce-ie8': { - customLaunchers: _.pick(customLaunchers, 'ie8'), - browsers: ['ie8'] - }, 'sauce-ie9': { customLaunchers: _.pick(customLaunchers, 'ie9'), browsers: ['ie9'] diff --git a/test/acceptance/client.js b/test/acceptance/client.js index 6bd3048b3..cb6334473 100644 --- a/test/acceptance/client.js +++ b/test/acceptance/client.js @@ -641,43 +641,6 @@ describe('The node.js OC client', function(){ expect(error.toString()).to.match(expected); }); }); - - describe('when client-side failover rendering enabled with ie8=true', function(){ - - var $componentScript, - $clientScript, - error, - options = { ie8: true }; - - before(function(done){ - clientOfflineRegistry.renderComponent('hello-world', options, function(err, html){ - error = err; - var $ = cheerio.load(html); - $componentScript = $('script.ocComponent'); - $clientScript = $('script.ocClientScript'); - done(); - }); - }); - - it('should include the client-side rendering script', function(){ - expect($clientScript).to.have.length.above(0); - }); - - it('should include the non rendered scripted component', function(){ - expect($componentScript).to.have.length.above(0); - }); - - it('should contain the component url', function(){ - expect($componentScript.toString()).to.contain('http://localhost:1234/hello-world/~1.0.0'); - }); - - it('should contain the error details', function(){ - var exp = getRegExpFromJson(expectedRequest), - expected = new RegExp('Error: Server-side rendering failed: request ' + exp + ' failed \\(Error: connect ECONNREFUSED(.*?)\\)'); - - expect(error.toString()).to.match(expected); - }); - }); }); describe('when server-side rendering an existing component linked to a responsive registry', function(){ diff --git a/test/front-end/build-href.js b/test/front-end/build-href.js index 21fcaba7a..2034577af 100644 --- a/test/front-end/build-href.js +++ b/test/front-end/build-href.js @@ -2,9 +2,6 @@ describe('oc-client : build', function(){ - var nav = window.navigator.userAgent, - isIe8 = !!(nav.match(/MSIE 8/)); - var execute = function(parameters){ return oc.build(parameters); }; @@ -44,10 +41,7 @@ describe('oc-client : build', function(){ }); it('should build the correct Href', function(){ - var expectedHref = 'http://www.components.com/v2/myComponent/', - expected = isIe8 ? '
' : - ''; - + var expected = ''; expect(result).toEqual(expected); }); }); @@ -60,10 +54,7 @@ describe('oc-client : build', function(){ }); it('should build the correct Href', function(){ - var expectedHref = 'http://www.components.com/v2/myComponent/', - expected = isIe8 ? '
' : - ''; - + var expected = ''; expect(result).toEqual(expected); }); }); @@ -82,8 +73,7 @@ describe('oc-client : build', function(){ it('should build the correct Href', function(){ var expectedHref = 'http://www.components.com/v2/myComponent/?hello=world&integer=123&boo=true', - expected = isIe8 ? '
' : - ''; + expected = ''; expect(result).toEqual(expected); }); @@ -99,8 +89,7 @@ describe('oc-client : build', function(){ it('should build the correct Href', function(){ var expectedHref = 'http://www.components.com/v2/myComponent/1.0.X/', - expected = isIe8 ? '
' : - ''; + expected = ''; expect(result).toEqual(expected); }); @@ -121,8 +110,7 @@ describe('oc-client : build', function(){ it('should build the correct Href', function(){ var expectedHref = 'http://www.components.com/v2/myComponent/1.2.3/?hello=world&integer=123&boo=true', - expected = isIe8 ? '
' : - ''; + expected = ''; expect(result).toEqual(expected); }); diff --git a/test/front-end/render-nested-component.js b/test/front-end/render-nested-component.js index da3deda9e..f91482e86 100644 --- a/test/front-end/render-nested-component.js +++ b/test/front-end/render-nested-component.js @@ -5,13 +5,8 @@ describe('oc-client : renderNestedComponent', function(){ var originalConsoleLog = console.log, originalRenderByHref = oc.renderByHref, htmlBeforeRendering, - nav = window.navigator.userAgent, - isIe8 = !!(nav.match(/MSIE 8/)), - componentHref = '//oc-registry.com/my-component/'; - - var componentContainer = isIe8 ? - '
' : - ''; + componentHref = '//oc-registry.com/my-component/', + componentContainer = ''; var initialise = function($component, fail){ htmlBeforeRendering = ''; diff --git a/test/front-end/render-unloaded-components.js b/test/front-end/render-unloaded-components.js index 4b3dfccdd..6572f2508 100644 --- a/test/front-end/render-unloaded-components.js +++ b/test/front-end/render-unloaded-components.js @@ -2,9 +2,6 @@ describe('oc-client : renderUnloadedComponents', function(){ - var nav = window.navigator.userAgent, - isIe8 = !!(nav.match(/MSIE 8/)); - var aComponent = { response: { href: 'http://my-registry.com/v3/a-component/1.2.X/?name=John', @@ -52,14 +49,9 @@ describe('oc-client : renderUnloadedComponents', function(){ sinon.stub(head, 'load').yields(null, 'ok'); console.log = function(){}; - - var aComponentHtml = isIe8 ? - '
' : - ''; - - var anotherComponentHtml = isIe8 ? - '
' : - ''; + + var aComponentHtml = '', + anotherComponentHtml = ''; oc.$('body').append(aComponentHtml); oc.$('body').append(anotherComponentHtml); diff --git a/test/unit/cli-domain-package-static-files.js b/test/unit/cli-domain-package-static-files.js index c2ee1430b..8e1313c5f 100644 --- a/test/unit/cli-domain-package-static-files.js +++ b/test/unit/cli-domain-package-static-files.js @@ -327,27 +327,6 @@ describe('cli : domain : packageStaticFiles', function(){ expect(mocks['fs-extra'].writeFileSync.args[0][0]).to.equal('/path/to/component/_package/css/file.css'); }); }); - - describe('when minify=true and oc.ie8css=true', function(){ - beforeEach(function(done){ - initialise(mocks, { - componentPath: '/path/to/component', - minify: true, - ocOptions: { ie8css: true, files: { static: [ 'css' ]}}, - publishPath: '/path/to/component/_package' - }, done); - }); - - afterEach(cleanup); - - it('should not get an error', function(){ - expect(error).to.be.null; - }); - - it('should minify the file with compatibility=ie8', function(){ - expect(mocks['clean-css'].args[0][0]).to.be.eql({ compatibility: 'ie8' }); - }); - }); }); }); }); \ No newline at end of file