MCPcopy
hub / github.com/dhotson/springy / getImageWidth

Function getImageWidth

springyui.js:149–152  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

147 };
148
149 var getImageWidth = function(node) {
150 var width = (node.data.image.width !== undefined) ? node.data.image.width : nodeImages[node.data.image.src].object.width;
151 return width;
152 }
153
154 var getImageHeight = function(node) {
155 var height = (node.data.image.height !== undefined) ? node.data.image.height : nodeImages[node.data.image.src].object.height;

Callers 1

springyui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected