Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-localstorage: add autoSaveDisabled property
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Sep 25, 2013
1 parent 74854d5 commit e514998
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions polymer-localstorage/polymer-localstorage.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @event polymer-localstorage-load
*/
-->
<polymer-element name="polymer-localstorage" attributes="name value useRaw">
<polymer-element name="polymer-localstorage" attributes="name value useRaw autoSaveDisabled">
<template>
<style>
@host {
Expand Down Expand Up @@ -66,17 +66,17 @@
/**
* If true, auto save is disabled.
*
* @attribute audoSaveDisabled
* @attribute autoSaveDisabled
* @type boolean
* @default false
*/
audoSaveDisabled: false,
autoSaveDisabled: false,
enteredDocument: function() {
// wait for bindings are all setup
this.async('load');
},
valueChanged: function() {
if (this.loaded) {
if (this.loaded && !this.autoSaveDisabled) {
this.save();
}
},
Expand Down

0 comments on commit e514998

Please sign in to comment.