Roo/bootstrap/BezierSignature.js
[roojs1] / Roo / bootstrap / BezierSignature.js
index 6927414..63a3449 100644 (file)
@@ -1,16 +1,12 @@
-/**
-*    
-**/
-
 /**
  * @class Roo.bootstrap.BezierSignature
  * @extends Roo.bootstrap.Component
  * Bootstrap BezierSignature class
  * This script refer to:
- * 
  *    Title: Signature Pad
  *    Author: szimek
- *    Availability: https://github.com/szimek/signature_pad* 
+ *    Availability: https://github.com/szimek/signature_pad
+ *
  * @constructor
  * Create a new BezierSignature
  * @param {Object} config The config object
@@ -260,7 +256,7 @@ Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component,
         this.strokeUpdate(e);
         
         if (this.throttle) {
-            this.throttle(this.strokeUpdate, this.throttle);
+            this.throttleStroke(this.strokeUpdate, this.throttle);
         }
         else {
             this.strokeUpdate(e);
@@ -551,7 +547,7 @@ Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component,
         return Bezier;
     }()),
     
-    throttle: function(fn, wait) {
+    throttleStroke: function(fn, wait) {
       if (wait === void 0) { wait = 250; }
       var previous = 0;
       var timeout = null;