PHP Classes

File: modules/system/assets/ui/vendor/pikaday/js/pikaday.jquery.js

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/assets/ui/vendor/pikaday/js/pikaday.jquery.js   Download  
File: modules/system/assets/ui/vendor/pikaday/js/pikaday.jquery.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Winter
Content management system that uses MVC
Author: By
Last change:
Date: 6 months ago
Size: 1,531 bytes
 

Contents

Class file image Download
/*! * Pikaday jQuery plugin. * * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday */ (function (root, factory) { 'use strict'; if (typeof exports === 'object') { // CommonJS module factory(require('jquery'), require('pikaday')); } else if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery', 'pikaday'], factory); } else { // Browser globals factory(root.jQuery, root.Pikaday); } }(this, function ($, Pikaday) { 'use strict'; $.fn.pikaday = function() { var args = arguments; if (!args || !args.length) { args = [{ }]; } return this.each(function() { var self = $(this), plugin = self.data('pikaday'); if (!(plugin instanceof Pikaday)) { if (typeof args[0] === 'object') { var options = $.extend({}, args[0]); options.field = self[0]; self.data('pikaday', new Pikaday(options)); } } else { if (typeof args[0] === 'string' && typeof plugin[args[0]] === 'function') { plugin[args[0]].apply(plugin, Array.prototype.slice.call(args,1)); if (args[0] === 'destroy') { self.removeData('pikaday'); } } } }); }; }));