On the html:
data-bind="style: {backgroundImage: imgSrc}"
On the observable:
imgSrc: function() { return 'url(' + this.get('filename') + ')'; }
In IE8:
this.element.style[a]=this.bindings.style[a].get() throws "Invalid argument."
this.bindings.style[a].get:
function(){
var a=this,b=a.source,c,d=a.path,f=b;
a.start();
if(a.observable) {
f=b.get(d);
while(f===undefined&&b)
b=b.parent(),b instanceof e&&(f=b.get(d));
typeof f=="function"&&(c=d.lastIndexOf("."),c>0&&(b=b.get(d.substring(0,c))),f=k(f,b),f=f(a.source)),b&&b
data-bind="style: {backgroundImage: imgSrc}"
On the observable:
imgSrc: function() { return 'url(' + this.get('filename') + ')'; }
In IE8:
this.element.style[a]=this.bindings.style[a].get() throws "Invalid argument."
this.bindings.style[a].get:
function(){
var a=this,b=a.source,c,d=a.path,f=b;
a.start();
if(a.observable) {
f=b.get(d);
while(f===undefined&&b)
b=b.parent(),b instanceof e&&(f=b.get(d));
typeof f=="function"&&(c=d.lastIndexOf("."),c>0&&(b=b.get(d.substring(0,c))),f=k(f,b),f=f(a.source)),b&&b