From 49dd866a06288856e4a1d5df3f00a6a0fccea2fa Mon Sep 17 00:00:00 2001 From: Jer Noble Date: Fri, 7 Dec 2012 14:22:08 -0800 Subject: [PATCH] Fixed TrackHeaderAtom inheritance chain, which was causing a parsing bug. Made the demo page Firefox compatible. --- Atom.js | 2 +- AtomTester.html | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Atom.js b/Atom.js index 52e9e59..2fc62ef 100644 --- a/Atom.js +++ b/Atom.js @@ -332,7 +332,7 @@ var TrackHeaderAtom = function(buffer, offset) { this.super(TrackHeaderAtom).constructor.call(this, buffer, offset); } -TrackHeaderAtom.prototype = Object.create(Atom.prototype); +TrackHeaderAtom.prototype = Object.create(VersionFlagsAtom.prototype); TrackHeaderAtom.prototype.setDefaults = function() { this.super(TrackHeaderAtom).setDefaults.call(this); diff --git a/AtomTester.html b/AtomTester.html index d0bcbf1..2617264 100644 --- a/AtomTester.html +++ b/AtomTester.html @@ -3,6 +3,10 @@ AtomTester