Sha256: 781fccc7ccfb496aa75eb946c248abcf1852b5f9e8028ee78ea8240c25bca855

Contents?: true

Size: 750 Bytes

Versions: 5

Compression:

Stored size: 750 Bytes

Contents

module.exports = function() {

    var functionRegistry = require("./../less/functions/function-registry");

    function imageSize() {
        throw {
            type: "Runtime",
            message: "Image size functions are not supported in browser version of less"
        };
    }

    var imageFunctions = {
        "image-size": function(filePathNode) {
            imageSize(this, filePathNode);
            return -1;
        },
        "image-width": function(filePathNode) {
            imageSize(this, filePathNode);
            return -1;
        },
        "image-height": function(filePathNode) {
            imageSize(this, filePathNode);
            return -1;
        }
    };

    functionRegistry.addMultiple(imageFunctions);
};

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
ilog-0.4.1 node_modules/less/lib/less-browser/image-size.js
ilog-0.4.0 node_modules/less/lib/less-browser/image-size.js
ilog-0.3.3 node_modules/less/lib/less-browser/image-size.js
less-execjs-2.6.0.4 lib/less/js/less/lib/less-browser/image-size.js
less-execjs-2.6.0.3 lib/less/js/less/lib/less-browser/image-size.js