# DOM Popup kit error

**URL:** <https://www.ruby-forum.com/t/dom-popup-kit-error/160047>\
**Category:** Rails\
**Created:** [February 11, 2009, 10:16am UTC](https://www.ruby-forum.com/t/dom-popup-kit-error/160047 "2009-02-11T10:16:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 11, 2009, 10:16am UTC](https://www.ruby-forum.com/t/dom-popup-kit-error/160047/1 "2009-02-11T10:16:42Z")

</div>

hi,  
I’m using the DOM Popup kit to display chromeless popup windows in my  
application.  
But I’m getting a javascript error as:

Object.extend is not a function.

at the line:

initialize: function(popup, link) {  
var options = Object.extend({  
modal: false,  
effect: ‘fade’,  
hidden: true,  
closebox: ‘popup\_closebox’, // CSS class name of  
click-to-close elements.  
draghandle: ‘popup\_draghandle’ // CSS class name of drag handle  
elements.  
}, arguments[2] || {});

I read a solution for this that the popup.js file should be loaded at  
the last.  
But that didn’t work…  
Can anyone please suggest…how can I solve this error…  
Thank You.
