From 2bd6f8f69c93d6e2d3cc4ba3d79745b2cb5dc7d1 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Thu, 14 Oct 2010 14:52:56 -0400 Subject: [PATCH] tic #115 javascript command default to empty function if non exist --- popcorn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popcorn.js b/popcorn.js index 83330fd..5a2307a 100644 --- a/popcorn.js +++ b/popcorn.js @@ -972,8 +972,8 @@ Popcorn.JsCommand = function(name, params, text, videoManager) { Popcorn.VideoCommand.call(this, name, params, text, videoManager); - this.start = eval(this.params.start); - this.stop = eval(this.params.stop); + this.start = eval(this.params.start) || function() {}; + this.stop = eval(this.params.stop) || function() {}; this.onIn = function() { this.start(); }; -- 2.43.0