{"size": 1027, "ext": "js", "max_stars_repo_path": "cordova-vibration.js", "max_stars_repo_name": "adelarosab/cordova-vibration", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "cordova-vibration.js", "max_issues_repo_name": "adelarosab/cordova-vibration", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "cordova-vibration.js", "max_forks_repo_name": "adelarosab/cordova-vibration", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.3958333333, "max_line_length": 75, "alphanum_fraction": 0.5511197663}
// Generated by CoffeeScript 1.10.0
(function() {
  Polymer({
    is: "cordova-vibration",
    properties: {

      /* If true, automatically performs vibration when device is ready. */
      auto: {
        reflectToAttribute: true,
        type: Boolean,
        value: false
      },

      /* Return if cordova deviceready event has been fired. */
      ready: {
        notify: true,
        observer: "_observeReady",
        readOnly: true,
        reflectToAttribute: true,
        type: Boolean,
        value: false
      },

      /* Milliseconds to vibrate the device. */
      time: {
        reflectToAttribute: true,
        type: Number,
        value: 1000
      }
    },
    _observeReady: function() {
      if (this.auto) {
        return this.vibrate();
      }
    },

    /* Vibrates the device for a given amount of time. */
    vibrate: function() {
      if (this.ready) {
        return navigator.vibrate(this.time);
      }
    }
  });

}).call(this);

//# sourceMappingURL=cordova-vibration.js.map
