Last modified: 2013-03-18 08:41:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47330, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45330 - mw.Map should not ignore fallback "undefined"
mw.Map should not ignore fallback "undefined"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.17.x
All All
: High normal (vote)
: 1.21.0 release
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-24 14:19 UTC by Krinkle
Modified: 2013-03-18 08:41 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2013-02-24 14:19:57 UTC
var a = new mw.Map();

a.get('something');
// null, which is the default fallback for keys that don't exist

a.get('something, 42);
// 42, custom fallback

a.get('something', undefined);
// null, should be undefined
Comment 1 Krinkle 2013-02-24 14:42:49 UTC
Change-Id: I035e23f700e2120618ed4fbe5ce95c7f9b947e41
Comment 2 db [inactive,noenotif] 2013-03-16 23:29:53 UTC
(In reply to comment #1)
> Change-Id: I035e23f700e2120618ed4fbe5ce95c7f9b947e41

Status Merged

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links