YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2527849 (closed enhancement)

Reporter


Jenny Han Donnelly
Opened: 04/16/09
Last modified: 05/10/09
Status: closed
Type: enhancement
Resolution: fixed

Owner


Nicholas C. Zakas
Target Release: 3.0.0 Beta1
Priority: P3 (normal)
Summary: RFE: Would like ObjectAssert.isEmpty()
Description:

To test against expected value {}.

Type: enhancement Observed in Version: 3.0.0 PR2
Component: Test Severity: S3 (normal)
Assigned To: Nicholas C. Zakas Target Release: 3.0.0 Beta1
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Nicholas C. Zakas

YUI Developer

Posted: 05/3/09
  • browser changed to N/A

Just to clarify, you want a method that says the object has no properties other than those on its prototype?

Nicholas C. Zakas

YUI Developer

Posted: 05/10/09
  • milestone changed to 3.0.0 Beta1
  • status changed from new to accepted

Nicholas C. Zakas

YUI Developer

Posted: 05/10/09

I'm going to implement as ObjectAssert.ownsNoKeys() to follow along with other owns* methods.

Nicholas C. Zakas

YUI Developer

Posted: 05/10/09
  • resolution changed to fixed
  • status changed from accepted to closed

Fix checked in.