Skip to content

Instantly share code, notes, and snippets.

@lovettbarron
Created April 17, 2014 21:54
Show Gist options
  • Save lovettbarron/11013707 to your computer and use it in GitHub Desktop.
Save lovettbarron/11013707 to your computer and use it in GitHub Desktop.
"Dynamic" object.
$(this.el).find('.imagebuffer').each(function(key,val) {
// console.log($(val));
var r = function() { return $(val)[0].getBoundingClientRect();
};
var i = $(val).attr('src');
_this.sections.push({
rect: r,
img: i
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment