app/assets/javascripts/materialize/pushpin.js in materialize-sass-0.95.3.3 vs app/assets/javascripts/materialize/pushpin.js in materialize-sass-0.95.3.4
- old
+ new
@@ -1,21 +1,8 @@
(function ($) {
$(document).ready(function() {
- // Unique ID
- var guid = (function() {
- function s4() {
- return Math.floor((1 + Math.random()) * 0x10000)
- .toString(16)
- .substring(1);
- }
- return function() {
- return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
- s4() + '-' + s4() + s4() + s4();
- };
- })();
-
$.fn.pushpin = function (options) {
var defaults = {
top: 0,
bottom: Infinity,
@@ -23,10 +10,10 @@
}
options = $.extend(defaults, options);
$index = 0;
return this.each(function() {
- var $uniqueId = guid(),
+ var $uniqueId = Materialize.guid(),
$this = $(this),
$original_offset = $(this).offset().top;
function removePinClasses(object) {
object.removeClass('pin-top');
\ No newline at end of file