Permalink
Browse files

(Fixes issue #17) : Doesn't work with FF 3.6

  • Loading branch information...
Uli.Hecht Uli.Hecht
Uli.Hecht authored and Uli.Hecht committed Jun 7, 2011
1 parent fbc4161 commit c8aff6e9d295a9d72e1728e76b6d1d5fdcf616f5
Showing with 269 additions and 256 deletions.
  1. +13 −1 Box2D.js
  2. +256 −255 Box2d.min.js
View
@@ -18,6 +18,18 @@
var Box2D = {};
(function (a2j, undefined) {
if(!(Object.prototype.defineProperty instanceof Function)
&& Object.prototype.__defineGetter__ instanceof Function
&& Object.prototype.__defineSetter__ instanceof Function)
{
Object.defineProperty = function(obj, p, cfg) {
if(cfg.get instanceof Function)
obj.__defineGetter__(p, cfg.get);
if(cfg.set instanceof Function)
obj.__defineSetter__(p, cfg.set);
}
}
function emptyFn() {};
a2j.inherit = function(cls, base) {
@@ -42,7 +54,7 @@ var Box2D = {};
};
a2j.is = function is(o1, o2) {
if (o1 === null) return false;
if (o1 === null) return false;
if ((o2 instanceof Function) && (o1 instanceof o2)) return true;
if ((o1.constructor.__implements != undefined) && (o1.constructor.__implements[o2])) return true;
return false;
Oops, something went wrong.

0 comments on commit c8aff6e

Please sign in to comment.