Skip to content

Commit

Permalink
Revert "kill off plugins.js. "
Browse files Browse the repository at this point in the history
This reverts commit 937c886.

Back due to popular demand. Fixes h5bp#357
  • Loading branch information
paulirish committed Mar 6, 2011
1 parent cada0b6 commit a638ad6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 14 deletions.
1 change: 1 addition & 0 deletions demo/elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ <h3>&lt;meter&gt;</h3>


<!-- scripts concatenated and minified via ant build script-->
<script src="../js/plugins.js"></script>
<script src="../js/script.js"></script>
<!-- end concatenated and minified scripts-->

Expand Down
3 changes: 2 additions & 1 deletion demo/tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@
</script>


<!-- scripts concatenated and minified via ant build script-->s
<!-- scripts concatenated and minified via ant build script-->
<script src="../js/plugins.js"></script>
<script src="../js/script.js"></script>
<!-- end concatenated and minified scripts-->

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@


<!-- scripts concatenated and minified via ant build script-->
<script src="js/plugins.js"></script>
<script src="js/script.js"></script>
<!-- end scripts-->

Expand Down
15 changes: 15 additions & 0 deletions js/plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});


// place any jQuery/helper plugins in here, instead of separate, slower script files.

12 changes: 0 additions & 12 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,4 @@





// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
function log(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});

3 changes: 2 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

<script src="../js/libs/modernizr-1.7.min.js"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="../js/plugins.js"></script>
<script src="../js/script.js"></script>


Expand Down

0 comments on commit a638ad6

Please sign in to comment.