Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

jQuery getObject: get.and.set.deep.objects.easily = true;

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 shared
Octocat-spinner-32 unit
Octocat-spinner-32 LICENSE-GPL
Octocat-spinner-32 LICENSE-MIT
Octocat-spinner-32 README.markdown
Octocat-spinner-32 jquery.ba-getobject.js
Octocat-spinner-32 jquery.ba-getobject.min.js
README.markdown

jQuery getObject: get.and.set.deep.objects.easily = true;

http://benalman.com/projects/jquery-getobject-plugin/

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!

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 counterparts, with the exception that exists returns true or false based on whether or not a property is defined, not whether it is truthy.

Documentation

http://benalman.com/code/projects/jquery-getobject/docs/

Support and Testing

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).

jQuery Versions

none, 1.3.2, 1.4a2

Browsers Tested

Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.

Unit Tests

http://benalman.com/code/projects/jquery-getobject/unit/

Release History

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

Copyright (c) 2009 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.
http://benalman.com/about/license/

Inspired by Dojo, which is Copyright © 2005-2009, The Dojo Foundation.

Something went wrong with that request. Please try again.