From 2bb961b7a816be3248c601558ea7752e9560f8aa Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 13 Dec 2012 09:16:13 +0000 Subject: [PATCH] Now only loads & runs if JSHint is available Script only loads if file is available Processes in function only run if JSHINT is available --- index.php | 6 +++++- lib/ice-coder.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9fcd242..692f3ac 100644 --- a/index.php +++ b/index.php @@ -35,7 +35,11 @@ window.onbeforeunload = function() { - +'; +} +?> -1) { cM = ICEcoder.getcMInstance(); cM.operation(function(){ var widgets = top.ICEcoder['cM'+top.ICEcoder.cMInstances[top.ICEcoder.selectedTab-1]+'widgets'];