]>
git.wh0rd.org - tt-rss.git/blob - lib/dojo/Stateful.js
2 Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
8 if(!dojo
._hasResource
["dojo.Stateful"]){
9 dojo
._hasResource
["dojo.Stateful"]=true;
10 dojo
.provide("dojo.Stateful");
11 dojo
.declare("dojo.Stateful",null,{postscript:function(_1
){
17 },set:function(_3
,_4
){
18 if(typeof _3
==="object"){
26 if(this._watchCallbacks
){
27 this._watchCallbacks(_3
,_5
,_4
);
30 },watch:function(_6
,_7
){
31 var _8
=this._watchCallbacks
;
34 _8
=this._watchCallbacks=function(_a
,_b
,_c
,_d
){
36 for(var i
=0,l
=_f
&&_f
.length
;i
<l
;i
++){
38 _f
[i
].call(_9
,_a
,_b
,_c
);
51 if(!_7
&&typeof _6
==="function"){
56 if(typeof _10
!=="object"){
60 return {unwatch:function(){
61 _10
.splice(dojo
.indexOf(_10
,_7
),1);