equal
deleted
inserted
replaced
21 var args = [].slice.call(this, arguments); |
21 var args = [].slice.call(this, arguments); |
22 return fn.call(obj, args); |
22 return fn.call(obj, args); |
23 } |
23 } |
24 } |
24 } |
25 |
25 |
|
26 /* convert a time to a percentage in the media */ |
|
27 IriSP.timeToPourcent = function(time,timetotal){ |
|
28 return (parseInt(Math.round(time/timetotal*100))); |
|
29 }; |
|
30 |
26 /* for ie compatibility |
31 /* for ie compatibility |
27 if (Object.prototype.__defineGetter__&&!Object.defineProperty) { |
32 if (Object.prototype.__defineGetter__&&!Object.defineProperty) { |
28 Object.defineProperty=function(obj,prop,desc) { |
33 Object.defineProperty=function(obj,prop,desc) { |
29 if ("get" in desc) obj.__defineGetter__(prop,desc.get); |
34 if ("get" in desc) obj.__defineGetter__(prop,desc.get); |
30 if ("set" in desc) obj.__defineSetter__(prop,desc.set); |
35 if ("set" in desc) obj.__defineSetter__(prop,desc.set); |