From: ScottDowne Date: Thu, 14 Oct 2010 18:52:56 +0000 (-0400) Subject: tic #115 javascript command default to empty function if non exist X-Git-Tag: v0.1~16^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2bd6f8f69c93d6e2d3cc4ba3d79745b2cb5dc7d1;p=popcorn-js.git tic #115 javascript command default to empty function if non exist --- 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(); };