| author | hamidouk |
| Tue, 11 Oct 2011 17:12:51 +0200 | |
| branch | popcorn-port |
| changeset 60 | ffc038fdb8f1 |
| parent 59 | 69b9772a8f1a |
| child 61 | dc7b5ed7b02b |
| src/js/utils.js | file | annotate | diff | comparison | revisions |
--- a/src/js/utils.js Tue Oct 11 17:12:34 2011 +0200 +++ b/src/js/utils.js Tue Oct 11 17:12:51 2011 +0200 @@ -11,3 +11,11 @@ } }; +/* for ie compatibility +if (Object.prototype.__defineGetter__&&!Object.defineProperty) { + Object.defineProperty=function(obj,prop,desc) { + if ("get" in desc) obj.__defineGetter__(prop,desc.get); + if ("set" in desc) obj.__defineSetter__(prop,desc.set); + } +} +*/ \ No newline at end of file