Remove the themes property from the Drupal object in drupal.js

katbailey - August 31, 2008 - 13:01
Project:Drupal
Version:7.x-dev
Component:javascript
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

The Drupal js object is initialised in misc/drupal.js with four properties, one of which is "themes". I think this is a remnant from the patch here: http://drupal.org/files/issues/js-localization.patch. The Drupal.theme function has since changed and no longer has any reference to Drupal.themes. The attached patch removes this property from the Drupal object initialisation as it can lead to confusion.

AttachmentSizeStatusTest resultOperations
drupal_js_patch.patch611 bytesIdleFailed: Failed to install HEAD.View details

#1

System Message - November 16, 2008 - 21:40
Status:needs review» needs work

The last submitted patch failed testing.

#2

katbailey - November 17, 2008 - 00:02
Status:needs work» needs review

Patch re-rolled against HEAD.

AttachmentSizeStatusTest resultOperations
drupal_js-302251.patch611 bytesIdleUnable to apply patch drupal_js-302251.patchView details

#3

dereine - January 4, 2009 - 21:30

this patch still applies nice, i'm just wondering wether there is some documentation to change

#4

katbailey - January 5, 2009 - 19:09

I'm pretty certain there is no reference to this themes property anywhere else. Somebody like kkaefer could confirm this though I think...

#5

Dries - January 6, 2009 - 13:16
Status:needs review» fixed

I committed this to CVS HEAD. It looked valid.

#6

kkaefer - January 6, 2009 - 15:39

@katbailey: Yep you're right. Drupal.theme is now used instead of Drupal.themes.

#7

System Message - January 20, 2009 - 15:40
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.