소스 검색

Drop Pin lib support.

Jay Salvat 10 년 전
부모
커밋
e5328f5d99
3개의 변경된 파일3개의 추가작업 그리고 60개의 파일을 삭제
  1. 1 1
      README.md
  2. 0 56
      src/patch/vegas.pin.js
  3. 2 3
      src/vegas.js

+ 1 - 1
README.md

@@ -1,7 +1,7 @@
 Vegas – Fullscreen Backgrounds and Slideshows
 =============================================
 
-Vegas is a [jQuery](http://jquery.com)/[Zepto](http://zeptojs.com)/[Pin](http://pin.jaysalvat.com) plugin 
+Vegas is a [jQuery](http://jquery.com)/[Zepto](http://zeptojs.com) plugin 
 to add beautiful fullscreen backgrounds and Slideshows to DOM elements.
 
 #### Install

+ 0 - 56
src/patch/vegas.pin.js

@@ -1,56 +0,0 @@
-/* 
- * Pin compatibility patch
- * http://pin.jaysalvat.com
- */
-
-/* global Pin: true */
-
-(function ($) {
-    'use strict';
-
-    if ($ && $.pin) {
-        $.fn.addClass = function (name) {
-            return this.set('.' + name);
-        };
-
-        $.fn.hasClass = function (name) {
-            return this.get('.' + name);
-        };
-
-        $.fn.removeClass = function (name) {
-            return this.set('.' + name, 'remove');
-        };
-
-        $.fn.css = function (key, value) {
-            if (value === undefined) {
-                return this.get(':' + key);
-            }
-            return this.set(':' + key, value);
-        };
-
-        $.fn.attr = function (key, value) {
-            if (value === undefined) {
-                return this.get('@' + key);
-            }
-            return this.set('@' + key, value);
-        };
-
-        $.fn.fadeIn = function (duration) {
-            return this.each(function () {
-                var self  = this,
-                    start = new Date(),
-                    from  = 0,
-                    intvl = setInterval(function() {
-                        var passed   = new Date() - start,
-                            progress = passed / duration;
-
-                        self.style.opacity = from + progress;
-
-                        if (progress >= 1) {
-                            clearInterval(intvl);
-                        }
-                    }, duration || 100);
-            });
-        };
-    }
-})(typeof Pin !== 'undefined' ? Pin : null);

+ 2 - 3
src/vegas.js

@@ -1,5 +1,5 @@
 
-/* global jQuery, Zepto, Pin */
+/* global jQuery, Zepto */
 
 (function ($) {
     'use strict';
@@ -545,6 +545,5 @@
     };
 
 })(typeof jQuery !== 'undefined' ? jQuery :
-   typeof Zepto  !== 'undefined' ? Zepto  :
-   typeof Pin    !== 'undefined' ? Pin    : null
+   typeof Zepto  !== 'undefined' ? Zepto  : null
 );