Skip to content
Browse files

clean up html

  • Loading branch information...
1 parent aa7e588 commit 560f95cf439d2652d22e1fe6cd3f5d5fd685cc45 Les James committed Apr 11, 2012
Showing with 7 additions and 8 deletions.
  1. +0 −7 elements/js/log.js
  2. +7 −0 elements/js/script.js
  3. +0 −1 index.html
View
7 elements/js/log.js
@@ -1,7 +0,0 @@
-// usage: log('inside coolFunc', this, arguments);
-// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
-window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
-
-// make it safe to use console.log always
-(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
-(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());
View
7 elements/js/script.js
@@ -0,0 +1,7 @@
+// usage: log('inside coolFunc', this, arguments);
+// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
+window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
+
+// make it safe to use console.log always
+(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
+(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());
View
1 index.html
@@ -25,7 +25,6 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/elements/js/libs/jquery-1.7.1.min.js"><\/script>')</script>
- <script src="/elements/js/log.js"></script>
<script src="/elements/js/script.js"></script>
</body>

0 comments on commit 560f95c

Please sign in to comment.
Something went wrong with that request. Please try again.