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 for more information and usage examples!
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
Cowboy namespace. Usage will be exactly the same, but instead of
$.method() or jQuery.method(), you'll need to use Cowboy.method().
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.
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).
none, 1.3.2, 1.4a2
Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
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
Copyright (c) 2009 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.
Inspired by Dojo, which is Copyright © 2005-2009, The Dojo Foundation.