Browse Source

Add 'use strict', fix global leak

pull/6/head
Dr. Kibitz 12 years ago
parent
commit
a04472832a
  1. 4
      resemble.js

4
resemble.js

@ -6,6 +6,7 @@ URL: https://github.com/Huddle/Resemble.js
*/ */
(function(_this){ (function(_this){
'use strict';
_this['resemble'] = function( fileData ){ _this['resemble'] = function( fileData ){
@ -449,7 +450,8 @@ URL: https://github.com/Huddle/Resemble.js
function getCompareApi(param){ function getCompareApi(param){
var hasMethod = typeof param === 'function'; var secondFileData,
hasMethod = typeof param === 'function';
if( !hasMethod ){ if( !hasMethod ){
// assume it's file data // assume it's file data

Loading…
Cancel
Save