|
1 |
| -(function(){ |
| 1 | +/* |
| 2 | + * ----------------------------- JSTORAGE ------------------------------------- |
| 3 | + * Simple local storage wrapper to save data on the browser side, supporting |
| 4 | + * all major browsers - IE6+, Firefox2+, Safari4+, Chrome4+ and Opera 10.5+ |
| 5 | + * |
| 6 | + * Copyright (c) 2010 Andris Reinman, andris.reinman@gmail.com |
| 7 | + * Project homepage: www.jstorage.info |
| 8 | + * |
| 9 | + * Licensed under MIT-style license: |
| 10 | + * |
| 11 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 12 | + * of this software and associated documentation files (the "Software"), to deal |
| 13 | + * in the Software without restriction, including without limitation the rights |
| 14 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 15 | + * copies of the Software, and to permit persons to whom the Software is |
| 16 | + * furnished to do so, subject to the following conditions: |
| 17 | + * |
| 18 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 21 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 23 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 24 | + * SOFTWARE. |
| 25 | + */ |
| 26 | + |
| 27 | + (function(){ |
2 | 28 | var
|
3 | 29 | /* jStorage version */
|
4 | 30 | JSTORAGE_VERSION = "0.2.0",
|
|
338 | 364 | for(var i=0, len = keys.length; i<len; i++){
|
339 | 365 | if(_observers[keys[i]]){
|
340 | 366 | for(var j=0, jlen = _observers[keys[i]].length; j<jlen; j++){
|
341 |
| - _observers[keys[i]][j](action, keys[i]); |
| 367 | + _observers[keys[i]][j](keys[i], action); |
342 | 368 | }
|
343 | 369 | }
|
344 | 370 | }
|
|
0 commit comments