shower-next
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "shower-next", | ||
"description": "Next plugin for Shower HTML presentation engine", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Vadim Makeev", |
@@ -11,3 +11,3 @@ /** | ||
var timerPluginName = 'shower-timer'; | ||
var TIMER_PLUGIN_NAME = 'shower-timer'; | ||
@@ -101,3 +101,3 @@ /** | ||
var timerPlugin = shower.plugins.get(timerPluginName); | ||
var timerPlugin = shower.plugins.get(TIMER_PLUGIN_NAME); | ||
if (timerPlugin) { | ||
@@ -108,3 +108,3 @@ this._setupTimerPluginListener(timerPlugin); | ||
.on('pluginadd', function (e) { | ||
if (e.get('name') == timerPluginName) { | ||
if (e.get('name') == TIMER_PLUGIN_NAME) { | ||
this._setupTimerPluginListener(); | ||
@@ -119,6 +119,6 @@ this._pluginsListeners.offAll(); | ||
if (!plugin) { | ||
plugin = shower.plugins.get(timerPluginName); | ||
plugin = shower.plugins.get(TIMER_PLUGIN_NAME); | ||
} | ||
plugin.events | ||
.on('next', this._onNext, this); | ||
.on('next', this._onNext, this, 100); | ||
}, | ||
@@ -125,0 +125,0 @@ |
10112