From 072f9186f57bb4dcb9c75457efa0f67b7a0225d3 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 13 Dec 2013 17:39:40 -0500 Subject: animated shader --- js/util.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/util.js') diff --git a/js/util.js b/js/util.js index fc27166..d31af47 100644 --- a/js/util.js +++ b/js/util.js @@ -1,11 +1,11 @@ -$.fn.int = function(){ return parseInt($(this).val(),10) } -$.fn.float = function(){ return parseFloat($(this).val()) } +if (window.$) { + $.fn.int = function(){ return parseInt($(this).val(),10) } + $.fn.float = function(){ return parseFloat($(this).val()) } +} + function clamp(n,a,b){ return n