MCPcopy Create free account
hub / github.com/cginternals/glbinding / getOriginalWidthOfImg

Function getOriginalWidthOfImg

docs/api-docs/doxy-boot.js:87–91  ·  view source on GitHub ↗
(img_element)

Source from the content-addressed store, hash-verified

85 });
86
87 function getOriginalWidthOfImg(img_element) {
88 var t = new Image();
89 t.src = (img_element.getAttribute ? img_element.getAttribute("src") : false) || img_element.src;
90 return t.width;
91 }
92
93/* $('div.dyncontent').find('img').each(function(){
94 if(getOriginalWidthOfImg($(this)[0]) > $('#content>div.container').width())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected