Undev/MediaWiki-ClientsideDrafts — pull request #2 by qiankanglai (2013-01-06 02:24:09+00:00)
Title: replace wgTitle with wgPageName

According to http://en.wikibooks.org/wiki/MediaWiki_Developer's_Handbook/Add_JavaScript/Predefined_variables , wgTitle doesn't include the namespace prefix. So the current code will confuse these pages like "Help:About" & "About". These should be different drafts.

wgPageName as the key solves the problem.