<< Back to previous view

[CLJS-698] ^:export on a deftype/record method should goog.exportProperty Created: 25/Nov/13  Updated: 08/Jan/15  Resolved: 08/Jan/15

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: David Nolen Assignee: Unassigned
Resolution: Declined Votes: 1
Labels: None


See http://developers.google.com/closure/compiler/docs/api-tutorial3

Comment by Eduard Bondarenko [ 27/Nov/13 7:37 AM ]
(deftype ^:export SceneMain []
  (handleShow [_]

I used exportSymbol:

(goog/exportSymbol "SceneMain" SceneMain)
(goog/exportSymbol "SceneMain.prototype.handleShow" SceneMain.prototype.handleShow)

It works even with advanced optimizations:

Comment by David Nolen [ 28/Nov/13 8:03 AM ]

It would be nice if the following worked:

(deftype ^:export SceneMain []
  (^:export handleShow [_]
Comment by David Nolen [ 08/Jan/15 2:38 PM ]

goog/exportSymbol works fine.

Generated at Tue Oct 17 15:47:43 CDT 2017 using JIRA 4.4#649-r158309.