arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

Exposed wrapped isAgility() to be able to test if objects are agility obj #43

Closed tristanls closed 13 years ago

tristanls commented 13 years ago

I found it useful to be able to test if an object is an agility object. This is especially useful when used in tests and prevents having to mess with agility object internals ( _agility ).

This commit enables things like:

expect( $$.isAgility( obj ) ).toBeTrue();