jonataswalker / watch-element-resize.js

A (yet another) cross-browser, event-based, element resize watcher
MIT License
15 stars 3 forks source link

Getting error while using with JQuery... #14

Open venkatpolisetti opened 7 years ago

venkatpolisetti commented 7 years ago

Getting error Can't evaluate: @param [object Object]

`var glc$ = jQuery.noConflict();

var watchResize = new WatchElementResize([glc$('div[id$=glc_container]'), glc$('table[id$=glc_dynamic_table]')]); watchResize.on('resize', function(evt) { console.log('WatchElementResize fired: element = ' + evt.element.target); }); `

venkatpolisetti commented 7 years ago

I found out that it is look for the Id strings, so I gave it to it through el.attr('id') and it works.

But now it is throwing another exception:

image