poly-js-utils
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "poly-js-utils", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Common client-side tools used in HSS Sites themes and locators.", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -5,3 +5,2 @@ /****************************/ | ||
var $ = require('jquery'); | ||
var _ = require('underscore'); | ||
@@ -16,3 +15,3 @@ | ||
// of an image. Falls back to creating an Image object for older browers. | ||
(function($) { | ||
var addNaturalSizeTojQuery = function($) { | ||
$.fn['naturalSize'] = ('naturalWidth' in new Image()) ? | ||
@@ -40,3 +39,3 @@ // Modern browsers have the property, just return it | ||
}; | ||
}($)); | ||
}; | ||
@@ -152,2 +151,3 @@ var _getExtensionPosition = function(phone) { | ||
exports.addNaturalSizeTojQuery = addNaturalSizeTojQuery; | ||
exports.makeAbsolute = utils.makeAbsolute; | ||
@@ -154,0 +154,0 @@ exports.phoneFormat = phoneFormat; |
89282