Created
February 26, 2013 16:38
-
-
Save gtrak/5039941 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.garytrakhman.cordova_test.app.flat_button = function() { | |
var flat_button__delegate = function(text, p__6105) { | |
var vec__6108 = p__6105; | |
var width = cljs.core.nth.call(null, vec__6108, 0, null); | |
var height = cljs.core.nth.call(null, vec__6108, 1, null); | |
var b = function() { | |
var G__6109 = new goog.ui.Button([cljs.core.str(text)].join(""), goog.ui.FlatButtonRenderer.getInstance()); | |
G__6109.render(com.garytrakhman.cordova_test.app.top.call(null)); | |
return G__6109 | |
}(); | |
var elt = b.getContentElement(); | |
return com.garytrakhman.cordova_test.app.set_dim.call(null, elt, width, height) | |
}; | |
var flat_button = function(text, var_args) { | |
var p__6105 = null; | |
if(goog.isDef(var_args)) { | |
p__6105 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1), 0) | |
} | |
return flat_button__delegate.call(this, text, p__6105) | |
}; | |
flat_button.cljs$lang$maxFixedArity = 1; | |
flat_button.cljs$lang$applyTo = function(arglist__6110) { | |
var text = cljs.core.first(arglist__6110); | |
var p__6105 = cljs.core.rest(arglist__6110); | |
return flat_button__delegate(text, p__6105) | |
}; | |
flat_button.cljs$lang$arity$variadic = flat_button__delegate; | |
return flat_button | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment