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

feat(cache): Add a JS interface to CacheRegister #1181

Closed
wants to merge 1 commit into from

Conversation

jbdeboer
Copy link
Contributor

No description provided.

}

dump() {
var toPrint = ['Angular Cache Sizes:'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return void
StringBuffer ?

@vicb
Copy link
Contributor

vicb commented Jun 26, 2014

LGTM (w/ a few comments)

@jbdeboer jbdeboer added cla: yes and removed cla: no labels Jun 26, 2014
@jbdeboer
Copy link
Contributor Author

@vicb: comments addressed.

@vicb
Copy link
Contributor

vicb commented Jun 26, 2014

👍

JsCacheRegister(CacheRegister this._caches) {
js.context['ngCaches'] = new js.JsObject.jsify({
"sizes": sizesAsMap,
"clear": _caches.clear,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this fails in dart2js mode (wrap it in a JsFunction to get it to pass).  :(

Ref: http://dartbug.com/17752

@chirayuk
Copy link
Contributor

LGTM.  Thanks James!

@jbdeboer jbdeboer closed this in 435d998 Jun 26, 2014
jbdeboer added a commit that referenced this pull request Jun 26, 2014
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this pull request Jul 16, 2014
dsalsbury pushed a commit to dsalsbury/angular.dart that referenced this pull request Jul 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants