From 0f071be762c8613b00550dbc8bd397f80bb8a9aa Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 30 Nov 2013 11:52:41 +0100 Subject: [PATCH] Use Object.each for object looping --- couchpotato/core/media/movie/_base/static/movie.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/media/movie/_base/static/movie.js b/couchpotato/core/media/movie/_base/static/movie.js index bc258451..9c0ae015 100644 --- a/couchpotato/core/media/movie/_base/static/movie.js +++ b/couchpotato/core/media/movie/_base/static/movie.js @@ -78,9 +78,9 @@ var Movie = new Class({ self.list.checkIfEmpty(); // Remove events - self.global_events.each(function(handle, listener){ + Object.each(self.global_events, function(handle, listener){ App.off(listener, handle); - }) + }); }, busy: function(set_busy, timeout){