Merge lp://staging/~bcsaller/juju-gui/detachfix into lp://staging/juju-gui/experimental
Proposed by
Benjamin Saller
Status: | Merged |
---|---|
Merged at revision: | 875 |
Proposed branch: | lp://staging/~bcsaller/juju-gui/detachfix |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
78 lines (+21/-20) 2 files modified
app/views/databinding.js (+5/-4) test/test_databinding.js (+16/-16) |
To merge this branch: | bzr merge lp://staging/~bcsaller/juju-gui/detachfix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
To post a comment you must log in.
Reviewers: mp+175923_ code.launchpad. net,
Message:
Please take a look.
Description:
Databinding unbind redux
The ongoing battle continues.
https:/ /code.launchpad .net/~bcsaller/ juju-gui/ detachfix/ +merge/ 175923
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/11433048/
Affected files: databinding. js
A [revision details]
M app/views/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: app/views/ databinding. js databinding. js' databinding. js 2013-07-19 18:06:37 +0000 databinding. js 2013-07-19 18:54:05 +0000 es.push( observe( model, Y.bind( this._modelChan geHandler, this))); this._modelChan geHandler, this); observe( model, callback); es.push( {model: model, callback: callback});
=== modified file 'app/views/
--- app/views/
+++ app/views/
@@ -256,8 +256,9 @@
// This typically depends on an Object.observe polyfill being
// in place (which it is). As browsers natively support this
// we can one day drop the polyfill.
- modelEventHandl
- Object.
+ var callback = Y.bind(
+ Object.
+ modelEventHandl
}
// Bind and listen for model changes.
handle. detach( ); unobserve( handle, self._modelChan geHandler) ; unobserve( handle. model, handle.callback);
handles. splice( 0, handles.length);
handle. detach( ); unobserve( handle, self._modelChan geHandler) ; unobserve( handle. model, handle.callback);
@@ -357,7 +358,7 @@
if (handle.detach) {
} else {
- Object.
+ Object.
}
});
@@ -386,7 +387,7 @@
if (handle.detach) {
} else {
- Object.
+ Object.
}
});
// Empty the list