diff --git a/dist/bespoke-scale.js b/dist/bespoke-scale.js old mode 100755 new mode 100644 index 4b06a5f..1ad1a67 --- a/dist/bespoke-scale.js +++ b/dist/bespoke-scale.js @@ -1,7 +1,7 @@ /*! * bespoke-scale v1.0.1 * - * Copyright 2014, Mark Dalgleish + * Copyright 2015, Mark Dalgleish * This content is released under the MIT license * http://mit-license.org/markdalgleish */ @@ -34,10 +34,10 @@ module.exports = function(options) { scale = useZoom ? function(ratio, element) { - element.style.zoom = ratio; + element.style.zoom = ratio === 1 ? '' : ratio; } : function(ratio, element) { - element.style[transformProperty] = 'scale(' + ratio + ')'; + element.style[transformProperty] = ratio === 1 ? '' : 'scale(' + ratio + ')'; }, scaleAll = function() { diff --git a/dist/bespoke-scale.min.js b/dist/bespoke-scale.min.js old mode 100755 new mode 100644 index 66acbc8..1103961 --- a/dist/bespoke-scale.min.js +++ b/dist/bespoke-scale.min.js @@ -1,2 +1,2 @@ -/*! bespoke-scale v1.0.1 © 2014 Mark Dalgleish, MIT License */ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self);var t=n;t=t.bespoke||(t.bespoke={}),t=t.plugins||(t.plugins={}),t.scale=e()}}(function(){return function e(n,t,o){function r(f,s){if(!t[f]){if(!n[f]){var u="function"==typeof require&&require;if(!s&&u)return u(f,!0);if(i)return i(f,!0);throw new Error("Cannot find module '"+f+"'")}var d=t[f]={exports:{}};n[f][0].call(d.exports,function(e){var t=n[f][1][e];return r(t?t:e)},d,d.exports,e,n,t,o)}return t[f].exports}for(var i="function"==typeof require&&require,f=0;f