Skip to main content

Search and Top Navigation

#3260 closed bug (notabug)

Opened August 28, 2008 10:55AM UTC

Closed August 30, 2008 09:15PM UTC

Last modified October 11, 2012 09:15PM UTC

dialog: toJSONString button

Reported by: Owned by: scottgonzalez
Priority: minor Milestone:
Component: ui.dialog Version: 1.6b
Keywords: dialog, buttons Cc:
Blocked by: Blocking:

in my javascript code i have this function:

Object.prototype.toJSONString = function (w) ....

so every object has this function.

if i create a UI jQuery dialog i get a [toJSONString] button even if i don't declare any buttons in the dialog options (and also if i declare some buttons)

i suppose that any function added to Object.prototype will produce a button in the dialog.

isn't it better to avoid this behavior and insert a way to remove unwanted buttons or to show only desired ones?

Attachments (0)
Change History (2)

Changed August 30, 2008 09:15PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Yes, it's possible for us to skip this property and not create a button for it. However, you should never modify Object.prototype. This is unsupported by jQuery and jQuery UI.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted