Permalink
Browse files

Removed dependency on jQuery

  • Loading branch information...
1 parent f04d3b1 commit e7aa721ea24196b0866868274d7403137656eca1 @cowboy committed Dec 24, 2009
View
@@ -1,13 +1,24 @@
# jQuery getObject: get.and.set.deep.objects.easily = true; #
[http://benalman.com/projects/jquery-getobject-plugin/](http://benalman.com/projects/jquery-getobject-plugin/)
-Version: 1.0, Last updated: 12/19/2009
+Version: 1.1, Last updated: 12/24/2009
jQuery getObject allows you to get and set properties of an object via
dot-delimited name string. Inspired by the Dojo methods of the same names.
Visit the [project page](http://benalman.com/projects/jquery-getobject-plugin/) for more information and usage examples!
+### Note for non-jQuery users ###
+
+jQuery isn't actually required for this plugin, because nothing internal
+uses any jQuery methods or properties. jQuery is just used as a namespace
+under which these methods can exist.
+
+Since jQuery isn't actually required for this plugin, if jQuery doesn't exist
+when this plugin is loaded, the methods described below will be created in
+the `Cowboy` namespace. Usage will be exactly the same, but instead of
+$.method() or jQuery.method(), you'll need to use Cowboy.method().
+
### Note for Dojo users ###
The setObject, getObject, and exists methods are similar to their Dojo
@@ -25,7 +36,7 @@ tested with, what browsers it has been tested in, and where the unit tests
reside (so you can test it yourself).
### jQuery Versions ###
-1.3.2, 1.4a2
+none, 1.3.2, 1.4a2
### Browsers Tested ###
Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
@@ -36,7 +47,8 @@ Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
## Release History ##
-1.0 - (12/19/2009) Initial release
+1.1 - (12/24/2009) Removed dependency on jQuery. Now creates methods in a `Cowboy` namespace if jQuery isn't present.
+1.0 - (12/19/2009) Initial release
## License ##
@@ -11,13 +11,15 @@
-<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="jQuery_getObject:get.and.set.deep.objects.easily=true;"></a>jQuery getObject: get.<wbr>and.<wbr>set.<wbr>deep.<wbr>objects.<wbr>easily = true;</h1><div class=CBody><p><b>Version: 1.0, Last updated: 12/19/2009</b></p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Project Home</td><td class=CDLDescription><a href="http://benalman.com/projects/jquery-getobject-plugin/" class=LURL target=_top>http://benalman.com<wbr>/projects<wbr>/jquery-getobject-plugin<wbr>/</a></td></tr><tr><td class=CDLEntry>GitHub</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-getobject/" class=LURL target=_top>http://github.com/cowboy/jquery-getobject/</a></td></tr><tr><td class=CDLEntry>Source</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-getobject/raw/master/jquery.ba-getobject.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-getobject<wbr>/raw<wbr>/master<wbr>/jquery.ba-getobject.js</a></td></tr><tr><td class=CDLEntry>(Minified)</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-getobject/raw/master/jquery.ba-getobject.min.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-getobject<wbr>/raw<wbr>/master<wbr>/jquery.ba-getobject.min.js</a> (0.6kb)</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#jQuery_getObject:get.and.set.deep.objects.easily=true;" >jQuery getObject: get.<wbr>and.<wbr>set.<wbr>deep.<wbr>objects.<wbr>easily = true;</a></td><td class=SDescription><b>Version: 1.0, Last updated: 12/19/2009</b></td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#License" >License</a></td><td class=SDescription>Copyright &copy; 2009 &ldquo;Cowboy&rdquo; Ben Alman, Dual licensed under the MIT and GPL licenses. </td></tr><tr class="SGeneric"><td class=SEntry><a href="#Support_and_Testing" >Support and Testing</a></td><td class=SDescription>Information about what version or versions of jQuery this plugin has been tested with, what browsers it has been tested in, and where the unit tests reside (so you can test it yourself).</td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#Release_History" >Release History</a></td><td class=SDescription></td></tr><tr class="SGeneric"><td class=SEntry><a href="#Note_for_Dojo_users" >Note for Dojo users</a></td><td class=SDescription>The setObject, getObject, and exists methods are similar to their Dojo counterparts, with the exception that exists returns true or false based on whether or not a property is defined, not whether it is truthy.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.getObject" >jQuery.<wbr>getObject</a></td><td class=SDescription>Get a property of an object via dot-delimited name string, and optionally create the property and any ancestor properties that do not already exist.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#jQuery.setObject" >jQuery.<wbr>setObject</a></td><td class=SDescription>Set a property of an object via dot-delimited name string, creating any ancestor properties that do not already exist.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.exists" >jQuery.<wbr>exists</a></td><td class=SDescription>Using dot-delimited name string, return whether a property of an object exists.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
+<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="jQuery_getObject:get.and.set.deep.objects.easily=true;"></a>jQuery getObject: get.<wbr>and.<wbr>set.<wbr>deep.<wbr>objects.<wbr>easily = true;</h1><div class=CBody><p><b>Version: 1.1, Last updated: 12/24/2009</b></p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Project Home</td><td class=CDLDescription><a href="http://benalman.com/projects/jquery-getobject-plugin/" class=LURL target=_top>http://benalman.com<wbr>/projects<wbr>/jquery-getobject-plugin<wbr>/</a></td></tr><tr><td class=CDLEntry>GitHub</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-getobject/" class=LURL target=_top>http://github.com/cowboy/jquery-getobject/</a></td></tr><tr><td class=CDLEntry>Source</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-getobject/raw/master/jquery.ba-getobject.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-getobject<wbr>/raw<wbr>/master<wbr>/jquery.ba-getobject.js</a></td></tr><tr><td class=CDLEntry>(Minified)</td><td class=CDLDescription><a href="http://github.com/cowboy/jquery-getobject/raw/master/jquery.ba-getobject.min.js" class=LURL target=_top>http://github.com<wbr>/cowboy<wbr>/jquery-getobject<wbr>/raw<wbr>/master<wbr>/jquery.ba-getobject.min.js</a> (0.7kb)</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#jQuery_getObject:get.and.set.deep.objects.easily=true;" >jQuery getObject: get.<wbr>and.<wbr>set.<wbr>deep.<wbr>objects.<wbr>easily = true;</a></td><td class=SDescription><b>Version: 1.1, Last updated: 12/24/2009</b></td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#License" >License</a></td><td class=SDescription>Copyright &copy; 2009 &ldquo;Cowboy&rdquo; Ben Alman, Dual licensed under the MIT and GPL licenses. </td></tr><tr class="SGeneric"><td class=SEntry><a href="#Support_and_Testing" >Support and Testing</a></td><td class=SDescription>Information about what version or versions of jQuery this plugin has been tested with, what browsers it has been tested in, and where the unit tests reside (so you can test it yourself).</td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#Release_History" >Release History</a></td><td class=SDescription></td></tr><tr class="SGeneric"><td class=SEntry><a href="#Note_for_non-jQuery_users" >Note for non-jQuery users</a></td><td class=SDescription>jQuery isn&rsquo;t actually required for this plugin, because nothing internal uses any jQuery methods or properties. </td></tr><tr class="SGeneric SMarked"><td class=SEntry><a href="#Note_for_Dojo_users" >Note for Dojo users</a></td><td class=SDescription>The setObject, getObject, and exists methods are similar to their Dojo counterparts, with the exception that exists returns true or false based on whether or not a property is defined, not whether it is truthy.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.getObject" >jQuery.<wbr>getObject</a></td><td class=SDescription>Get a property of an object via dot-delimited name string, and optionally create the property and any ancestor properties that do not already exist.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#jQuery.setObject" >jQuery.<wbr>setObject</a></td><td class=SDescription>Set a property of an object via dot-delimited name string, creating any ancestor properties that do not already exist.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#jQuery.exists" >jQuery.<wbr>exists</a></td><td class=SDescription>Using dot-delimited name string, return whether a property of an object exists.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="License"></a>License</h3><div class=CBody><p>Copyright &copy; 2009 &ldquo;Cowboy&rdquo; Ben Alman, Dual licensed under the MIT and GPL licenses.&nbsp; <a href="http://benalman.com/about/license/" class=LURL target=_top>http://benalman.com/about/license/</a></p><p>Inspired by Dojo, which is Copyright &copy; 2005-2009, The Dojo Foundation.</p></div></div></div>
-<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Support_and_Testing"></a>Support and Testing</h3><div class=CBody><p>Information about what version or versions of jQuery this plugin has been tested with, what browsers it has been tested in, and where the unit tests reside (so you can test it yourself).</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>jQuery Versions</td><td class=CDLDescription>1.3.2, 1.4a2</td></tr><tr><td class=CDLEntry>Browsers Tested</td><td class=CDLDescription>Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.</td></tr><tr><td class=CDLEntry>Unit Tests</td><td class=CDLDescription><a href="http://benalman.com/code/projects/jquery-getobject/unit/" class=LURL target=_top>http://benalman.com<wbr>/code<wbr>/projects<wbr>/jquery-getobject<wbr>/unit<wbr>/</a></td></tr></table></div></div></div>
+<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Support_and_Testing"></a>Support and Testing</h3><div class=CBody><p>Information about what version or versions of jQuery this plugin has been tested with, what browsers it has been tested in, and where the unit tests reside (so you can test it yourself).</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>jQuery Versions</td><td class=CDLDescription>none, 1.3.2, 1.4a2</td></tr><tr><td class=CDLEntry>Browsers Tested</td><td class=CDLDescription>Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.</td></tr><tr><td class=CDLEntry>Unit Tests</td><td class=CDLDescription><a href="http://benalman.com/code/projects/jquery-getobject/unit/" class=LURL target=_top>http://benalman.com<wbr>/code<wbr>/projects<wbr>/jquery-getobject<wbr>/unit<wbr>/</a></td></tr></table></div></div></div>
-<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Release_History"></a>Release History</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>1.0</td><td class=CDLDescription>(12/19/2009) Initial release</td></tr></table></div></div></div>
+<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Release_History"></a>Release History</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>1.1</td><td class=CDLDescription>(12/24/2009) Removed dependency on jQuery.&nbsp; Now creates methods in a `Cowboy` namespace if jQuery isn&rsquo;t present.</td></tr><tr><td class=CDLEntry>1.0</td><td class=CDLDescription>(12/19/2009) Initial release</td></tr></table></div></div></div>
+
+<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Note_for_non-jQuery_users"></a>Note for non-jQuery users</h3><div class=CBody><p>jQuery isn&rsquo;t actually required for this plugin, because nothing internal uses any jQuery methods or properties. jQuery is just used as a namespace under which these methods can exist.</p><p>Since jQuery isn&rsquo;t actually required for this plugin, if jQuery doesn&rsquo;t exist when this plugin is loaded, the methods described below will be created in the `Cowboy` namespace.&nbsp; Usage will be exactly the same, but instead of $.method() or jQuery.method(), you&rsquo;ll need to use Cowboy.method().</p></div></div></div>
<div class="CGeneric"><div class=CTopic><h3 class=CTitle><a name="Note_for_Dojo_users"></a>Note for Dojo users</h3><div class=CBody><p>The setObject, getObject, and exists methods are similar to their Dojo counterparts, with the exception that exists returns true or false based on whether or not a property is defined, not whether it is truthy.</p></div></div></div>
View
@@ -13,7 +13,7 @@
<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; <a href="#J">J</a> &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="J"></a>J</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-getobject-js.html#jQuery_getObject:get.and.set.deep.objects.easily=true;" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>jQuery getObject:<wbr>get.<wbr>and.<wbr>set.<wbr>deep.<wbr>objects.<wbr>easily=true;</a></td></tr></table>
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.0, Last updated: 12/19/2009</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.1, Last updated: 12/24/2009</b></div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
Oops, something went wrong.

0 comments on commit e7aa721

Please sign in to comment.