You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using IE in Compatability view (enterprise intranet) with a added hostname, ko.utils.ieVersion is 7. Resulting on the fallowing error "Invalid object call" on the instruction:
var newDocFrag = originalFunction(),
On the fallowing piece of code:
document.createDocumentFragment = (function(originalFunction) { return function() { var newDocFrag = originalFunction(), allComponents = ko.components._allRegisteredComponents; for (var componentName in allComponents) { if (allComponents.hasOwnProperty(componentName)) { newDocFrag.createElement(componentName); } } return newDocFrag; }; })(document.createDocumentFragment);
I think the scope object must be document.
Possible solution would be to change the code to:
var newDocFrag = originalFunction.call(document),
I'm using knockout version 3.4.0
Regards,
MS
The text was updated successfully, but these errors were encountered:
mmcs85
changed the title
IE Compatability View error on createDocumentFragment "originalFunction()"
IE Compatability View error on createDocumentFragment "originalFunction()"Compatability
Jun 29, 2016
mmcs85
changed the title
IE Compatability View error on createDocumentFragment "originalFunction()"Compatability
IE Compatability View error on createDocumentFragment "originalFunction()"
Jun 29, 2016
Hi,
When using IE in Compatability view (enterprise intranet) with a added hostname, ko.utils.ieVersion is 7. Resulting on the fallowing error "Invalid object call" on the instruction:
var newDocFrag = originalFunction(),
On the fallowing piece of code:
document.createDocumentFragment = (function(originalFunction) { return function() { var newDocFrag = originalFunction(), allComponents = ko.components._allRegisteredComponents; for (var componentName in allComponents) { if (allComponents.hasOwnProperty(componentName)) { newDocFrag.createElement(componentName); } } return newDocFrag; }; })(document.createDocumentFragment);
I think the scope object must be document.
Possible solution would be to change the code to:
var newDocFrag = originalFunction.call(document),
I'm using knockout version 3.4.0
Regards,
MS
The text was updated successfully, but these errors were encountered: