From 24cdcb94c5dac0ef44549021d22fb34cc48fa82f Mon Sep 17 00:00:00 2001 From: Commander-lol <ljcapitanio@gmail.com> Date: Sat, 1 Nov 2014 13:49:24 +0000 Subject: [PATCH] Updated symbols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated library symbol to (more appropriate) 'μ' and added an alias as 'mu' in case unicode isn't available in an editor for whatever reason --- js/tinyDOM.js | 9 ++++++--- test.html | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/js/tinyDOM.js b/js/tinyDOM.js index e156ce1..3a04f48 100644 --- a/js/tinyDOM.js +++ b/js/tinyDOM.js @@ -76,7 +76,10 @@ } } - if(!window.π){ - window.π = tinyDOM; + if(!window.μ){ + window.μ = tinyDOM; } -})(); \ No newline at end of file + if(!window.mu){ + window.mu = tinyDOM; + } +})(); diff --git a/test.html b/test.html index 0259653..dccc04d 100644 --- a/test.html +++ b/test.html @@ -23,14 +23,14 @@ functions to do basic things like hide and show. </p> <p> - There are two basic types of target for the built in functions: - any number of elements<sup>[1]</sup> and one exactly one element<sup>[2]</sup>. + There are two basic types of target for the built in functions: + any number of elements<sup>[1]</sup> and one exactly one element<sup>[2]</sup>. An example of [1] would be hiding all elements with the class 'important' whereas an example of [2] would be getting the value of a given data attribute - it wouldn't - make sense to perform the second on a group of elements. + make sense to perform the second on a group of elements. </p> <p> - As such, where appopriate, tinyDOM will operate only on the first element if a group + As such, where appopriate, tinyDOM will operate only on the first element if a group are matched by whatever selector is given. Such functions are as follows: </p> <ul> @@ -41,16 +41,16 @@ <script type="text/javascript" src="js/tinyDOM.js"></script> <script type="text/javascript"> - π('#btn-show').on('click', function(){ - π('.important').show(); + μ('#btn-show').on('click', function(){ + μ('.important').show(); }); - π('#btn-hide').on('click', function(){ - π('.important').hide(); + μ('#btn-hide').on('click', function(){ + μ('.important').hide(); }); - π('h1').on('click', function(){ + μ('h1').on('click', function(){ console.log(this); }); </script> -</html> \ No newline at end of file +</html> -- GitLab